undo_transaction
Reverse an incorrectly recorded stock transaction using its transaction ID, keeping inventory history accurate and preserving best-before dates.
Instructions
Reverse a stock transaction that should not have been recorded.
Every write tool returns a transaction_id; stock_history shows older ones. Undoing is the right way to fix a mistake — booking an opposite consume or purchase instead leaves both entries in the history and gets the best-before dates wrong.
Args: transaction_id: From a write tool's response, or from stock_history.
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 |
|---|---|---|---|
| transaction_id | Yes |