Skip to main content
Glama

Read meals

list_meals
Read-only

Read the person's saved meals, newest first. Filter by day, by fromDay and toDay (inclusive local dates) for a range such as a week, or by from and to timestamps, and optionally by state to see plans or eaten meals. Only meals in a result exist; never claim others do. A day list_days marks partial is missing meals, so leave it out of averages and never call it a low day. To add up nutrition across meals or days, read list_day_totals rather than summing these.

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
toNoOnly meals eaten before this time, with its UTC offset
dayNoOnly meals on this local date, in each meal's own timezone
fromNoOnly meals eaten at or after this time, with its UTC offset
limitNoThe most meals to return
stateNoOnly planned meals or only eaten (logged) ones; leave out for both
toDayNoOnly meals on or before this local date
offsetNoSkip this many results. Pass the nextOffset of the previous page to read on; a null nextOffset means there are no more.
fromDayNoOnly meals on or after this local date

Output Schema

NameRequiredDescriptionDefault
mealsYes
nextOffsetYes

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 declare a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description still adds real behavioral context: only returned meals may be asserted to exist, partial days are missing meals, and pagination follows via the nextOffset contract in the schema. The completeness/partial-day caveats are exactly the kind of trait annotations cannot express.

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?

Four sentences, front-loaded with purpose then filtering, then the two guardrails. The filter sentence is long and stacks four alternatives, but nothing is filler and every clause carries an actionable constraint.

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 an 8-parameter, zero-required list tool with an output schema, the description covers scope, ordering, filter semantics, state selection, partial-day handling, existence claims, and routing to the totals tool. Return shape and pagination mechanics are already carried by the output schema and parameter descriptions, so nothing essential 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%, so the baseline is 3; the description earns extra by explaining the distinction between day-range filters (fromDay/toDay, inclusive local dates, e.g. a week) and timestamp-range filters (from/to), and by framing state as planned vs logged. It does not touch limit or offset beyond what the schema already documents.

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?

Opens with a specific verb and resource plus default ordering ("Read the person's saved meals, newest first") and immediately enumerates the filter axes. It also names the sibling it is not (list_day_totals for sums) and the sibling whose flags matter (list_days), so an agent can tell it apart 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 the alternatives and the conditions selecting them: use list_day_totals instead of summing meals, use state to choose plans vs eaten meals, omit state for both, and never treat a partial day from list_days as a low day. Both when-to-use and when-to-do-something-else are spelled out.

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.

Resources