Skip to main content
Glama

Nutricity calculators

calculate_bmr_harris_benedict

Read-onlyIdempotent

Calculate the basal metabolic rate (kcal/day) via the Harris-Benedict equation, with stress/activity factors for adults, kids, sick and healthy patients. Exactly one stress factor must be provided, matching the patient type and sickness state.

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": {
      "type": "<type>",
      "gender": "<gender>",
      "weight": "<weight>",
      "height": "<height>",
      "age": "<age>",
      "isSick": "<isSick>"
    },
    "name": "calculate_bmr_harris_benedict"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years
typeYesPatient type: A (adult) or K (kid/child)
genderYesBiological sex: M (male) or F (female)
heightYesHeight in centimeters
isSickYesWhether the patient is sick
weightYesWeight in kilograms
stressKidNoStress factor for a sick kid: KL (low), KM (medium), KH (high). Required when type is K and isSick is true
stressSickNoStress factor for a sick adult: SF (fasting), SL (low), SM (medium), SH (high), SVH (very high). Required when type is A and isSick is true
stressHealthyNoPhysical activity factor for a healthy adult: HL (light), HM (medium), HH (heavy). Required when type is A and isSick is false

Output Schema

NameRequiredDescriptionDefault
lowResultYesTotal kcal/day at the lower bound of the factor interval
baseResultYesBMR in kcal/day without the activity/stress factor applied
highResultYesTotal kcal/day at the upper bound of the factor interval

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a non-mutating, idempotent read, so the description needn't restate safety. What it does add is the cross-parameter validation contract ('exactly one stress factor'), which the schema cannot express since the stress fields are independent optional properties with no oneOf constraint. That is genuine behavioral context an agent needs before calling.

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 sentences, both load-bearing: the first defines the computation and the output unit, the second states the hard calling constraint. The constraint is placed last where it reads as a precondition, and there is no restating of the title or schema.

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?

For a 9-parameter tool with four conditionally-required fields, the description covers the main conditional logic and an output schema exists to explain return values. However, it does not resolve the edge case it creates: the schema offers no activity factor for a healthy child (stressHealthy is adult-only), so the 'exactly one factor must be provided' rule is unsatisfiable for type=K with isSick=false, and the description is silent on this.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so per-parameter meanings are fully documented and a baseline of 3 is warranted. The description still adds value beyond the schema by imposing a mutual-exclusivity rule across the three stress parameters, something no individual schema description states.

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?

The description names a specific verb and resource (calculate basal metabolic rate) plus the exact equation (Harris-Benedict) and the output unit (kcal/day), which is enough for an agent to identify the operation. It stops short of distinguishing itself from the sibling BMR estimators (calculate_bmr_fao_who, calculate_bmr_mifflin, calculate_resting_metabolic_rate), leaving equation selection to the caller.

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?

The description gives a real selection rule for the stress-factor parameters, stating exactly one must be supplied and must match patient type and sickness state, which is actionable guidance for calling the tool correctly. It offers no guidance on when to prefer Harris-Benedict over alternative BMR calculators in the sibling set, so the cross-tool decision is left implicit.

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