Remove one logged food
remove_foodTake one food off its day, by its id from get_day; the day's totals follow. Confirm with the person first. Undo puts it back.
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": {
"idempotency_key": "<idempotency_key>",
"food_id": "<food_id>"
},
"name": "remove_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes | The food's id, from get_day. | |
| idempotency_key | Yes | A new random string per write (8-128 of A-Z a-z 0-9 - _ . :); send the same one to retry, never a new one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| written | Yes | ||
| replayed | No | ||
| write_id | No |