Skip to main content
Glama
Wellness Project MCP

Wellness Project MCP

get_nutrient_summary

Read-onlyIdempotent

Summarize one day or a short range of logged micronutrient and macro intake, including targets and coverage, to check nutrients like vitamin D, sodium, or iron.

Instructions

Summarize logged micronutrient (and macro) intake for one day or a short range, with each nutrient's target and coverage. Use for "how's my vitamin D / sodium / iron this week", or a general "how are my micronutrients looking" (default: every tracked nutrient except amino acids, for today).

INFER -- do not ask:

  • date: default to today (resolved in the user's own timezone)

  • days: default to 1 (just date); for a range, set days to the number of days ending on date (e.g. "this week" -> days=7)

  • nutrients: default to every nutrient with logged data this period, excluding amino acids (those are rarely tracked and would crowd out the rest). Ask for specific nutrients by name (aliases like "b12", "carbs", "fibre" resolve) only to see amino acids or a nutrient with no data yet.

Returns up to 60 nutrients. days=1 reports that day's totals; days>1 reports the range average per nutrient plus how many days were complete.

FORMAT: default 'compact' packs each panel (known/food/supplement/target_value/target_upper_limit/target_percent) as one "id:value;id:value" string, ids ascending, values to at most 3 significant digits, units are the dictionary's below -- never repeat a nutrient's name or unit back to the user from these strings, resolve the id first. coverage/items_total/items_with_value/estimated_items/target_source/target_kind stay small id-keyed records. A nutrient outside the dictionary (amino acids, Cronometer extras) has no id, so its value is dropped and its name listed once under omitted; call again with format:'verbose' to see it. 'verbose' returns one full object per nutrient instead, as before.

NUTRIENT ID DICTIONARY (id=name, unit per the id; also used by get_nutrient_history/get_nutrient_contributors's id field): undefined

DATA COMPLETENESS: totals are sums over the logged items that carry a value for that nutrient; coverage tells how many did. Say "based on foods with X data" when coverage is partial; never call a low intake a deficiency; intake is not a lab result; supplement vs food split is reported separately. A daily supplement counts on every day it's active by default -- the user isn't expected to check it off -- unless a day was explicitly marked not taken, so its share of a total can include days with no check-in.

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_nutrient_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoEnd date (or the only date if days=1). Format: YYYY-MM-DD. Optional -- omit for today.
daysNoHow many days, ending on date. Optional -- default 1.
formatNocompact (default) packs values by nutrient id, see FORMAT above. verbose spells out each nutrient's name and unit.
nutrientsNoNutrient names or aliases to restrict to (e.g. ["vitamin_d","calcium"]). Optional -- default is every nutrient with data except amino acids.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds real behavior: a 60-nutrient cap, days=1 totals vs days>1 range-average plus complete-day count, out-of-dictionary nutrients being dropped into `omitted`, and the non-obvious rule that an active daily supplement counts on every day it isn't explicitly marked not-taken. That last point materially changes how an agent should interpret a total. The FORMAT section points at a nutrient id dictionary that renders as "undefined", so the contract it describes isn't fully verifiable from the text.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is front-loaded and the INFER / FORMAT / DATA COMPLETENESS headers make it scannable, so structure is good. However the FORMAT paragraph spends many lines on value serialization trivia (id ordering, significant digits, units) that is largely output-shape detail, and it repeats what the `format` enum already says.

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

Completeness3/5

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

The tool is moderately complex and the description covers defaults, completeness caveats, and return shape well, and an output schema exists so raw return values needn't be spelled out. But the NUTRIENT ID DICTIONARY is literally "undefined" while the text instructs the agent to "resolve the id first" — the single most load-bearing reference in the compact format is missing. An agent following the instructions cannot actually resolve ids without another call.

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 genuine meaning: default resolution in the user's own timezone, the mapping of "this week" to days=7 ending on `date`, and the fact that aliases like "b12"/"fibre" resolve. The format enum's downstream consequences (id-keyed strings vs full objects, dropped values under compact) go beyond the schema's one-line enum descriptions.

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 with explicit scope: "Summarize logged micronutrient (and macro) intake for one day or a short range, with each nutrient's target and coverage." An agent knows immediately what comes back (per-nutrient totals plus target and coverage) and how it differs from a history/contributor view. The sibling names appear only to explain the shared `id` field, but the tool's own scope is unambiguous.

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?

Gives concrete triggering phrasings ("how's my vitamin D / sodium / iron this week", "how are my micronutrients looking") and explicit inference rules for each parameter rather than asking the user. It also states the one condition that justifies passing `nutrients` (amino acids or a nutrient with no data yet) and when to switch to format:'verbose', so the choice points are covered.

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