Skip to main content
Glama

Human Body Calculator MCP

Daily Macronutrient Split Calculator

calculate_macronutrient
Read-onlyIdempotent

Calculate personalized daily protein, fat, and carbohydrate targets in grams/day and kcal based on ISSN and Dietary Guidelines AMDR ranges. Informational estimate only — not medical advice, diagnosis, or treatment. Consult a qualified healthcare professional.

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": {
      "age": "<age>",
      "gender": "<gender>",
      "weight": "<weight>",
      "activityLevel": "<activityLevel>"
    },
    "name": "calculate_macronutrient"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years.
feetNoFeet component when heightUnit="ft".
goalNoCalorie/weight objective ("lose", "maintain", or "gain").
genderYesBiological sex / gender category used by formula ("male", "female", or "other").
heightNoBody height in heightUnit (50-300 cm equivalent). Omit when heightUnit="ft" and supply feet/inches instead.
inchesNoInches component when heightUnit="ft" (0-11.99).
weightYesBody weight in weightUnit (1-500 kg equivalent).
heightUnitNoHeight unit: "cm" (default), "m", or "ft".
weightUnitNoWeight unit: "kg" (default) or "lbs".
activityLevelYesDaily physical activity tier ("sedentary", "light", "moderate", "active", or "very_active").

Output Schema

NameRequiredDescriptionDefault
dataYes
typeYes
disclaimerYesNon-diagnostic medical or wellness disclaimer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds a meaningful scope caveat (informational estimate, not medical advice), but says nothing about formula assumptions, rounding, defaults for heightUnit/weightUnit, or how the goal parameter shifts the result.

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?

Two sentences, front-loaded with the concrete capability and units, followed by a short disclaimer. The disclaimer is boilerplate but defensible for a health-calculation tool; nothing else is wasted.

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?

An output schema exists and the input schema is fully documented, so the core contract is covered. However, for a 10-parameter calculation tool the description omits the underlying method (e.g., which BMR equation and activity multipliers feed the macro split), which an agent would need to judge whether the estimate fits a user's request.

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% with 10 well-annotated parameters including five enums, so the schema carries the full burden. The description adds no parameter-level meaning beyond what is already structured — notably it does not explain the feet/inches versus height interaction or how activityLevel maps to multipliers.

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 — calculate daily protein, fat, and carbohydrate targets — and specifies both output units (grams/day and kcal) and the standards used (ISSN, AMDR). It does not distinguish itself from near-neighbors such as calculate_calorie_needs or calculate_fiber_intake, so an agent must infer the boundary from names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description never says when to pick this over calculate_calorie_needs, calculate_bmr, or calculate_fiber_intake, nor does it state prerequisites or exclusions. The only usage-adjacent text is the medical disclaimer, which constrains interpretation rather than selection.

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