Skip to main content
Glama

Describe JSON

query_json_describe
Read-onlyIdempotent

Shows the structure of an uploaded JSON file — root type, top-level keys, and a sampled shape a few levels deep, including array lengths — so you know what paths exist before writing a JSONata expression. Call this before query_run_jsonata. Only works on uploaded .json files; use the listing tool to find candidates. Array shapes are sampled from the first element only — other elements may differ.

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": {
      "path": "<path>",
      "context": "<context>"
    },
    "name": "query_json_describe"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesVFS path of the JSON file, e.g. '/config/settings.json'.
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
workspace_idNoWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotent, so the safety profile is covered; the description adds real behavioral caveats not in structured data — the inspection is depth-limited ("a few levels deep") and array shapes are inferred from the first element only, which affects how results should be trusted. It stops short of describing behavior on missing/non-JSON paths, so it is not fully complete.

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?

Four short sentences, front-loaded with what the tool returns, then the sequencing rule, then the file-type restriction, then the sampling caveat. Nothing is repeated from the schema or annotations and no sentence is filler.

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 must convey the return shape, and it does — root type, top-level keys, sampled nesting depth, array lengths — plus the preconditions for use. For a read-only inspection tool with full schema coverage, an agent has everything needed to call it and interpret its output.

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% for all three parameters, including the mandated context-writing rules and workspace_id fallback, so the schema carries parameter meaning. The description adds no path-format or workspace behavior beyond that, which is the expected baseline when the schema is self-sufficient.

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?

Names a specific verb and resource ("Shows the structure of an uploaded JSON file") and enumerates exactly what the structure report contains: root type, top-level keys, sampled shape a few levels deep, and array lengths. This clearly distinguishes it from the sibling query_run_jsonata it is meant to precede and from file-listing tools.

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

Usage Guidelines5/5

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

Gives an explicit sequencing instruction ("Call this before query_run_jsonata") plus a negative constraint ("Only works on uploaded .json files") and routes the agent to the listing tool for discovery. The when-to-use condition and the sibling it precedes are both stated outright.

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