undo_transaction
Safely revert a past transaction: first checks for conflicts, then undoes if clean, with dry-run preview and forced override to discard later edits.
Instructions
Undo a past transaction, after checking whether it can be undone cleanly.
A conflict means an object was edited again after this transaction; undoing anyway throws that later edit away. The conflict check is free and runs first, so the default tells you what you are dealing with before anything changes.
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": {
"transaction_id": "<transaction_id>"
},
"name": "undo_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Undo even when there are conflicts. This DISCARDS edits made to those objects after the transaction. Use deliberately. | |
| dry_run | No | True (default) only checks whether the undo is clean. Set False to actually undo. | |
| transaction_id | Yes | From list_transactions. |