Skip to main content
Glama

Nutricity calculators

calculate_bmi

Read-onlyIdempotent

Calculate the body mass index (BMI = weight / height² in m). Optionally include body fat % to flag that BMI may overestimate adiposity in muscular individuals.

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

Input Schema

NameRequiredDescriptionDefault
heightYesHeight in centimeters
weightYesWeight in kilograms

Output Schema

NameRequiredDescriptionDefault
resultYesBMI
bodyFatPercentYes
bodyFatContextAvailableYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety is covered. The description adds real value by publishing the exact formula, making the computation auditable, but it also advertises an optional body fat % input that the schema does not contain, which misrepresents the tool's behavior.

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

Conciseness3/5

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

Two sentences, front-loaded with the core computation, which is efficient. However, the second sentence is spent entirely on a feature the tool does not expose, so it does not earn its place.

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 output schema exists, so return values need no explanation, and the formula is given. Yet the definition leaves two practical gaps: the centimeter-versus-meter unit handling and the nonexistent body fat parameter, either of which could cause an incorrect call or interpretation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, which normally earns a baseline 3, but the description actively muddies parameter meaning: it references an optional body fat percentage that is not a parameter, and it states the formula in meters while the schema requires height in centimeters, with no note about the unit conversion the agent must perform.

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 body mass index) and even supplies the formula, so the operation is unambiguous. It does not differentiate itself from the many BMI/body-composition siblings (e.g., calculate_child_bmi, calculate_body_fat), leaving the agent to infer which BMI variant applies.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no routing to alternatives such as calculate_child_bmi for pediatric cases. The only conditional statement concerns a body fat input rather than invocation conditions, so an agent gets no help choosing this tool over a sibling.

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