Skip to main content
Glama

json_query

Read-only

Query JSON with JSONPath-lite ($.a[*].b, ..key). One of url or json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoJSON URL (alt. to json).
jsonNoRaw JSON (alt. to url).
limitNoMax results.
queryYese.g. '$.users[*].name'.
headersNoHeaders to forward (Authorization, Cookie…).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 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)."
  2. Changed1 schema field changed
    • addedInput schema / properties / headers
      Added value: +{
      +  "type": "object"
      +}
  3. 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)."
  4. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The readOnlyHint annotation already signals a safe read operation. The description adds that JSONPath is 'lite' and requires either a URL or raw JSON, but does not disclose behavior like error handling, return format, or pagination. It adds some context beyond annotations but not rich behavioral detail.

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?

The description is a single sentence, front-loaded with the core action ('Query JSON with JSONPath-lite') and includes essential usage constraints without redundancy. Every word earns its place.

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

Completeness3/5

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

With 5 parameters and no output schema, the description provides minimal but sufficient context for basic usage, but omits details about return values, error behavior, or handling of limits/headers. Given the tool's simplicity and read-only annotation, the gap is acceptable but not fully complete.

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 100%, so the baseline is 3. The description adds meaningful syntax examples for the 'query' parameter and clarifies the mutual exclusivity of 'url' and 'json' beyond the schema's 'alt' note, effectively enhancing parameter understanding.

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?

The description clearly states it queries JSON with JSONPath-lite, providing specific syntax examples ($.a[*].b, ..key). This distinguishes it from siblings like csv_query and fetch_extract by focusing on JSON-specific querying with a clear verb and resource.

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?

While the description notes 'One of url or json' as an input requirement, it provides no explicit guidance on when to choose this tool over alternatives such as csv_query or fetch_extract. No exclusions or compared contexts are given.

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.

TDQS

A3.6/5.0
Disambiguation3/5

Several tools overlap in fetching and processing web content (fetch_extract, fetch_html, fetch_metadata, html_to_markdown), which could confuse an agent. However, descriptions clarify output types, so most tools are distinguishable.

Naming Consistency3/5

Names follow mixed conventions: verb_noun (fetch_html, remove_background), noun_verb (csv_query, rss_parse), and noun_noun (tool_catalog, screenshot_url). Each name is descriptive, but the lack of a consistent pattern makes it harder to guess tool names.

Tool Count4/5

With 17 tools, the count is slightly above the ideal 3-15 range but still manageable. The inclusion of 5 meta-tools (pricing, tool_catalog, task_recipes, memory_snippet, use_tool) inflates the count but serves a discovery purpose.

Completeness4/5

The toolkit covers a broad range of web and data tasks (fetch, parse, query, convert, image, SEO). Minor gaps exist (e.g., no OCR, no image editing), but use_tool can dynamically access additional tools, mitigating incompleteness.