Skip to main content
Glama

Nutricity calculators

calculate_body_fat

Read-onlyIdempotent

Estimate body fat % via the US Navy circumference method (neck, waist, height; + hip for women) or the Deurenberg BMI-based equation (weight, height, age, sex). Supports metric (cm/kg) and imperial (inches/lb). Returns body fat %, and fat/lean mass when weight is provided.

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": {
      "method": "<method>",
      "gender": "<gender>",
      "unit": "<unit>",
      "height": "<height>"
    },
    "name": "calculate_body_fat"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge in years — Deurenberg
hipNoHip circumference — Navy, women only
neckNoNeck circumference — Navy
unitYesmetric (cm, kg) or imperial (inches, lb)
waistNoWaist circumference — Navy
genderYesBiological sex: M (male) or F (female)
heightYesHeight (cm or inches)
methodYesnavy (circumferences) or deurenberg (BMI-based)
weightNoWeight — required for Deurenberg; enables fat/lean mass for Navy

Output Schema

NameRequiredDescriptionDefault
fatMassKgYesFat mass kg (null if no weight)
leanMassKgYesLean mass kg (null if no weight)
bodyFatPercentYesEstimated body fat %

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 declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds meaningful behavioral context: unit systems supported and the conditional output of fat/lean mass when weight is supplied. It doesn't discuss accuracy differences between methods or input validation limits, leaving modest gaps.

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 tight sentences: computation and methods first, unit support next, return values last. Every clause carries information and nothing is redundant padding.

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, return-value explanation isn't strictly required, and the description nonetheless covers methods, units, gender handling, and conditional outputs. Remaining minor gaps are methodological caveats (accuracy, edge cases), which are not essential to invoking the tool correctly.

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 each parameter's role. The description reinforces the method-to-parameter mapping and the women-only hip condition, but adds little syntax or format detail beyond what the schema states, so the baseline 3 holds.

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?

States a specific verb and resource ('Estimate body fat %') and enumerates the two supported methods (US Navy circumference, Deurenberg BMI-based), which cleanly separates it from siblings like calculate_bmi and calculate_waist_ratios. An agent can identify what this tool computes without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description effectively maps inputs to methods — neck/waist/height (plus hip for women) implies Navy, while weight/height/age/sex implies Deurenberg — so an agent can infer which method to pick. It stops short of explicit routing advice such as which method is more accurate or when to prefer one, so it doesn't reach a 5.

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