Skip to main content
Glama

Agent Data Tools: Utilities

BMI calculator: body mass index and WHO category

calc_bmi
Read-only

Body mass index from weight and height in metric (kg, cm) or imperial (lb, in) units, its WHO adult category (underweight, normal weight, overweight, obesity class I-III) and the weight range that counts as normal for that height. For adults; a screening number, not a diagnosis. Use for health, fitness and nutrition apps. Example: weight=70, height=175. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
unitsNometric (default) or imperial
heightYesHeight in cm (or inches with units=imperial)
weightYesWeight in kg (or lb with units=imperial)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint/idempotentHint annotations, it discloses the billing model ($0.01/call via x402 USDC or card key, first 10 free, failed calls free) and that repeats are not free, which explains why idempotentHint is false for an otherwise pure computation. It also confirms 'reads or computes only and changes nothing' and names the returned values.

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 computation and its outputs are front-loaded in the first sentence, with scope, caveat, example and pricing following. It is dense but every clause carries information; the pricing details are slightly crammed into one long trailing sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still enumerates what comes back (BMI value, WHO category, normal-weight range), which is exactly what an agent needs. Unit handling, adult-only scope, non-diagnostic caveat and cost are all covered for a 3-parameter 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 description coverage is 100%, so units, height and weight semantics are already documented in the schema. The description reinforces the metric/imperial duality and adds a concrete example (weight=70, height=175), but adds no format or validation detail beyond the schema.

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?

It states specific outputs: BMI from weight and height, the WHO adult category with its enumerated bands, and the normal weight range for that height, in either metric or imperial units. That is far more than a restatement of the name and clearly separates it from sibling calculators such as calc_loan or calc_tip.

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

Usage Guidelines4/5

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

It gives clear context: 'For adults', 'a screening number, not a diagnosis', and 'Use for health, fitness and nutrition apps'. It stops short of naming an alternative tool or stating exclusion conditions, but the intended scope is unambiguous.

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