Update food log entry
update_food_logEdit a food entry by id (from get_food_log). If you change quantity_g without giving new nutrients, all nutrients are rescaled proportionally.
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_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Food log entry id | |
| date | No | Move to another date YYYY-MM-DD | |
| name | No | ||
| fat_g | No | ||
| notes | No | ||
| carbs_g | No | ||
| fiber_g | No | ||
| sugar_g | No | ||
| calories | No | ||
| servings | No | ||
| alcohol_g | No | ||
| meal_type | No | ||
| protein_g | No | ||
| sodium_mg | No | ||
| quantity_g | No |