Skip to main content
Glama

Human Body Calculator MCP

Body Adiposity Index (BAI) Calculator

calculate_bai
Read-onlyIdempotent

Estimate body fat percentage without body weight using Bergman BAI formula: (hip_cm / height_m^1.5) - 18 with ACE gender classification. 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": {
      "gender": "<gender>"
    },
    "name": "calculate_bai"
  }
}

Input Schema

NameRequiredDescriptionDefault
hipNoHip circumference in hipUnit (40-250 cm equivalent). Required in calculate_body_fat when gender is "female" or "other".
feetNoFeet component when heightUnit="ft".
hipFtNo
hipInNo
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).
hipUnitNo
heightUnitNoHeight unit: "cm" (default), "m", or "ft".

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
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds a useful scope caveat that the output is informational and not medical advice, which goes beyond the annotations. It says nothing, however, about unit-resolution behavior, validation failures, or how the formula is applied when only some measurements are supplied.

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 core purpose and formula are front-loaded in the first sentence, with the disclaimer following. Three sentences, no filler, though the formula restatement borders on duplicating what the tool name and title already convey.

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?

This is a 9-parameter tool with three unit enums and mutually exclusive height/hip input paths, so the description carries meaningful burden. An output schema exists, so return values need not be explained, but the description omits guidance on the cm/m/ft input combinations and when hip measurements are required. Adequate but with a real gap for a parameter-heavy tool.

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 coverage is 67%, and the description echoes the formula's hip_cm and height_m inputs, hinting that the formula operates in centimeters and meters. It does not clarify gender's effect beyond naming "ACE gender classification," nor how hipUnit/heightUnit and the ft/inches split are resolved. Baseline 3 is appropriate given the schema already documents most parameters.

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 percentage") and pins down the exact method: the Bergman BAI formula with hip/height terms. The phrase "without body weight" is the key differentiator from the sibling calculate_body_fat, so an agent can route correctly without opening a schema.

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 "without body weight" qualifier implicitly signals when this is preferable to weight-based body-fat calculators, but no explicit when-to-use, when-not-to-use, or named alternative is given. The sibling calculate_body_fat is never mentioned in the description, so the routing decision is left to inference.

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