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.

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

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover readOnly, idempotent, and non-destructive. The description adds meaningful behavioral constraints beyond annotations: the 31-day maximum range per call and the parameter inference rules (default today, end_date logic for week/range queries). This goes beyond what annotations provide.

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?

The description is well-structured with clear sections and bullets, but it contains some redundancy (e.g., the note about update_meal/delete_meal resolving appears twice in slightly different forms). It is still efficient overall and not bloated.

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?

Given the output schema exists, the description doesn't need to enumerate all return fields, but it still mentions key outputs (meal ID, date, type, food description, macros). It covers purpose, parameters, usage, routing, and constraints, providing everything an agent needs to invoke it correctly.

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

Parameters5/5

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

Both parameters (date and end_date) are fully described with format (YYYY-MM-DD), optionality, and specific semantics (start vs. single date, end of range). The description also explains default behavior and inference rules, making both parameters unambiguous.

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?

The description clearly states the tool lists meals logged for a date or range, with a specific verb ('List'), resource ('meals'), and scope (date/range). It also distinguishes it from siblings like show_meal_diary and show_week_macros via the ROUTING section.

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?

Provides explicit when-to-use guidance: answering 'what did I eat today/this week/yesterday?', reviewing logged meals, and retrieving an ID after an ambiguous update/delete match. It also explains when it is not required (update_meal/delete_meal can resolve on their own) and how to handle longer periods with multiple calls.

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.