Skip to main content
Glama

Human Body Calculator MCP

Lean Body Mass (LBM) Calculator

calculate_lean_body_mass
Read-onlyIdempotent

Estimate lean body mass and fat mass in kg using the sex-specific Boer (1984) formula. 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>",
      "weight": "<weight>"
    },
    "name": "calculate_lean_body_mass"
  }
}

Input Schema

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

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world. The description adds the formula used and the disclaimer/liability framing, which is useful. It doesn't discuss unit defaults or the 'other' gender handling behavior, but annotations cover the safety profile.

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?

Two short sentences, front-loaded with the purpose and formula. The disclaimer sentence is boilerplate but arguably required. No wasted padding.

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?

Output schema exists so return values needn't be explained, and schema is fully documented. However, the mutually exclusive height vs feet/inches usage and the 'other' gender formula treatment are unaddressed; for a 7-param tool with enum branching, more guidance would help.

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 baseline is 3; the description adds the formula provenance explaining why gender is sex-specific. It doesn't clarify unit precedence (feet/inches vs height) or how 'other' is handled by the formula, which would be valuable given 7 params.

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?

Specific verb (Estimate) plus resources (lean body mass and fat mass in kg) and names the exact formula variant (sex-specific Boer 1984). Distinguishes from siblings like calculate_body_fat or calculate_bmi by naming the specific outputs.

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 guidance on when to use this versus calculate_body_fat, calculate_bmi, or calculate_bmr. No prerequisites stated (e.g., which inputs required, height vs feet/inches choice). Only a medical disclaimer, which is safety guidance rather than tool-selection 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