Skip to main content
Glama

mechacut

json_diff

Structural diff between two JSON values: sorted changes with RFC 6901 pointer paths (added/removed/changed). Free.

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "json_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesoriginal JSON
bYesmodified JSON

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations and no output schema, the description carries the full behavioral burden, and it does disclose the return shape: sorted changes tagged added/removed/changed with RFC 6901 pointer paths. However, it says nothing about how 'changed' is decided (value vs. type equality), ordering semantics for arrays, or what happens with invalid JSON input.

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?

A single sentence that front-loads the operation and then the output contract; nothing is redundant or padded.

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?

For a simple two-input read-only comparison tool with no annotations and no output schema, the description covers purpose and return structure adequately. It leaves error behavior and array/ordering handling unspecified, which keeps it from a full 5.

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 coverage is 100%, so both parameters are already documented as 'original JSON' and 'modified JSON'. The description only restates that the inputs are two JSON values and adds no semantics about nesting, ordering, or accepted types beyond the schema.

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

Purpose4/5

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

States a specific verb and resource: 'Structural diff between two JSON values'. The word 'Structural' implicitly separates it from textual diff siblings like text_diff/csv_diff, but no sibling is named, so this falls just short of the top score.

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?

No when-to-use or when-not-to-use guidance and no reference to alternatives (e.g. json_patch to apply changes, text_diff for textual comparison, json_canonical for normalization). The agent must infer the selection criteria from the one-line purpose.

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.