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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction_id | Yes |