Skip to main content
Glama

Nutricity calculators

calculate_protein_requirement

Read-onlyIdempotent

Estimate daily protein needs from body weight. Returns the LARN 2014 reference intake (0.90 g/kg adults, 1.10 g/kg for age ≥60) and a goal-based target band in g/day and g/kg (larn, active 1.2-1.6, or sport 1.6-2.0). Informational, not a prescription.

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": {
      "weight": "<weight>",
      "unit": "<unit>",
      "goal": "<goal>"
    },
    "name": "calculate_protein_requirement"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge in years; >=60 raises the LARN reference to 1.10 g/kg
goalYeslarn (reference intake), active (1.2-1.6 g/kg) or sport (1.6-2.0 g/kg)
unitYesmetric (kg) or imperial (lb)
weightYesBody weight (kg or lb)

Output Schema

NameRequiredDescriptionDefault
weightKgYes
larnGramsYesLARN reference intake g/day
larnPriPerKgYesLARN reference intake per kg
targetLowGramsYes
targetLowPerKgYes
targetHighGramsYes
targetHighPerKgYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent calculation, so the safety profile is covered. The description adds real value on behavior: it discloses the exact constants returned (0.90 g/kg, 1.10 g/kg for age ≥60), the band values per goal, the output units, and the non-prescriptive framing. It does not cover error behavior for out-of-range inputs, but the schema handles the numeric minimums.

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?

Two tight sentences, front-loaded with what the tool computes and followed by the specific values it returns plus a scope disclaimer. There is no filler or restatement of the tool name.

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?

A simple four-parameter calculator with an output schema, full schema coverage and annotations — the description covers purpose, constants, units and caveats, which is more than sufficient. Minor redundancy in restating return contents that the output schema already defines keeps it just below a 5.

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%, and the description largely restates what the schema already documents — the goal enum meanings (larn, active 1.2-1.6, sport 1.6-2.0) and the age ≥60 threshold that raises the reference intake. Baseline 3 is appropriate; it adds no syntax or edge-case detail beyond the structured fields.

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 opens with a specific verb and resource ("Estimate daily protein needs from body weight") and immediately names the underlying model (LARN 2014) and outputs. That is enough to distinguish it from siblings like calculate_water_requirement or calculate_macros without opening any schema.

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 supplies a usage caveat ("Informational, not a prescription") and implies the goal enum selects the target band, but gives no explicit when-to-use/when-not guidance or named alternatives for overlapping needs (e.g. macros or calorie calculators). The context is inferable but not stated.

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