data_diff_arrays
Compare two JSON arrays of objects to detect added, deleted, modified, and unchanged entries. Optionally specify a key to match objects between arrays.
Instructions
Compare two JSON arrays of objects and return the differences (added, deleted, modified, unchanged).
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": {
"arrayA": "<arrayA>",
"arrayB": "<arrayB>"
},
"name": "data_diff_arrays"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Optional unique key to match objects between arrays (e.g. 'id' or 'email'). | |
| arrayA | Yes | JSON string representing the baseline array. | |
| arrayB | Yes | JSON string representing the updated array to compare against A. |