Skip to main content
Glama

Nutricity calculators

calculate_weight_loss_timeline

Read-onlyIdempotent

Project a weight-loss or weight-gain timeline from TDEE inputs plus goal weight. In target-date mode it returns the required daily calorie target and rate. In rate mode it returns the projected date. Uses the 7,700 kcal/kg approximation.

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>",
      "goalWeight": "<goalWeight>",
      "mode": "<mode>"
    },
    "name": "calculate_weight_loss_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years
modeYestarget-date (provide targetDate) or rate (provide rateKgPerWeek)
genderYesBiological sex: M (male) or F (female)
heightYesHeight in cm
weightYesCurrent weight in kg
formulaYesBMR equation
goalWeightYesGoal weight in kg; must differ from the current weight, and be lower than it in rate mode (target-date mode also plans gain)
targetDateNoGoal date in YYYY-MM-DD; required for target-date mode
rateKgPerWeekNoDesired rate in kg/week; required for rate mode
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
safetyYesFloor, BMR and pace flags for dailyTarget (dailyTarget is never altered)
goalWeightYesGoal weight in kg
dailyTargetYesTarget kcal/day
weeksToGoalYesWeeks to reach goal weight
currentWeightYesCurrent weight in kg
projectedDateYesProjected goal date (YYYY-MM-DD)
rateKgPerWeekYesEffective rate in kg/week
weightDeltaKgYesSigned weight change in kg
dailyAdjustmentYesSigned daily kcal adjustment needed
intakeFloorKcalYesIntake floor for the sex, kcal/day (1,200 F / 1,500 M)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds one genuinely useful behavioral fact -- the 7,700 kcal/kg approximation underlying the projection -- which helps the agent interpret results, but it omits the linear/no-plateau assumption, the fact that projections are estimates not guarantees, and any note that rate mode only plans loss.

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?

Three short sentences, front-loaded with the purpose, then mode behavior, then the modeling assumption. No filler and no repetition of the parameter list.

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 an output schema present and fully described inputs, the description only needs to frame the tool's purpose and modeling basis, which it does. The remaining gap is the absence of any caveat about projection accuracy or model assumptions, which matters for a health-estimate tool with 10 parameters.

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%, with units, enums, and conditional requirements (targetDate vs rateKgPerWeek, goalWeight direction) all documented in the schema itself. The description adds no parameter-level meaning beyond restating that TDEE inputs and a goal weight are required, so the baseline 3 applies.

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: 'Project a weight-loss or weight-gain timeline from TDEE inputs plus goal weight,' and describes the two output modes, so an agent knows this is a projection tool rather than a plain TDEE or deficit calculator. It does not name or contrast any sibling (e.g., calculate_calorie_deficit or calculate_tdee), so the differentiation is by implication.

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 explains what each mode returns and, indirectly, that target-date mode needs a target date while rate mode needs a rate -- but that guidance is already in the schema enums and property descriptions. There is no explicit guidance on when to prefer this tool over calculate_calorie_deficit or calculate_tdee, nor any stated exclusions or prerequisites.

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