Skip to main content
Glama

MALAI

Food log

malai_get_food_log
Read-onlyIdempotent

MALAI: Read what the user actually logged in MALAI across a date range: their real history, not a plan. Use for "what did I eat yesterday", "what did I have this week", "how has my protein been lately". Defaults to the last 7 days. Returns each entry with its entryId, meal and nutrition, and a total.

Input Schema

NameRequiredDescriptionDefault
endDateNoLast day, YYYY-MM-DD, inclusive. Defaults to today.
startDateNoFirst day, YYYY-MM-DD, in the user's time zone. Defaults to 6 days before today.

Output Schema

NameRequiredDescriptionDefault
noteYes
countYes
entriesYes
summaryYesTotals across the returned entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and closed-world, so the bar is lower; the description still adds useful behavior by stating the default range ('last 7 days') and summarizing what arrives per entry (entryId, meal, nutrition, plus a total). No rate limits or edge cases (e.g., empty ranges, cross-timezone boundaries) are mentioned, keeping it short of a 5.

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 sentences: the first front-loads identity and scope differentiation, the second packs returns, defaults and example queries with no filler. Every clause earns its place.

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?

An output schema exists, so the brief return summary is a bonus rather than a requirement, and the parameter documentation is complete. For a two-optional-param read tool this is nearly everything an agent needs, with only edge-case behavior (empty history, very long ranges) left unaddressed.

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% and both date parameters are already documented with format, inclusivity and defaults, so the schema carries the semantics. The description only restates the default window at a high level and adds nothing about date-range limits or time-zone handling beyond what the schema says.

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 ('Read what the user actually logged in MALAI across a date range') and explicitly contrasts the scope with planning ('their real history, not a plan'), which separates it from the calculate_* and target-oriented siblings. An agent can tell this is a historical retrieval tool 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 Guidelines4/5

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

Gives three concrete user-phrase triggers ('what did I eat yesterday', 'what did I have this week', 'how has my protein been lately') plus the default window, so the when-to-use case is clear. It stops short of naming a specific alternative such as malai_get_today_nutrition, leaving the today-vs-range boundary to inference.

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