Skip to main content
Glama

diff_json_deep

Generate deterministic RFC-6902 JSON patches that correctly handle array reordering and circular references without stack overflow.

Instructions

Deterministic RFC-6902 JSON Patch generator that handles array reordering and circular reference traps without stack overflow. (0.01 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose meaningful behavior: determinism, array reordering support, circular reference handling, stack overflow avoidance, and a cost of 0.01 USDC. It does not detail error behavior or exact input representation, but it gives more than a basic mutation/read label.

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?

The description is a single dense sentence that front-loads the core purpose and key differentiators, then appends the payment requirement. Every clause adds information and there is no redundant or filler content.

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?

The description explains the core algorithm and payment, and RFC-6902 implies the return format. However, it does not explicitly state that payload must contain two JSON values, how they are ordered, or what happens if inputs are malformed. For a tool with no output schema, a bit more input-structure guidance would make it fully complete.

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 the baseline is 3. The description adds no detail about how the payload should encode the two JSON documents being diffed, and the schema's 'Input parameters or JSON string payload' is generic. The tool name and RFC-6902 reference provide some inference, but the description does not compensate further.

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 names a precise deliverable: a 'Deterministic RFC-6902 JSON Patch generator'. It also distinguishes itself with specific capabilities like array reordering and circular reference handling, though it does not explicitly contrast with sibling diff tools.

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?

The description implies the tool should be used when a deterministic JSON diff is needed, but it provides no explicit guidance on when to prefer it over alternatives such as diff_ast_trees or git_diff_semantic_summarizer. No exclusions or alternate routing are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools