diff_json_payload_samples
Compares before/after JSON payload samples, infers normalized schemas, and flags breaking field removals, nullability shifts, and type mutations.
Instructions
Infers normalized JSON schemas from raw Before/After API response or request/response JSON payload samples and detects breaking field removals, nullability shifts, and type mutations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diff_json_payload_samples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| afterJson | No | Raw JSON string (object or array of samples) captured from the candidate API payload. | |
| afterPath | No | Optional local file path to the candidate JSON sample file when afterJson is omitted. | |
| beforeJson | No | Raw JSON string (object or array of samples) captured from the baseline API payload. | |
| beforePath | No | Optional local file path to the baseline JSON sample file when beforeJson is omitted. | |
| endpointLabel | No | Optional route label such as "GET /v1/orders" attached to inferred payload findings. |