Reverse CRM Write
reverse_audit_eventUndo one recorded CRM write, restoring every field to the value it held before. Runs as a background task, so the row's status moves when it finishes. It is refused unless the event is the NEWEST un-reversed one OF ITS RUN (events are grouped by caller_request_id, not by which tool wrote them) -- reversing an older write first would restore values a newer one still holds. Find the id with list_audit_events, whose reversible flag applies this same rule, so an entry marked reversible is one this tool will accept. A field someone changed since the write is a conflict, found before anything is written; on_conflict decides.
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": {
"audit_event_id": "<audit_event_id>",
"connection_id": "<connection_id>"
},
"name": "reverse_audit_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on_conflict | No | What to do with fields someone changed since the write. Leave it out to use the connection's undo rules (abort: write nothing). skip restores the rest; overwrite restores those fields too, over the later change -- use only when asked to. | |
| connection_id | Yes | The CRM connection. Call list_crm_connections first. | |
| audit_event_id | Yes | The audit event to reverse. Call list_audit_events first. |