Skip to main content
Glama

Human Body Calculator MCP

Body Mass Index (BMI) Calculator

calculate_bmi
Read-onlyIdempotent

Compute Body Mass Index (weight_kg / height_m^2) and WHO weight classification (Underweight, Normal, Overweight, Obese I-III). Supports cm/m/ft height and kg/lbs weight. Informational estimate only — not medical advice, diagnosis, or treatment. Consult a qualified healthcare professional.

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": {
      "age": "<age>",
      "gender": "<gender>",
      "weight": "<weight>"
    },
    "name": "calculate_bmi"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years.
feetNoFeet component when heightUnit="ft".
genderYesBiological sex / gender category used by formula ("male", "female", or "other").
heightNoBody height in heightUnit (50-300 cm equivalent). Omit when heightUnit="ft" and supply feet/inches instead.
inchesNoInches component when heightUnit="ft" (0-11.99).
weightYesBody weight in weightUnit (1-500 kg equivalent).
heightUnitNoHeight unit: "cm" (default), "m", or "ft".
weightUnitNoWeight unit: "kg" (default) or "lbs".

Output Schema

NameRequiredDescriptionDefault
dataYes
typeYes
disclaimerYesNon-diagnostic medical or wellness disclaimer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior. The description adds the actual formula, WHO classification categories, supported unit systems, and a medical disclaimer. It does not discuss precision, rounding, or output shape, but the output schema covers return values and the added context is meaningful.

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?

The description is front-loaded with the formula and classification, then adds unit support and a disclaimer. It is compact and contains little waste. The medical disclaimer is appropriate for the domain and does not obscure the core purpose.

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?

An output schema exists, so return values need not be explained. However, the tool requires age and gender even though the stated BMI formula does not use them, and the description does not explain their role or whether this is adult-only versus pediatric BMI. Given the nearby calculate_child_bmi sibling, this is a meaningful completeness gap.

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 parameters such as age, gender, heightUnit, and weightUnit are already well documented. The description mentions cm/m/ft and kg/lbs support, but that information is already in the schema. It adds no extra parameter semantics beyond what structured fields provide.

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 states a specific computation: BMI via weight_kg / height_m^2, plus WHO weight classification. It is clear what the tool does, but it does not distinguish itself from adjacent siblings such as calculate_child_bmi or calculate_healthy_weight_range. The formula and classification labels make the core purpose unambiguous.

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 frames the tool as an informational estimate and not medical advice, which gives useful context. However, it does not say when to use this versus calculate_child_bmi, calculate_bmi for children, or calculate_healthy_weight_range. Usage is implied rather than explicitly routed.

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