delete_meal
Delete one food from a diary entry (by item_index), or the whole entry (without it). The entry is identified by id and local_date. Deletion is permanent, with no undo; deleting the last food removes the entry, and an id that matches no entry on that date returns a not-found error and deletes nothing. All calorie and macro values, including carbohydrates, are estimates from USDA FoodData Central, Open Food Facts, the user's own entry or an AI assistant's estimate — approximate, not lab-measured or specific to a package or batch, and not suitable for insulin dosing (including carb counting for a meal bolus), blood-glucose prediction or any other medical decision.
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>",
"local_date": "<local_date>"
},
"name": "delete_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The entry id, shown with each entry in the reply text when a meal is logged or a day or range is read. | |
| item_index | No | Which food to remove (0-based). Omit to delete the whole entry. | |
| local_date | Yes | YYYY-MM-DD diary date of the entry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | What remains of the entry, or null. | |
| removed | Yes | ||
| day_totals | Yes |