Update food entry
update_food_entryCorrect any field of an existing entry by id. Only the fields passed are changed.
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": {
"id": "<id>"
},
"name": "update_food_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| date | No | Calendar date YYYY-MM-DD in the user's timezone | |
| food | No | Link the entry to a saved food, recipe or batch (id or name): its numbers are recomputed from the saved values at quantity_g | |
| item | No | ||
| meal | No | A meal key from the user's meal plan (meals in the profile): breakfast, morning_snack, lunch, evening_snack, dinner, snack, other, or a custom key such as post_dinner. The meal's label is accepted too. | |
| fat_g | No | ||
| notes | No | Recipe or batch breakdown, how the estimate was made, uncertainty. | |
| micros | No | Replaces the whole micros object | |
| carbs_g | No | ||
| fibre_g | No | ||
| calories | No | ||
| eaten_at | No | HH:MM 24h in the user's timezone, when it was eaten; fills in a missing time | |
| quantity | No | The portion only, e.g. '140 g cooked'. Recipe or batch details go in notes. | |
| protein_g | No | ||
| quantity_g | No |