Skip to main content
Glama

json_tool

Validate/format/minify/sort/get on JSON.

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>",
      "op": "<op>"
    },
    "name": "json_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
jsonYes
pathNo
indentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses nothing about behavior: whether 'validate' returns errors or a boolean, what 'get' returns when path is missing, whether format/sort alter semantics, or how failures are reported. Only the verb list hints at what happens.

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

Conciseness3/5

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

It's a single front-loaded fragment with no filler, which is efficient. However, the brevity comes at the cost of specification rather than being tight phrasing of a complete idea.

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

Completeness2/5

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

A four-parameter, six-operation tool with no annotations, no output schema, and zero schema description coverage needs the description to explain op semantics and return behavior. The one-liner leaves an agent guessing on almost everything needed to invoke it correctly.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and it does not. The slash list merely echoes the op enum values, and the 'path' and 'indent' parameters (and the fact that json is a string containing JSON) go entirely unexplained in both places.

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

Purpose3/5

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

The description names the resource (JSON) and lists verbs (validate/format/minify/sort/get), so the general domain is clear. But it is a compressed slash list rather than a specific statement, and opaque operations like 'get' (presumably path extraction) are left unexplained. It doesn't distinguish this tool from siblings like text_count or case_transform.

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 guidance on when to pick each op, or when to choose this tool over the sibling tools. The op enum in the schema does more routing work than the description does.

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