Skip to main content
Glama

Nutricity calculators

calculate_waist_ratios

Read-onlyIdempotent

Calculate the waist-to-height ratio (WHtR = waist / height) and, when hip is provided, the waist-to-hip ratio (WHR = waist / hip). Waist and height must be in the same unit.

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": {
      "waist": "<waist>",
      "height": "<height>"
    },
    "name": "calculate_waist_ratios"
  }
}

Input Schema

NameRequiredDescriptionDefault
hipNoHip circumference in cm (optional, enables waist-to-hip ratio)
waistYesWaist circumference in cm
heightYesHeight in cm

Output Schema

NameRequiredDescriptionDefault
whrYesWaist-to-hip ratio (null if no hip)
whtrYesWaist-to-height ratio

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?

The readOnlyHint and idempotentHint annotations already establish this as a safe, repeatable computation, so the bar is low. The description adds one genuinely useful behavioral constraint beyond structured fields — waist and height must share a unit — but says nothing about precision, rounding, or error behavior for out-of-range values.

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?

Two sentences, both front-loaded with the formulas first and the constraint second. No filler, no restatement of the tool name, and every clause contributes information an agent needs.

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?

With an output schema present, the description needn't describe return values, and the three inputs are fully covered along with the conditional second metric. The only minor gap is the absence of any note on what a returned ratio means or its expected range, which would help an agent act on the result.

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 per-parameter meanings are already documented in the schema, giving a baseline of 3. The description adds a cross-parameter constraint not expressed anywhere in the schema (unit consistency between waist and height) and clarifies that supplying hip is what activates the second output, which is real added meaning.

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?

The description names the specific computations with explicit formulas: WHtR = waist / height and, conditionally, WHR = waist / hip. An agent can immediately tell this apart from the many other clinical calculators in the sibling list (BMI, BSA, body fat) because the exact ratios and inputs are stated.

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?

It does state the condition that unlocks the second metric: hip is optional and enables the waist-to-hip ratio. However, there is no guidance on when to prefer this over related sibling calculators, no prerequisites, and no note on interpreting or applying the results, so usage is only implied.

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