Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_bmi

Calculate BMI, CDC weight category, healthy weight range, and BMI prime from weight in pounds and height in inches using exact floating-point arithmetic to avoid manual formula errors.

Instructions

Body Mass Index (BMI) & Weight Category Calculator. Calculate BMI, prime BMI, and healthy weight range classifications based on World Health Organization (WHO) and CDC criteria. Discipline: HEALTH. Governing mathematical model / formula: BMI = [Weight (lbs) / Height (in)²] × 703.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of bmi_score (Body Mass Index (BMI)), cdc_category (CDC Classification), healthy_range (Normal Weight Range (18.5 - 24.9)), bmi_prime (BMI Prime Ratio (BMI / 25.0)) using weight_lbs (Body Weight in lbs), height_in (Height in in). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Body Mass Index (BMI) & Weight Category Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "bmi"

    • category (string): "health"

    • name (string): "Body Mass Index (BMI) & Weight Category Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.bmi_score (Body Mass Index (BMI)): Formatted display string (e.g. '25.1 kg/m²')

      • metrics.cdc_category (CDC Classification): Formatted display string (e.g. 'Overweight (25.0 - 29.9)')

      • metrics.healthy_range (Normal Weight Range (18.5 - 24.9)): Formatted display string (e.g. '125.3 - 168.7 lbs')

      • metrics.bmi_prime (BMI Prime Ratio (BMI / 25.0)): Formatted display string (e.g. '1.00')

    • execution_time_ms (number): Latency in milliseconds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "omni_bmi"
  }
}

Input Schema

NameRequiredDescriptionDefault
height_inNoHeight (in). Height in inches (5'9" = 69 in). Default: 69. Min: 48. Max: 90.
weight_lbsNoBody Weight (lbs). Current body weight. Default: 170. Min: 60. Max: 500.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools