Skip to main content
Glama

JSON Diff Checker API - Structural JSON Compare & RFC 6902 JSON Patch

json_diff_checker
Read-onlyIdempotent

Compare two JSON objects, arrays, or JSON strings structurally (ignoring key order and formatting). Returns every added, removed, changed, and type-changed JSONPath plus an RFC 6902 JSON Patch array. Supports ignoreArrayOrder, ignoreCase, ignoreWhitespace, and numericTolerance. 0 AI, deterministic, < 5 ms. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/json-diff-checker.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "left": {
        "retries": 3,
        "service": "billing-api",
        "version": "2.4.0"
      },
      "right": {
        "retries": 5,
        "service": "billing-api",
        "version": "2.5.0",
        "batchExport": true
      },
      "ignoreArrayOrder": false
    },
    "name": "json_diff_checker"
  }
}

Input Schema

NameRequiredDescriptionDefault
leftYesOriginal JSON object, array, or JSON string
rightYesModified JSON object, array, or JSON string
ignoreCaseNoIgnore letter case when comparing strings
ignoreArrayOrderNoCompare arrays as order-independent multisets
ignoreWhitespaceNoNormalize repeated whitespace in strings
numericToleranceNoAbsolute tolerance for floating-point equality (e.g. 0.001)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, openWorld. The description adds genuinely new operational context: determinism, sub-5ms latency, a free tier of 5 calls/day per IP, and the two paid paths (Radar API key via X-API-Key header or x402 per-call payment). However, it omits anything about error behavior, input size limits, or what happens when inputs are malformed.

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

Conciseness4/5

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

Front-loaded with capability and return values, then options, then pricing/auth — a sensible priority order with no filler sentences. The pricing/URL tail is dense but earns its place for callers needing access details.

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?

No output schema exists, yet the description enumerates the return shape (added/removed/changed/type-changed JSONPath plus RFC 6902 patch array), and it fully covers authentication and rate-limit tiers. For a two-required-parameter comparison tool, nothing an agent needs to invoke it correctly is missing.

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 all six parameters are already self-documenting with defaults. The description only re-lists the four boolean/numeric flags by name without adding format or edge-case semantics (e.g. how numericTolerance interacts with type-changed reporting). Baseline 3 applies when the schema does the heavy lifting.

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 ('Compare two JSON objects, arrays, or JSON strings structurally') and immediately scopes it against text-based siblings by specifying 'ignoring key order and formatting'. The named return artifacts (JSONPath deltas plus RFC 6902 patch) further pin down what the tool does.

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

Usage Guidelines4/5

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

The structural/semantic framing gives clear context for when this is the right tool versus a plain text diff, and the ignore* options signal compare-configuration use cases. It stops short of explicitly naming an alternative or stating exclusions, so it lands at 4 rather than 5.

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