Skip to main content
Glama

list_meals

Read-onlyIdempotent

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. A meal marked "excluded from totals" is an imported meal from an implausible day: it is listed so it can be edited or deleted, but it is not in that day's calories or macros.

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

NameRequiredDescriptionDefault
dateNoStart date (or the single date if no range). Format: YYYY-MM-DD. Optional — omit for today (resolved in the user's own timezone).
end_dateNoEnd date for a range query. Format: YYYY-MM-DD. Optional — omit for a single-day lookup.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description earns credit for going beyond them: the 31-day maximum range per call, the need for sequential calls over longer periods, user-timezone resolution of 'today', and the meaning of the 'excluded from totals' flag. These are behavioral traits no annotation or schema conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose and scope, then uses clear labeled sections (INFER, ROUTING) so an agent can scan quickly. It is longer than strictly necessary and restates the update_meal/delete_meal relationship in two places, but nearly every sentence carries usable information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value documentation is unnecessary, and the description still covers the non-obvious data semantics (excluded-from-totals imports), the range cap, and default date resolution. Nothing an agent needs in order to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters are already documented, so the baseline is 3; however the description adds inference guidance the schema lacks (default date to today, mapping 'this week' to date=Monday/end_date=today, omitting end_date for a single day). That is meaningful semantics beyond the raw field definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (list logged meals) with explicit scope (date or date range) and enumerates the returned fields (ID, date, type, food description, macros). It also clarifies its relationship to update_meal and delete_meal, letting an agent distinguish it from log_meal and show_meal_diary without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use it ('what did I eat today/this week/yesterday?', review logged meals, resolve an ID after an ambiguous match) and when it is not needed (no longer required before update_meal/delete_meal). The ROUTING section names the alternatives show_meal_diary and show_week_macros along with the conditions that select each.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.