Skip to main content
Glama

Nutricity calculators

calculate_body_surface_area

Read-onlyIdempotent

Calculate body surface area in m² via the Du Bois and Mosteller formulas from height and weight.

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_body_surface_area"
  }
}

Input Schema

NameRequiredDescriptionDefault
heightYesHeight in cm
weightYesWeight in kg

Output Schema

NameRequiredDescriptionDefault
duBoisYesDu Bois BSA (m²)
mostellerYesMosteller BSA (m²)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the pure-computation, side-effect-free profile is known. The description adds the useful behavioral detail of which formulas are applied, but does not say whether both estimates are returned, how they differ, or what precision is used. Reasonable but not rich beyond the structured fields.

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?

A single sentence that front-loads the output (body surface area in m²) and then names the formulas and inputs. No filler, no redundant restatement of the title.

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?

An output schema exists and annotations cover the safety profile, so the description need not explain return values or side effects. What remains slightly thin is whether both formula results are produced and how they should be interpreted clinically, but nothing critical for correct invocation is missing.

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 description coverage is 100% and already specifies height in cm and weight in kg with positive-only constraints, so the schema does the heavy lifting. The description restates the inputs as 'height and weight' without adding format or range detail, which matches the baseline expectation.

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 (calculate), resource (body surface area), output unit (m²), the two formulas used (Du Bois, Mosteller), and the inputs (height, weight). This clearly separates it from siblings like calculate_bmi or calculate_ideal_weight_lorenz, which operate on the same anthropometric inputs.

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?

Usage is only implied by the domain (a clinical anthropometric calculation from height and weight). There is no explicit statement of when to prefer BSA over siblings such as calculate_bmi, nor any exclusion or prerequisite. Adequate minimum, but an agent must infer the selection condition.

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