Skip to main content
Glama

Vega Developer Utilities

Json diff

json_diff
Read-onlyIdempotent

Diff two JSON values (added/removed/changed keys).

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
aYesFirst JSON value, as text (the 'before' side).
bYesSecond JSON value, as text (the 'after' side).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / a / description
      Added value: +"First JSON value, as text (the 'before' side)."
    • addedInput schema / properties / b / description
      Added value: +"Second JSON value, as text (the 'after' side)."
  2. 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, idempotentHint, non-destructive and closed-world, so the safety profile is fully covered by structured data. The description adds only the shape of the result (added/removed/changed keys), and says nothing about diff depth (nested vs top-level), how changed values are represented, ordering, or size limits — modest added value against an already-covered baseline.

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 with no filler; the parenthetical result summary is the highest-value information and is placed immediately after the verb.

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?

With an output schema present, fully documented parameters, and complete annotations, the definition covers what an agent needs to select and call the tool. The missing piece is behavioral nuance such as nested-object handling, which is minor for a small two-parameter utility.

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% and both parameters are documented as the 'before' and 'after' JSON text values, so the schema carries the semantics. The description adds no further guidance on parameter usage or format, making the baseline 3 the correct score.

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 gives a specific verb ('Diff') and resource ('two JSON values') and even characterizes the result ('added/removed/changed keys'), which distinguishes it from formatting or conversion siblings like json_format or json_to_csv. It stops short of explicitly naming an alternative, so it is clear but not fully differentiated.

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?

There is no when-to-use guidance: nothing states that this is for comparing two documents rather than validating or reformatting, and no preconditions or exclusions are given. The only signal is the tool name and the inferred 'before'/'after' framing.

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