Skip to main content
Glama

get_nutrient_summary

Read-onlyIdempotent

Summarize logged micronutrient (and macro) intake for one day or a short range, with each nutrient's target and coverage. use: "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 today

  • days: 1 = just date; a range = the number of days ending on date ("this week" -> days=7)

  • nutrients: default = every nutrient with logged data this period except amino acids (rarely tracked; they would crowd out the rest). Name specific nutrients (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: that day's totals. days>1: 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 per the dictionary below. Never repeat a nutrient's name or unit to the user straight 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: 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.

NUTRIENT ID DICTIONARY (id=name, unit per the id; also used by the id field of get_nutrient_history/get_nutrient_contributors): 1=fiber_g 2=sugar_g 3=saturated_fat_g 4=monounsaturated_fat_g 5=polyunsaturated_fat_g 6=trans_fat_g 7=cholesterol_mg 8=sodium_mg 9=potassium_mg 10=calcium_mg 11=iron_mg 12=magnesium_mg 13=phosphorus_mg 14=zinc_mg 15=copper_mg 16=manganese_mg 17=selenium_ug 18=chloride_mg 19=chromium_ug 20=iodine_ug 21=molybdenum_ug 22=vitamin_a_ug 23=vitamin_c_mg 24=vitamin_d_ug 25=vitamin_e_mg 26=vitamin_k_ug 27=thiamin_b1_mg 28=riboflavin_b2_mg 29=niacin_b3_mg 30=pantothenic_acid_b5_mg 31=vitamin_b6_mg 32=biotin_b7_ug 33=folate_b9_ug 34=folic_acid_ug 35=vitamin_b12_ug 36=choline_mg 37=omega3_g 38=omega6_g 39=caffeine_mg 40=water_g 41=starch_g 42=added_sugar_g 43=total_unsaturated_fat_g 44=fluoride_mg

DATA COMPLETENESS: totals sum the logged items that carry a value for the nutrient; coverage says how many did. Partial coverage -> say "based on foods with X data". Never call a low intake a deficiency; intake is not a lab result. Supplement vs food is reported separately. A daily supplement counts on every active day by default (the user is not 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 when days=1. YYYY-MM-DD; omit for today (the user's own timezone).
daysNoDays ending on date; default 1.
formatNocompact (default) packs values by nutrient id, see FORMAT. verbose spells out each nutrient's name and unit.
nutrientsNoNutrient names or aliases to restrict to, e.g. ["vitamin_d","calcium"]. Default: see INFER.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"End date (or the only date if days=1). Format: YYYY-MM-DD. Optional -- omit for today."New value: +"End date, or the only date when days=1. YYYY-MM-DD; omit for today (the user's own timezone)."
    • changedInput schema / properties / days / description
      Previous value: -"How many days, ending on date. Optional -- default 1."New value: +"Days ending on date; default 1."
    • changedInput schema / properties / format / description
      Previous value: -"compact (default) packs values by nutrient id, see FORMAT above. verbose spells out each nutrient's name and unit."New value: +"compact (default) packs values by nutrient id, see FORMAT. verbose spells out each nutrient's name and unit."
    • changedInput schema / properties / nutrients / description
      Previous value: -"Nutrient names or aliases to restrict to (e.g. [\"vitamin_d\",\"calcium\"]). Optional -- default is every nutrient with data except amino acids."New value: +"Nutrient names or aliases to restrict to, e.g. [\"vitamin_d\",\"calcium\"]. Default: see INFER."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/closed-world, yet the description still adds real behavior: amino acids are excluded by default because they crowd out other panels, days>1 returns a range average plus complete-day counts, partial coverage means totals are based only on items carrying that nutrient, and supplements count on every active day unless explicitly marked not taken. The warning that intake is not a lab result and must not be called a deficiency is exactly the kind of guardrail annotations cannot express.

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?

Front-loaded with purpose then labeled blocks (INFER / FORMAT / DATA COMPLETENESS), which is good structure, but the 44-entry nutrient ID dictionary dominates the text and is reference data that largely belongs in the output schema, which already exists. The format section is also restated inside the schema's own format enum description.

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?

Covers all four optional parameters with defaults, the return shape for days=1 versus days>1, the compact-payload encoding and the rule to resolve ids before speaking nutrient names, the omission behavior for unknown nutrients and the verbose fallback. Nothing needed to call it correctly or interpret results is missing.

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 already 100%, but the description adds semantics the schema does not: 'this week' maps to days=7 ending on date, nutrients defaults to every tracked nutrient with logged data minus amino acids, aliases like 'b12'/'carbs'/'fibre' resolve, and specific nutrients are only needed for amino acids or as-yet-unlogged nutrients. It also explains the compact vs verbose payload shapes.

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 verb and resource: summarize logged micronutrient (and macro) intake for one day or a short range, with each nutrient's target and coverage. That is precise enough to picture the output, but it never explicitly routes the agent away from get_nutrient_history or get_nutrient_contributors, which it only mentions as sharing the id dictionary.

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?

The 'use:' triggers ("how's my vitamin D / sodium / iron this week", "how are my micronutrients looking") give concrete when-to-use conditions, and the INFER block states defaults instead of prompting the user. It stops short of naming an alternative tool and the condition that would select it.

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.