Skip to main content
Glama

list_meals

Read-onlyIdempotent

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

NameRequiredDescriptionDefault
dateNoStart date, or the single date. YYYY-MM-DD; omit for today (resolved in the user's own timezone).
end_dateNoRange end, YYYY-MM-DD; omit for a single day.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Start date (or the single date if no range). Format: YYYY-MM-DD. Optional — omit for today (resolved in the user's own timezone)."New value: +"Start date, or the single date. YYYY-MM-DD; omit for today (resolved in the user's own timezone)."
    • changedInput schema / properties / end_date / description
      Previous value: -"End date for a range query. Format: YYYY-MM-DD. Optional — omit for a single-day lookup."New value: +"Range end, YYYY-MM-DD; omit for a single day."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, but the description adds non-obvious operational details: max 31 days per call, sequential calls for longer ranges, caution about untimed rows, and the meaning of 'excluded from totals' for implausible imported meals. These details materially affect how an agent should call and interpret the tool.

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

Conciseness5/5

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

Front-loads the core purpose, then uses compact labeled guidance for use cases, prerequisites, glucose linkage, range limits, excluded rows, inference rules, and routing. It is dense but every section addresses a distinct decision the caller must make.

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?

For a two-parameter read-only list tool with an output schema, the description is complete: it covers scope, alternatives, range constraints, cross-tool glucose usage, edge-case meal classification, and inference rules. There is no meaningful gap an agent would need filled before calling it correctly.

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%, so date and end_date formats and defaults are already documented in the schema. The description adds useful natural-language range interpretation ('this week' -> date=Monday, end_date=today; 'last 7 days' -> date=7 days ago, end_date=today), which helps map user phrasing to parameters.

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 and resource ('List meals') with scope ('for a date or date range') and enumerates returned fields such as ID, date, local time, type, food description, and macros. The routing note distinguishing exact rows from show_meal_diary and show_week_macros makes the purpose clearly separable from siblings.

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 gives use cases ('what did I eat today/this week/yesterday?', reviewing the log, getting an ID after an ambiguous update/delete match). It also says when the tool is not required before update_meal/delete_meal, explains glucose cross-referencing, and provides routing rules for exact rows vs one-day visual diary vs multi-day macro trend.

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.