list_meals
List all meals logged for a date or date range, including each meal's ID, date, type, food description, and macros. update_meal and delete_meal can resolve a meal on their own from date (+ optional name substring), so this is no longer required before either — use it to answer "what did I eat today/this week/yesterday?", review what has been logged, or get an id after an ambiguous update_meal/delete_meal match.
Maximum range: 31 days per call. For longer periods, make multiple calls with sequential date ranges.
INFER — do not ask:
date: default to today
end_date: if the user asks about a week or range, set end_date to cover the full period (e.g. "this week" → date=Monday, end_date=today; "last 7 days" → date=7 days ago, end_date=today). For a single day, omit end_date.
ROUTING: Exact rows/IDs/ranges: list_meals. One-day visual diary: show_meal_diary. Multi-day macro trend: show_week_macros.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Start date (or the single date if no range). Format: YYYY-MM-DD. Optional — omit for today (resolved in the user's own timezone). | |
| end_date | No | End date for a range query. Format: YYYY-MM-DD. Optional — omit for a single-day lookup. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |