Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

list_meals

Read-onlyIdempotent

Retrieve logged meals for a date or date range with IDs, times, types, foods, and macros to review intake or link meals to glucose readings.

Instructions

List all meals logged for a date or date range, including each meal's ID, date, recorded local time (when known), type, food description, and macros. Use the IDs with list_glucose_readings.meal_id for observed before/after-meal glucose; do not assume a time for untimed rows. 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.

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 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 observedv1.2.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent/non-destructive annotations by disclosing the 31-day maximum range, the multi-call strategy for longer periods, the meaning of "excluded from totals" rows, and the caveat that untimed rows must not be assumed to have a time. These are real behavioral constraints an agent would otherwise discover only by failing.

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-loaded with purpose, then limits, then inference rules, then routing — a sensible information hierarchy, with capitalized section headers that make scanning easy. It is somewhat dense for a two-parameter tool, and the field enumeration in the first sentence partially duplicates the existing output schema.

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 filtered-list tool with a 31-day cap, special excluded-from-totals rows, and untimed records, everything an agent needs to call it correctly is stated. Return values are backed by an output schema, so the field list is a bonus rather than a gap.

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

Parameters3/5

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

Schema description coverage is 100%, so both date and end_date are already documented and the baseline is 3. The INFER block does add genuine interpretation guidance ("this week" → date=Monday, end_date=today; omit end_date for single days) that goes beyond the schema's generic "omit for today" wording, but the core parameter meaning is still carried by the schema.

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+resource and enumerates exactly what a row contains (ID, date, local time, type, food description, macros). It then explicitly distinguishes itself from show_meal_diary and show_week_macros, so an agent can pick it 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?

States concrete use cases ("what did I eat today/this week/yesterday?", reviewing logs, resolving an ambiguous update/delete match) and a ROUTING block that names the alternative for each case: exact rows → list_meals, one-day diary → show_meal_diary, multi-day trend → show_week_macros. It also clarifies the negative case: it is no longer required before update_meal/delete_meal.

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