Skip to main content
Glama

Nutricity calculators

calculate_pregnancy_weight_gain

Read-onlyIdempotent

Recommended gestational weight gain by pre-pregnancy BMI per IOM 2009: total range and 2nd/3rd-trimester weekly rate (singletons), provisional totals for twins; optionally compares current gain at a given week with an indicative expected range. Informational, not medical advice.

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": {
      "prePregnancyWeight": "<prePregnancyWeight>",
      "height": "<height>",
      "pregnancy": "<pregnancy>"
    },
    "name": "calculate_pregnancy_weight_gain"
  }
}

Input Schema

NameRequiredDescriptionDefault
weekNoCurrent week of pregnancy (give with currentWeight)
heightYesHeight in cm
pregnancyYessingleton or twins
currentWeightNoCurrent weight in kg (give with week)
prePregnancyWeightYesPre-pregnancy weight in kg

Output Schema

NameRequiredDescriptionDefault
weekYes
statusYes
bmiCategoryYes
gainSoFarKgYes
totalGainLowKgYesnull for underweight twins
prePregnancyBmiYes
totalGainHighKgYes
weeklyRateLowKgYes
weeklyRateHighKgYes
weeklyRateMeanKgYes2nd/3rd-trimester kg/week; null for twins
expectedGainLowKgYes
expectedGainHighKgYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint), so the description's job is added context, which it delivers: the governing standard (IOM 2009), the singleton-only basis of the weekly rate, that twin totals are provisional, and that the comparison range is indicative rather than a threshold. It stops short of noting rounding, units handling, or what happens if week/currentWeight are only partially supplied, which the schema's cross-field hints only partly address.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence, front-loaded with the primary output and its standard, followed by the optional mode and the disclaimer in descending priority. The semicolon-chained clauses are information-dense but every element earns its place; a short break into two sentences would read slightly better.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation. Given five params, one enum, and a read-only compute tool, the description supplies everything an agent needs to decide to call it: population scope (singletons vs twins), source standard, the optional comparison trigger, and a scope disclaimer.

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 a 3 is the floor. The description still adds real meaning by tying the pregnancy enum to which output variant is produced (singleton weekly rate vs provisional twin totals) and by framing week/currentWeight as the optional pair that triggers comparison mode, which the schema alone presents only as field-level hints.

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 names a specific computed quantity (recommended gestational weight gain), the stratifier (pre-pregnancy BMI), the standard (IOM 2009), and the outputs (total range plus 2nd/3rd-trimester weekly rate). This is unmistakably distinct from the BMI/ideal-weight/BMR siblings, none of which are pregnancy-specific.

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 clarifies the conditional mode — the current-gain comparison only happens when week and currentWeight are supplied — which is useful routing information. However, it never states when to prefer this over calculate_bmi or calculate_weight_loss_timeline, and 'Informational, not medical advice' is a disclaimer rather than usage guidance.

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