Skip to main content
Glama

json diff

json_diff
Read-only

Structural diff of two JSON documents: every added, removed and changed value with its JSON Pointer path, plus an RFC 6902 JSON Patch that turns the old document into the new one. Costs $0.002 USDC per call (x402).

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
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds real context by disclosing the output artifacts (JSON Pointer paths, JSON Patch) and, unusually, the per-call cost ($0.002 USDC via x402). It doesn't state limit sizes or failure modes, but the cost disclosure is meaningful behavioral info.

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 front-loaded sentence captures the operation and outputs, followed by a brief cost note. No filler or repetition; every clause earns its place.

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 2-param, no-output-schema tool with read-only annotations, the description covers what the tool does, what it returns, and its cost. The main gap is that the two required parameters remain undefined, which would help an agent know what to pass, but otherwise it's sufficient.

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 0% and parameters are opaque ('a' and 'b' have empty schemas), so the description must carry the burden. It describes the tool taking two JSON documents but doesn't explain what 'a' and 'b' represent (old vs. new) or their required format. This is a real gap, but the overall purpose implies the two-document comparison; baseline 3 given the low coverage.

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 ('Structural diff of two JSON documents') and enumerates the outputs precisely (added/removed/changed values with JSON Pointer paths, RFC 6902 JSON Patch). It distinguishes itself from the text_diff sibling by naming 'structural' JSON comparison explicitly.

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

Usage Guidelines3/5

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

The description implies usage for comparing JSON documents, and the structural/RFC 6902 phrasing hints at alternatives (e.g., text_diff for plain text) but never names one or states when not to use this tool. No prerequisites or input expectations are provided.

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