Skip to main content
Glama

Get food log

get_food_log
Read-onlyIdempotent

Food entries for one date or a range (max 31 days), grouped by day and meal, with the local time each item was eaten, entry ids (needed for update/delete) and totals. The result starts with the user's current local time.

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": "get_food_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRange end YYYY-MM-DD
dateNoLocal date YYYY-MM-DD (or 'today'/'yesterday'). Defaults to today in the user's timezone.
fromNoRange start YYYY-MM-DD (use with to)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is added context, and it delivers: the 31-day range ceiling, the day/meal grouping, the local eaten-at time, and the current-local-time header in the response. It does not mention pagination or result-size behavior, which is the only notable gap.

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?

Two dense sentences with no filler. The retrieval shape and range limit are front-loaded, and the return-content details follow in a logical order.

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?

With no output schema, the description carries the burden of describing returns, and it does: grouping, per-item local time, entry ids, totals, and the leading current-time field. Combined with annotations and a fully documented three-param schema, nothing essential is missing for correct invocation.

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, but the description adds meaning the schema lacks: the 31-day maximum applies to the from/to pair, and date resolution uses the user's timezone. That materially clarifies how the two optional range parameters interact.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (food entries) and the retrieval shape: one date or a range, grouped by day and meal, with ids and totals. That distinguishes it from aggregate siblings like get_nutrition_summary, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

The 'max 31 days' cap and the note that entry ids are needed for update/delete imply a retrieval-then-mutate workflow, and the schema-backed default of today implies the no-arg case. It never states when to prefer this over get_nutrition_summary or get_daily_overview, so guidance is implied rather than explicit.

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