Skip to main content
Glama

json query

json_query
Read-only

Pull only the part you need out of a big JSON response, without loading it into your context: give a URL (or inline JSON, up to 1.5 MB) and a path, and get just the matches. Supports $.a.b, [0], [-1], [0:5], [*], ..key (any depth) and filters like [?(@.price>10)] or [?(@.name=~"usd")], plus fields= to keep only some keys and limit=. Returns bytes in vs out and the tokens saved. $0.003. Costs $0.003 USDC per call (x402).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "json_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoJSON endpoint to fetch
jsonNoor the JSON itself
pathNoJSONPath, default $
limitNomax 1000
fieldsNocomma-separated keys to keep on each match

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations it discloses a 1.5 MB inline payload ceiling, the max limit of 1000, that the response reports bytes in vs out and tokens saved, and a real per-call price of $0.003 USDC via x402. Pricing and payload limits are exactly the operational facts annotations cannot carry.

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

Conciseness4/5

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

One front-loaded paragraph where the capability and the payoff (matches, bytes saved) come first and the syntax/cost details follow. It loses a point for stating the price twice ('$0.003. Costs $0.003 USDC per call'), which is wasted text.

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

Completeness5/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 still tells the agent what comes back (just the matches, plus bytes in vs out and tokens saved), covers all five parameters at least by implication, and flags the monetary cost. Nothing needed to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is already 100%, yet the description still adds meaning: it enumerates the supported path syntax ($.a.b, [0], [-1], [0:5], [*], ..key, filter expressions) and explains fields= as a per-match key projection. The only small gap is that it does not say what happens when both url and json are supplied.

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

Purpose5/5

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

States a specific verb and resource ('pull only the part you need out of a big JSON response') with the scope constraint front-loaded ('without loading it into your context'), which distinguishes it from context-loading siblings. An agent can tell this is extraction, not diffing/validation, without opening the schema.

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

Usage Guidelines4/5

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

Gives a clear when-to-use context (extract a slice from a large JSON payload instead of ingesting it whole) and the URL-vs-inline-JSON choice. It stops short of explicit exclusions or naming an alternative sibling for the full-payload case, so it is clear but not complete routing guidance.

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