Skip to main content
Glama

The Meal Plan Vault

Get a day's nutrition

get_day_nutrition
Read-only

Get one day's planned meals with per-serving calories, protein, carbs, fat, fiber, sugar and sodium, plus the day's total. Each meal's numbers are per serving and servings is how many were eaten, which is what a calorie tracker (Lose It!, MyFitnessPal, Cronometer) or Apple Health logs. A meal eaten from a meal prep is one container, so its servings is the requested servings times the servings that container holds. A meal's sides each carry their own numbers and servings; the day's total includes them. tracker_import_url is a recipe page MyFitnessPal's and Cronometer's "import from a website" can read. Dishes in meals_without_nutrition have no nutrition calculated yet (custom meals and sides that are just a name never do). When the user has set daily goals, goals lists them and goal_progress compares the day's total with each: percent of the goal and status under, near (within 10%) or over.

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": {
      "date": "<date>"
    },
    "name": "get_day_nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesISO date YYYY-MM-DD
servingsNoServings the person ate of each meal
meal_typesNoOnly these meals. Omit for the whole day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description does add real behavioral value—it explains per-serving semantics, how meal-prep containers inflate `servings`, how `sides` contribute to totals, and what `meals_without_nutrition` and `goal_progress` mean—but much of this is return-shape detail against a read-only annotation baseline. Strong on substance, only modest on traits the annotations do not already imply.

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?

The core purpose is front-loaded, and the dense sentences each carry information about nutrients, sides, imports, or goals. It is longer than typical for a getter and the goal_progress sentence is somewhat technical, but there is little filler.

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?

With no output schema, the description carries the burden of explaining the response and does so thoroughly: per-serving values, day totals, sides, meals_without_nutrition, tracker_import_url, and goals with percent/status. The only notable gap is that the `meal_types` filter is never mentioned in the description.

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

Parameters5/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 earns more by giving `servings` real meaning: it is how many were eaten, and for a meal-prep meal it equals requested servings multiplied by the container's servings. That resolves ambiguity the schema alone does not. The `date` and `meal_types` filters are left to the schema, which is acceptable given full coverage.

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?

The description opens with a specific verb and resource: 'Get one day's planned meals' with named nutrient fields and a day total. An agent can tell this is a single-day nutrition read, but it never names sibling tools like get_meal_plan_nutrition or get_meal_plan_week, so the boundary between this and the multi-day/plan-level variants must be inferred.

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?

Usage is implied rather than stated: the mention of a calorie tracker (Lose It!, MyFitnessPal, Cronometer) or Apple Health logging suggests the retrieval purpose, but there is no explicit 'use this when' or 'use X instead'. No exclusions or alternatives are offered.

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