Skip to main content
Glama

Nutricity calculators

calculate_tdee

Read-onlyIdempotent

Calculate total daily energy expenditure: BMR (Mifflin-St Jeor or Harris-Benedict) × activity factor, plus a goal-adjusted calorie target (lose/maintain/gain).

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": {
      "gender": "<gender>",
      "age": "<age>",
      "weight": "<weight>",
      "height": "<height>",
      "formula": "<formula>",
      "activityFactor": "<activityFactor>",
      "goal": "<goal>"
    },
    "name": "calculate_tdee"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years
goalYesGoal adjustment applied to maintenance calories
genderYesBiological sex: M (male) or F (female)
heightYesHeight in centimeters
weightYesWeight in kilograms
formulaYesBMR equation to use as the base
activityFactorYesActivity multiplier: 1.2 sedentary … 1.9 very active

Output Schema

NameRequiredDescriptionDefault
bmrYesBasal metabolic rate in kcal/day
tdeeYesTotal daily energy expenditure in kcal/day
targetYesGoal-adjusted target calories in kcal/day

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety and repeatability are covered externally. The description adds the algorithmic basis (two named BMR equations, multiplication by activity factor, goal adjustment), which is real behavioral context, though it does not state output units or that all seven inputs are mandatory; return shape is covered by the output schema.

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?

A single front-loaded sentence with the resource first, the formula chain second, and the goal target last. No filler, no restatement of the title, and every clause carries meaning.

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?

With rich annotations, a full output schema, and 100% parameter coverage, the description only needs to establish purpose and computation, which it does. Minor gaps remain around output units (kcal) and any input-validation behavior, but nothing required for correct invocation is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds composition semantics the schema does not: that BMR is multiplied by the activity factor and that the goal adjustment is applied on top to derive a target. It also clarifies that 'formula' selects among two named equations, matching the enum values.

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 total daily energy expenditure') and spells out the computation chain (BMR x activity factor, plus goal-adjusted target). It is clearly distinct from the single-formula siblings only by implication, since it never says 'use calculate_bmr_mifflin for BMR alone' despite those exact siblings existing.

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?

Usage is implied by the phrase 'plus a goal-adjusted calorie target (lose/maintain/gain)', which signals this is the combined TDEE-and-target tool rather than a bare BMR calculator. There is no explicit when-to-use/when-not guidance and no named alternative for users who only want a BMR or a deficit figure.

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