update_food_entry
Modify a logged food entry's grams, measure, or meal by entry ID; pass only the fields to change after finding the ID with get_food_log.
Instructions
Change a logged food entry: its amount, its measure, or its meal.
Use get_food_log to find the entry ID. Pass only what should change.
Args: entry_id: Serving/entry ID from get_food_log. date: Date the entry is logged on as YYYY-MM-DD (defaults to today). grams: New weight of the serving in grams. Only supported for weight-based foods and recipes; change serving-based recipe amounts in Cronometer. measure_id: New measure/unit ID from get_food_details (the amount is still given in grams). diary_group: Move to another meal: the name of one of the account's enabled diary groups (see get_diary_groups), matched ignoring case and whitespace. "auto" is not accepted here.
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": {
"entry_id": "<entry_id>"
},
"name": "update_food_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| grams | No | ||
| entry_id | Yes | ||
| measure_id | No | ||
| diary_group | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |