Skip to main content
Glama
nutrition-mcp

nutrition-mcp

compute_targets

Read-onlyIdempotent

Estimate daily calorie and protein targets for an adult using age, sex, height, weight, activity level, and goal, then apply a calorie floor. Use when asked how much someone should eat in a day.

Instructions

Estimated daily calorie and protein targets for an adult, from the Mifflin-St Jeor equation with an activity multiplier and a goal adjustment. Use it when asked how much someone should eat in a day. The result shows the formula and the inputs, applies a calorie floor, and is an estimate, not medical advice. Nothing is stored.

Input Schema

NameRequiredDescriptionDefault
ageYes
sexYes
goalYes
activityYes
height_cmYes
weight_kgYes

Output Schema

NameRequiredDescriptionDefault
kcalYes
notesYes
inputsYes
formulaYes
bmr_kcalYes
protein_gYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, closed-world), and the description adds real value beyond them: the output includes the formula and inputs, a calorie floor is applied, results are estimates not medical advice, and nothing is stored. It doesn't mention validation failures (e.g., age outside 18-100) or rounding behavior, keeping it below 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?

Four tight sentences: what it computes, when to use it, what the result contains, and a disclaimer. The purpose is front-loaded and no sentence is 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?

An output schema exists, so the description needn't detail the return shape, yet it still flags the formula echo, calorie floor, and disclaimer — useful for an agent deciding whether to trust the numbers. The only gap is silence on input validation boundaries defined in the schema.

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 0%, so the description carries the burden; it explains that 'activity' is a multiplier and 'goal' is a goal adjustment, adding meaning beyond the enum lists. The remaining four parameters (sex, age, height_cm, weight_kg) are left to titles and min/max bounds, so compensation is partial.

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: 'Estimated daily calorie and protein targets for an adult,' plus the exact method (Mifflin-St Jeor with activity multiplier and goal adjustment). This cleanly separates it from the sibling retrieval tools (search_food, get_nutrition, find_foods) and the adjacent compute_meal.

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?

'Use it when asked how much someone should eat in a day' gives a clear triggering context. It stops short of naming alternatives (e.g., use compute_meal for a per-meal breakdown), so differentiation 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.