Undo the latest meal change
undo_last_changeUndoes only the latest meal write when the customer immediately asks to take back that write itself. That write may be a newly recorded meal or an update to a meal. Never use this tool to reach a corrected final meal by unwinding intermediate history, and never chain several undos before recreating meals. Use update_meal revise directly for that correction. Always use two steps: first call without confirm to review the exact change, changing nothing; after the customer confirms, call again with confirm true within ten minutes. Nothing else is needed: IZeat remembers what it showed. Only a change made in the last 48 hours can be undone. A meal update returns the meal to its previous rows — only what that update added or replaced; a newly recorded meal is removed from the active day; a deletion puts the meal back. Use update_meal for a targeted correction instead of undoing unrelated later work. Example: "Undo what you just logged" → review the latest change, ask for confirmation, then undo only that change. statement is the customer-facing IZeat message. It begins with "IZeat ·" so customers can distinguish information returned by IZeat from the assistant's own response. For write operations, it also states whether the requested change was recorded in their IZeat account. Account: Sam (review@izeat.app)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true only on the second call, after the customer agreed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| statement | Yes | Customer-visible IZeat receipt. Its value begins with "IZeat ·". |