delete_meal
Permanently remove a logged meal by ID or by date and name. Deletes the meal and its linked hydration and caffeine records in one irreversible action, with no deletion unless exactly one match is found.
Instructions
Permanently delete a meal entry. Use when the user explicitly asks to remove or delete a logged meal.
FIND THE MEAL: pass id if already known. Otherwise pass date (YYYY-MM-DD, defaults to today) and, only if more than one meal was logged that day, name (a substring of the food description, case-insensitive) to narrow it down. This action is irreversible — a match that isn't exactly one meal returns an error explaining why, with nothing deleted; retry with id or a narrower name, never guess.
HYDRATION: any assistant hydration events linked to this meal are deleted by the database in the same food-row delete. Do not issue a separate hydration delete.
CAFFEINE: caffeine sidecars linked to this meal are deleted by the database in the same food-row delete. Do not call a separate caffeine delete tool.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delete_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Meal ID, if already known. Alternative to date + name — see FIND THE MEAL above. | |
| date | No | Date the meal was logged. Format: YYYY-MM-DD. Used with name to find the meal when id is omitted; defaults to today if id and date are both omitted. | |
| name | No | Substring of the food description (case-insensitive) to disambiguate multiple meals on the same date. Only used when id is omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |