Skip to main content
Glama

Food diary

food_log

Foods logged in a nutrition app, within an inclusive date range of up to 31 days and 500 items. Items are what that app wrote to Apple Health, one per food, with energy, macros and other nutrients. A meal is only a grouping by time (items starting within 45 minutes of each other), not a label such as breakfast or lunch, and there are no portions. Meal totals add only the values present. Do not sum across sources: the day total is query_daily. When a meal lists more than one source, its totals may count the same food twice. Edits and deletions in the source app only reach telo for the last 7 days before the last sync. On a new Pro import, the older diary arrives after the rest of the history. Names are what the person typed in their app.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "food_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes

Output Schema

NameRequiredDescriptionDefault
daysYes
setupNo
truncatedYes
plan_limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

The annotations declare readOnlyHint=false, yet the description never explains why querying a diary would be non-read-only (e.g., a sync side effect), which is a meaningful gap an agent would want resolved. It does add substantial behavior beyond annotations: 7-day sync latency for edits/deletions, delayed backfill after a new Pro import, and the double-counting hazard when a meal spans multiple sources.

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?

Six dense sentences, each carrying distinct information: scope first, then item semantics, then meal grouping, then the sum-across-sources warning, then staleness caveats. It is front-loaded well, though the Pro-import ordering note is niche and could be trimmed without losing much.

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

Completeness4/5

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

For a semantically tricky nutrition source (no portions, time-based meals, duplicate counting, stale edits) the description covers the pitfalls an agent would otherwise get wrong, and an output schema exists so return values need not be re-explained. Remaining gaps are behavior at the 31-day/500-item boundary and date/timezone semantics.

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 description coverage is 0%, so the description must carry the parameters, and it does add real meaning: the range is inclusive and capped at 31 days, which is not encoded in the schema pattern. It does not discuss date-boundary or timezone handling, and the 500-item cap is not tied to either parameter.

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 opening sentence names a specific resource (foods logged in a nutrition app) with scope (inclusive date range, 31 days, 500 items), and the second sentence defines the unit of return (one item per food with energy, macros, nutrients). It explicitly names the sibling query_daily as the tool for day totals, so an agent can separate the two without opening a schema.

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

Usage Guidelines4/5

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

It gives a clear routing rule ('Do not sum across sources: the day total is query_daily') and hard usage constraints (31-day range, 500 items, inclusive bounds). It stops short of stating what happens when the range or item cap is exceeded, so an agent cannot predict truncation versus error.

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