edit_meal
Correct a logged meal by replacing its items or changing meal type, time, or notes; unspecified fields remain unchanged and updated day totals are returned.
Instructions
Correct a logged meal: replace its items or change its type, time, or notes. Unspecified fields stay as they are. Returns the updated meal and its day's totals.
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": {
"meal_id": "<meal_id>"
},
"name": "edit_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Replaces ALL items; include the ones to keep | |
| notes | No | ||
| meal_id | Yes | ||
| eaten_at | No | ISO 8601. No offset means local time. Omit for now. | |
| meal_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||