delete_meal
Permanently remove a logged meal by ID or date and food name. Linked hydration entries are deleted automatically, and ambiguous matches delete nothing to avoid mistakes.
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.
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. |