Correct one logged food
edit_foodChange one food already logged, by its id from get_day: its amount or weight (Kove rescales its figures or looks it up again), raw or cooked, brand, name, meal, or figures the person states. The day's totals follow. Changes the record, so confirm with the person first.
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": "edit_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meal | No | ||
| name | No | ||
| brand | No | ||
| fat_g | No | ||
| grams | No | The corrected weight; Kove rescales or looks it up again. | |
| state | No | ||
| amount | No | The corrected amount in words. | |
| carbs_g | No | ||
| fiber_g | No | ||
| food_id | Yes | The food's id, from get_day. | |
| calories | No | New figures for the amount eaten, when the person gives them. | |
| protein_g | No | ||
| 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 |