Skip to main content
Glama

Query JSON

json_query
Read-only

Free, read-only. JSONPath-lite query on JSON from a URL or an inline string (one of the two). Returns matches as JSON: one match bare, several as an array. Supports $, .key, ['key'], [0], [-1], [*], ..key and [?(@.k op v)]; no slices or jq. Errors on invalid JSON or over 5 MB (json_query_xl: paid, 25 MB).

Input Schema

NameRequiredDescriptionDefault
urlNoJSON URL, max 5 MB. Not with json.
jsonNoInline JSON text. Not with url.
limitNoDefault 100, max 1000. Above it: {results,total,returned}.
queryYesStarts with $: '$.users[*].name', '$..price', '$.items[?(@.price<10)].id'. Filter ops: = != > >= < <= =~. '$' = whole document.
headersNoHeaders to forward (Authorization, Cookie…).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / json / description
      Previous value: -"Raw JSON (alt. to url)."New value: +"Inline JSON text. Not with url."
    • changedInput schema / properties / limit / description
      Previous value: -"Max results."New value: +"Default 100, max 1000. Above it: {results,total,returned}."
    • changedInput schema / properties / query / description
      Previous value: -"e.g. '$.users[*].name'."New value: +"Starts with $: '$.users[*].name', '$..price', '$.items[?(@.price<10)].id'. Filter ops: = != > >= < <= =~. '$' = whole document."
    • changedInput schema / properties / url / description
      Previous value: -"JSON URL (alt. to json)."New value: +"JSON URL, max 5 MB. Not with json."
  2. Changed4 schema fields changed
    • addedInput schema / properties / headers / description
      Added value: +"Headers to forward (Authorization, Cookie…)."
    • addedInput schema / properties / json / description
      Added value: +"Raw JSON (alt. to url)."
    • addedInput schema / properties / limit / description
      Added value: +"Max results."
    • addedInput schema / properties / url / description
      Added value: +"JSON URL (alt. to json)."
  3. Changed1 schema field changed
    • addedInput schema / properties / headers
      Added value: +{
      +  "type": "object"
      +}
  4. Changed4 schema fields changed
    • removedInput schema / properties / json / description
      Removed value: -"Raw JSON string to query (alternative to url)."
    • removedInput schema / properties / limit / description
      Removed value: -"Max number of results to return (default 100, max 1000)."
    • changedInput schema / properties / query / description
      Previous value: -"JSONPath-lite expression. Examples: '$.users[*].name', '$..price', '$.items[?(@.stock > 0)].id', '$.store.books[0].title'"New value: +"e.g. '$.users[*].name'."
    • removedInput schema / properties / url / description
      Removed value: -"URL returning JSON to query (http/https)."
  5. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description adds real value beyond that: free tier, an explicit 5 MB cap with the failure mode ('errors on invalid JSON or over 5 MB'), and the non-obvious return shape (one match bare, several as an array). Those are exactly the traits an agent cannot infer from structured fields.

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?

All the critical facts come first — free, read-only, source exclusivity, return shape — in one tight paragraph with no filler. The density borders on cryptic in the syntax list, but nothing is wasted.

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?

There is no output schema, so the description must carry return semantics, and it does partially (match cardinality, error conditions, limit-truncation guidance lives in the schema). A brief note on the error payload shape would close the remaining gap.

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 the schema already documents every parameter including the filter operators and the limit envelope. The description's main additions are negative constraints ('no slices or jq') and the 5 MB bound, which are useful but largely restate schema-level facts, so the baseline of 3 is right.

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 (JSONPath query over JSON from a URL or inline string) and pins the exact syntax subset supported. It also distinguishes itself from the paid sibling json_query_xl, so an agent can place it without opening a 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?

Explicitly notes url and json are mutually exclusive ('one of the two') and names json_query_xl with its 25 MB ceiling as the alternative for larger payloads. It stops short of routing against other siblings (csv_query, fetch_extract), so it is clear but not exhaustive.

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.