undo_edit
Undo a previous edit_transaction or bulk_edit_transactions by reverting the affected transactions to their prior state. Returns the undo's own undoBulkEditId — itself a handle you can undo again to REDO the change. When the user asks to undo, revert, or take back an edit you just made. Pass the bulkEditId returned by the edit being undone (forward it verbatim — never invent one); to redo, pass the undoBulkEditId from a prior undo_edit. Not for deleting a manually-added transaction (that's a different mechanism), and not for changing data — only for reverting a prior edit or bulk-edit. The bulkEditId parameter is the undo handle from a prior edit_transaction / bulk_edit_transactions result, or the undoBulkEditId from a prior undo_edit (to redo). Forward it verbatim; never invent one. If nothing matches the id (already undone, or stale), narrate "nothing to undo" rather than treating it as an error. Applying this triggers a recalculation of the user's data.
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": {
"bulkEditId": "<bulkEditId>",
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "undo_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | Write one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details". | |
| clientId | No | The client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| bulkEditId | Yes | The undo handle from a prior edit_transaction / bulk_edit_transactions result (its `Bulk Edit ID`), or the undoBulkEditId from a prior undo_edit (to redo). Forward it verbatim; never invent one. |