JSON Navigation Tools

MCPify provides specialized tools for navigating, extracting, and transforming JSON data. Keep AI context tight by extracting exactly what's needed.

Tool Categories

Query & Search
Filter & Project
Slice, Sort & Count
Group & Aggregate

Tool names carry the nav___ prefix your MCP client shows. Each service lists the navigation tools it offers in its tool list.

Core JSON Tools

Every nav___json_* tool takes a json argument: the _ref string from an earlier response, or the JSON data itself when the response had no reference.

nav___json_get_by_path

Extract data using JSONPath expressions. Supports wildcards, filters, and recursive descent.

Parameters

  • json - Reference string or JSON data
  • path - JSONPath expression (e.g., $.users[*].email)

Example

{
  "name": "nav___json_get_by_path",
  "arguments": {
    "json": "<_ref from the earlier response>",
    "path": "$..orders[?(@.status=='pending')].id"
  }
}

Returns: [101, 105, 112]

nav___json_project_fields

Select several fields from an array of objects in one call, optionally reaching the collection with a path and filtering it first.

Parameters

  • json - Reference string or JSON data
  • columns - Fields to keep
  • path - Optional path to the collection
  • filter_expr - Optional filter expression

Example

{
  "name": "nav___json_project_fields",
  "arguments": {
    "json": "<_ref from the earlier response>",
    "path": "$..users",
    "columns": ["id", "name", "company"]
  }
}

Returns one row per user with the id, name and company fields.

nav___json_slice_array

Extract a slice of an array with Python-like syntax. Supports negative indices and steps.

Parameters

  • json - Reference string or JSON array
  • start - Start index (inclusive)
  • end - End index (exclusive)
  • step - Step size (default: 1)

Example

{
  "name": "nav___json_slice_array",
  "arguments": {
    "json": "<_ref from the earlier response>",
    "start": 0,
    "end": 10,
    "step": 2
  }
}

Returns every second item of the first ten.

Tool Reference

ToolPurposeKey Features
Query & Search Tools
nav___json_get_by_pathExtract via JSONPathWildcards, filters, recursive
nav___json_searchSearch keys and valuesCase-insensitive, max results
nav___json_list_fieldsShow the structureRoot type, keys, collection path
nav___json_get_fieldGet one top-level fieldBy field name
Filter & Project Tools
nav___json_filter_arrayFilter array itemsExpressions like @.price > 100
nav___json_project_fieldsSelect several fieldsColumns, optional path and filter
Slice, Sort & Count Tools
nav___json_slice_arrayExtract an array sliceStart, end, step
nav___json_sortSort an arrayOne or more keys, asc/desc
nav___json_countCount elementsArray length, keys, path matches
nav___json_tableRender as a tableMarkdown, chosen columns
Group & Aggregate Tools
nav___json_group_byGroup by a fieldcount/sum/avg/min/max
nav___json_aggregateAggregate one fieldsum/avg/min/max/count
nav___json_distinctUnique valuesOf one field
nav___compute_pythonRun Python over stored resultsdatasets (named _refs or inline data), code that assigns result. Returns an object with result, stdout and stderr; a large list result is stored and returned as a _ref
Discovery Tools
nav___search_toolsFind tools by keyword or intentquery; optional services, categories, detail_level (name_only, with_description, full_schema), limit
nav___expand_schemaFull documentation for one tooltoolName: all parameters, response fields and syntax examples

Common Usage Patterns

Progressive Data Extraction

// 1. Call an API tool. A large response comes back with a reference (_ref).

// 2. Inspect structure: nav___json_list_fields shows how the reference
//    is stored: the structure and the field paths it finds
//    (e.g. $.items[*].status)
{ "name": "nav___json_list_fields",
  "arguments": { "json": "<_ref>" } }

// 3. Filter the collection and keep only the needed fields, in one call.
//    path is the collection path step 2 showed ($.items here)
{ "name": "nav___json_project_fields",
  "arguments": { "json": "<_ref>", "path": "$.items",
                 "filter_expr": "@.status == 'active'",
                 "columns": ["id", "status", "name"] } }

Count Before Reading

// Count the rows that match a condition, on the collection path
// nav___json_list_fields showed ($.items here)
{ "name": "nav___json_count",
  "arguments": { "json": "<_ref>", "path": "$.items[[email protected] == 'active']" } }

Performance Best Practices

DO

  • ✓ Use specific JSONPath expressions
  • ✓ Extract only needed fields
  • ✓ Chain tools for complex operations
  • ✓ Use nav___json_project_fields for multiple fields
  • ✓ Slice large arrays instead of reading them whole

AVOID

  • ✗ Loading entire payloads unnecessarily
  • ✗ Multiple calls for related fields
  • ✗ Complex JSONPath in tight loops
  • ✗ Recursive descent on large data
  • ✗ Extracting then filtering (filter first)

Related Resources