Skip to main content
Glama

elci.dev developer tools

JSONPath Tester

jsonpath_query
Read-only

Evaluate a JSONPath expression against a JSON document. Supports filters ($..book[?(@.price < 10)]) and recursive descent.

Returns: Object with matchCount and matches (always a list, empty when nothing matches).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "json": "<json>",
      "path": "<path>"
    },
    "name": "jsonpath_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesJSON document.
pathYesJSONPath expression, e.g. "$.store.book[*].title".
resultTypeNoReturn the matched values or the path of each match.value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds value beyond that by specifying the return shape (matchCount plus matches, always a list, empty on no match), which is essential since there is no output schema. It stops short of describing error behavior for malformed expressions or JSON, which would complete the picture.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with zero filler: capability first, supported syntax second, return contract third. Each sentence carries distinct information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description correctly spends its space on the return contract, and the input schema covers parameters fully. The remaining gap is failure behavior (invalid JSON, malformed JSONPath, size-limit violations up to 1MB), which would matter for a tester utility but is not essential to invoke it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters, including the resultType enum, are already documented in the schema. The description embeds a filter example ($..book[?(@.price < 10)]) that illustrates expression syntax, which adds modest value, but it does not clarify resultType semantics beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: evaluate a JSONPath expression against a JSON document. It also names supported capabilities (filters, recursive descent), which scopes the tool clearly. It does not explicitly differentiate from neighbors like json_format or json_schema_validate, but the resource is distinct enough that an agent can tell them apart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no statement of when another tool (e.g., json_format or json_diff) would be the better choice. Usage is only implied by the described capability, leaving the agent to infer the selection context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources