Skip to main content
Glama

Calculate daily protein target

protein_target
Read-onlyIdempotent

Calculate a person's daily protein target in grams from body weight, using ICMR-NIN RDA 2020 (0.83 g/kg) and PROT-AGE guidance for older adults, with ranges for training, weight loss, pregnancy and breastfeeding, the per-meal threshold, and a link to the matching age guide. Nutrition information, not medical advice; kidney disease targets must come from a doctor. Pure calculation, read-only; returns an error if weight_kg is missing or not a number.

Input Schema

NameRequiredDescriptionDefault
ageNoOptional age in years; adds age-specific guidance (the per-meal threshold rises after about 50).
situationNoOptional context echoed back, e.g. 'training', 'weight loss', 'pregnancy'. All situation ranges are always returned.
weight_kgYesBody weight in kilograms, e.g. 65.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / age / description
      Added value: +"Optional age in years; adds age-specific guidance (the per-meal threshold rises after about 50)."
    • addedInput schema / properties / age / maximum
      Added value: +110
    • addedInput schema / properties / age / minimum
      Added value: +18
    • changedInput schema / properties / situation / description
      Previous value: -"e.g. training, dieting, pregnancy"New value: +"Optional context echoed back, e.g. 'training', 'weight loss', 'pregnancy'. All situation ranges are always returned."
    • addedInput schema / properties / weight_kg / description
      Added value: +"Body weight in kilograms, e.g. 65."
    • addedInput schema / properties / weight_kg / maximum
      Added value: +250
    • addedInput schema / properties / weight_kg / minimum
      Added value: +20
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior. The description adds useful behavioral context beyond annotations: it is a pure calculation, returns an error if weight_kg is missing or invalid, and includes a medical-advice disclaimer.

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 description is dense but front-loaded with the core purpose, then adds standards, range context, and caveats. It is appropriately sized for a calculator tool, though the long single sentence is packed with clauses.

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?

With no output schema, the description still explains what the tool returns: grams, ranges for training/weight loss/pregnancy/breastfeeding, per-meal threshold, age guide link, and error behavior. It also covers safety and medical limitations, leaving little an agent needs to infer.

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%, so the schema already documents all three parameters. The description reinforces that the calculation comes from body weight and that age affects guidance, but it adds little semantic detail beyond what the schema provides.

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?

The description states a specific verb and resource: calculate a person's daily protein target in grams from body weight. It also names the standards and outputs, making it clearly distinct from siblings like protein_cost, lookup_food, and compare_foods.

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?

It gives implied usage contexts (training, weight loss, pregnancy, older adults) and a clear medical caveat for kidney disease, but it does not explicitly state when to use this tool versus alternatives such as protein_cost or search_guides.

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.