list_meals
List meals logged for a date or date range: ID, date, recorded local time (when known), type, food description, macros. use: "what did I eat today/this week/yesterday?", reviewing the log, or getting an id after an ambiguous update_meal/delete_meal match. not required before update_meal or delete_meal: they resolve a meal themselves from date (+ optional name substring). glucose: pass an ID as list_glucose_readings.meal_id for observed before/after-meal glucose; never assume a time for an untimed row. range: max 31 days per call; longer -> multiple calls with sequential date ranges. "excluded from totals": an imported meal from an implausible day; listed so it can be edited or deleted, not counted in that day's calories or macros.
INFER, do not ask: week or range -> end_date covers the full period ("this week" -> date=Monday, end_date=today; "last 7 days" -> date=7 days ago, end_date=today).
ROUTING: Exact rows/IDs/ranges: list_meals. One-day visual diary: show_meal_diary. Multi-day macro trend: show_week_macros.
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": "list_meals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Start date, or the single date. YYYY-MM-DD; omit for today (resolved in the user's own timezone). | |
| end_date | No | Range end, YYYY-MM-DD; omit for a single day. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Human-readable result text returned by the tool. |