Skip to main content
Glama

IA-QA — 152 QA & Dev Tools for AI Agents

json_diff

Read-onlyIdempotent

Compute a deep structural diff between two JSON values. Returns added, removed, and changed keys with dot-notation paths. Like git diff but for JSON objects, for API response regression testing. Arrays are not compared blindly by position: the same elements in a different order collapse to a single "reordered" change, and an array of records sharing a stable identity field (id, uuid, key, name…) is matched by that field, so paths read [id=42] and a moved record is not reported as N rewrites.

Input Schema

NameRequiredDescriptionDefault
afterYesThe modified JSON (after) — a JSON string, or the value itself.
beforeYesThe original JSON (before) — a JSON string, or the value itself.
max_depthNoMax nesting depth to recurse (default: 10)

Output Schema

NameRequiredDescriptionDefault
addedNo
changesNo
removedNo
modifiedNo
identicalNo
total_changesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "after": {
      +      "a": 1,
      +      "b": 2
      +    },
      +    "before": {
      +      "a": 1,
      +      "b": 2
      +    }
      +  }
      +]
  2. Changed4 schema fields changed
    • changedInput schema / properties / after / description
      Previous value: -"Modified JSON string (after)"New value: +"The modified JSON (after) — a JSON string, or the value itself."
    • changedInput schema / properties / after / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "object",
      +  "array"
      +]
    • changedInput schema / properties / before / description
      Previous value: -"Original JSON string (before)"New value: +"The original JSON (before) — a JSON string, or the value itself."
    • changedInput schema / properties / before / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "object",
      +  "array"
      +]
  3. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "added": {
      +    "type": "boolean"
      +  },
      +  "changes": {
      +    "type": "array"
      +  },
      +  "identical": {
      +    "type": "boolean"
      +  },
      +  "modified": {
      +    "type": "boolean"
      +  },
      +  "removed": {
      +    "type": "boolean"
      +  },
      +  "total_changes": {
      +    "type": "number"
      +  }
      +}
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  5. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.