edit_food_entry
Modify an existing food diary entry's serving size, meal, or unit count to correct logged nutrition.
Instructions
Edit an existing food diary entry (change serving size, meal, or number of units). Use get_food_entries to find the food_entry_id. Requires Diary Read/Write API access.
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": {
"food_entry_id": "<food_entry_id>",
"serving_id": "<serving_id>",
"number_of_units": "<number_of_units>"
},
"name": "edit_food_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meal | No | New meal category | |
| serving_id | Yes | New serving size ID (from get_food) | |
| food_entry_id | Yes | ID of the diary entry to edit (from get_food_entries) | |
| food_entry_name | No | New custom display name (optional) | |
| number_of_units | Yes | New number of servings consumed |