Skip to main content
Glama

Zorqelio — Data Reliability for AI Agents

json_diff

Compare two JSON documents and return deterministic JSON Pointer paths that were added, removed, or changed. Example: {before: '{"quantity":7}', after: '{"quantity":6}'}.

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": {
      "before": "<before>",
      "after": "<after>"
    },
    "name": "json_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterYesUpdated document as JSON text.
beforeYesOriginal document as JSON text.
maxChangesNoMaximum JSON Pointer changes to return.
operationIdNoStable unique request identifier. Reuse it only for an exact retry.
workspaceTokenNoSecret API token for the workspace; keep it private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / after / description
      Added value: +"Updated document as JSON text."
    • addedInput schema / properties / before / description
      Added value: +"Original document as JSON text."
    • addedInput schema / properties / maxChanges / description
      Added value: +"Maximum JSON Pointer changes to return."
  2. Changed3 schema fields changed
    • removedInput schema / properties / after / description
      Removed value: -"Value for the after parameter of the json_diff tool; follow its schema constraints."
    • removedInput schema / properties / before / description
      Removed value: -"Value for the before parameter of the json_diff tool; follow its schema constraints."
    • removedInput schema / properties / maxChanges / description
      Removed value: -"Value for the maxChanges parameter of the json_diff tool; follow its schema constraints."
  3. Changed5 schema fields changed
    • addedInput schema / properties / after / description
      Added value: +"Value for the after parameter of the json_diff tool; follow its schema constraints."
    • addedInput schema / properties / before / description
      Added value: +"Value for the before parameter of the json_diff tool; follow its schema constraints."
    • addedInput schema / properties / maxChanges / description
      Added value: +"Value for the maxChanges parameter of the json_diff tool; follow its schema constraints."
    • addedInput schema / properties / operationId / description
      Added value: +"Stable unique request identifier. Reuse it only for an exact retry."
    • addedInput schema / properties / workspaceToken / description
      Added value: +"Secret API token for the workspace; keep it private."
  4. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is supplied structurally. The description adds that paths are deterministic but does not say whether output is truncated or how it is ordered, and it never mentions that a workspaceToken is needed to authenticate the call. Note the mild tension between the stated determinism and idempotentHint=false; it is best explained by the retry-oriented operationId rather than a real contradiction.

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?

Two sentences, front-loaded with the verb, resource and return type, followed by a compact example that earns its place by showing the string-encoded input form. No filler, though the example partially duplicates the parameter descriptions.

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

Completeness3/5

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

No output schema exists, so the description carries the burden of explaining the return value, and it only partly does: it names JSON Pointer paths and the added/removed/changed categories but not the result envelope or how truncation is signalled. For a tool with a maxChanges cap and an auth token, the omission of limit and authentication behavior is a real gap.

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%, so all five parameters (including maxChanges, operationId and workspaceToken) are already documented in the schema; the description is not obliged to repeat them. The example does add a little meaning by making explicit that before/after are string-encoded JSON text rather than objects. It says nothing about maxChanges or the truncation semantics that parameter implies.

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?

The description pairs a specific verb ("Compare") with a specific resource (two JSON documents) and names the output format (deterministic JSON Pointer paths) plus the three change classes. That is enough to distinguish it from siblings like json_format or json_schema_validate, even though no alternative is named.

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?

Usage is only implied: the tool is for diffing two JSON texts, and the inline example shows how before/after are passed. There is no statement of when to prefer it over contract_compare or json_schema_validate, and no exclusions (e.g., it is not a schema or contract comparison).

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