Skip to main content
Glama

Human Body Calculator MCP

STOP-BANG Obstructive Sleep Apnea Screener

calculate_sleep_apnea
Read-onlyIdempotent

Score the 8-item STOP-BANG clinical screening questionnaire for obstructive sleep apnea risk (0-2 Low, 3-4 Intermediate, 5-8 High risk). 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": {
      "age": "<age>",
      "gender": "<gender>"
    },
    "name": "calculate_sleep_apnea"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in years.
bmiNo
neckNoNeck circumference in neckUnit (20-80 cm equivalent). Omit if neckUnit="ft" and provide neckFt/neckIn.
genderYesBiological sex / gender category used by formula ("male", "female", or "other").
neckFtNo
neckInNo
snoringNo
neckUnitNo
tirednessNo
blood_pressureNo
observed_apneaNo

Output Schema

NameRequiredDescriptionDefault
dataYes
typeYes
disclaimerYesNon-diagnostic medical or wellness disclaimer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds real value by disclosing the output interpretation (0-2 Low, 3-4 Intermediate, 5-8 High) and the clinical disclaimer. The gap is that it never says how the 6 optional STOP-BANG items are treated when omitted, which materially affects the score.

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?

Three compact sentences, front-loaded with the verb and instrument, followed by scoring bands and the disclaimer. No filler, though the disclaimer occupies a third of the text.

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?

An output schema exists, so return-value explanation is unnecessary, and the risk bands are given. But for an 11-parameter screener with 9 optional inputs and low schema coverage, the description should explain how omitted items are scored and how the unit fields interact — neither is addressed.

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 description coverage is only 27% across 11 parameters, and the description adds no parameter-level meaning — it never names age, gender, BMI, neck circumference, or the yes/no items, nor does it clarify the neckUnit/neckFt/neckIn unit selection. Naming '8-item STOP-BANG' only loosely implies the item set.

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: 'Score the 8-item STOP-BANG clinical screening questionnaire for obstructive sleep apnea risk.' The named instrument distinguishes it from every sibling calculator, and the risk-band framing confirms what it computes.

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 alternative tools named. The 'informational estimate only — not medical advice' line is a disclaimer, not usage guidance; nothing tells an agent when this screener is the right choice versus another risk calculator.

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