Skip to main content
Glama

Nutricity calculators

calculate_calorie_deficit

Read-onlyIdempotent

Calculate a calorie deficit (weight loss), surplus (weight gain) or maintenance target from the same inputs as TDEE (gender, age, weight, height, BMR formula, activity factor) plus a goal. Returns TDEE and target calories at three weight-change rate tiers (mild ~0.25%, moderate ~0.5%, aggressive ~0.75% of bodyweight per week) rather than a single number, plus the signed kg/week each implies. All three tiers equal TDEE when goal is maintain.

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_calorie_deficit"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years
goalYesDirection of the adjustment applied at each rate tier
genderYesBiological sex: M (male) or F (female)
heightYesHeight in centimeters
weightYesWeight in kilograms
formulaYesBMR equation to use as the base (same as /tdee)
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
mildRateKgYesSigned bodyweight change, kg/week, mild tier
mildSafetyYesFlags for the mild tier
mildTargetYesTarget kcal/day at the mild rate tier (~0.25% bodyweight/week)
moderateRateKgYesSigned bodyweight change, kg/week, moderate tier
moderateSafetyYesFlags for the moderate tier
moderateTargetYesTarget kcal/day at the moderate rate tier (~0.5% bodyweight/week)
intakeFloorKcalYesIntake floor for the sex, kcal/day (1,200 F / 1,500 M)
aggressiveRateKgYesSigned bodyweight change, kg/week, aggressive tier
aggressiveSafetyYesFlags for the aggressive tier
aggressiveTargetYesTarget kcal/day at the aggressive rate tier (~0.75% bodyweight/week)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly and idempotent, so the safety profile is covered; the description instead adds genuinely new behavioral detail: three rate tiers expressed as ~0.25/0.5/0.75% bodyweight per week, signed kg/week output, and the edge case that all tiers collapse to TDEE when goal is 'maintain'. That is real disclosure beyond annotations, though it says nothing about input validation or what happens with extreme values.

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?

Purpose is front-loaded in the first clause, then the distinctive return shape (three tiers rather than one number) is given with concrete percentages, and the maintain edge case closes it. Three tight sentences, nothing ornamental or repeated.

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?

The definition covers purpose, output structure and the maintain special case, and an output schema exists so return values need no full narrative. However, for a 7-parameter, all-required calculation tool it leaves key gaps: no statement about unit constraints, range enforcement, or how the tiers should be presented to a user, and no routing guidance against the closely related TDEE and weight-loss-timeline siblings.

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 every parameter including enums and ranges; the baseline is therefore 3. The description adds only that the inputs are the TDEE inputs plus a 'goal' and that goal sets the 'direction of the adjustment', which is largely a restatement of the schema's own goal description rather than new semantic detail.

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 a calorie deficit/surplus/maintenance target') and scopes the inputs as the same as TDEE plus a goal, which separates it from pure BMR/TDEE siblings. It does not, however, name an explicit sibling (e.g. calculate_tdee or calculate_weight_loss_timeline) it should be preferred over, leaving that inference to the reader.

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 phrase 'rather than a single number' and the goal enum imply when this tool is appropriate (when the user wants per-tier targets, not one figure), and 'same as /tdee' implies shared inputs with the sibling. There is no explicit when-not guidance, no statement that calculate_tdee should be used when only maintenance energy is needed, and no guidance on choosing among the rate tiers beyond the percentages.

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