mutation-intent
Diff a before/after JSON write for deletes, null-vs-omit and emptied arrays against protected paths — Compares the JSON document an agent read (before) with the one it is about to write (after) and lists every change by JSON Pointer: removed members, null turned into omitted (and the reverse), arrays emptied or shrunk, objects emptied, type changes. Fails when a change touches a protected path or is destructive and not listed in allowDestructive; use it before a PUT, PATCH or bulk update. Arrays a
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": {
"before": "<before>",
"after": "<after>"
},
"name": "mutation-intent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | JSON value about to be written. | |
| before | Yes | JSON value as last read. | |
| protectedPaths | No | JSON Pointers that must not change at all; a "*" token matches any one key or index. | |
| allowDestructive | No | JSON Pointers ("*" wildcard) under which deletes, emptied containers and type changes are intended. |