BMI Calculator: API and MCP
BMI Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.
GET /api/v1/tools/health.bmi/mcp/health
- Id
health.bmi- Version
- 1.0.0
- Access
- Free
- Tool page
- BMI Calculator
- Schema
GET /api/v1/tools/health.bmi
Input
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
units | string | metric | pounds | stones | metric | Units |
weight | number | ≥ 20, ≤ 350 | Weight (kg) | |
height | number | ≥ 100, ≤ 250 | Height (cm) | |
weightSt | integer | ≥ 1, ≤ 55 | Weight, stones (st) | |
weightLb | number | ≥ 0, ≤ 800 | Weight, pounds (lb) · With stones: the pounds over the stones. | |
heightFt | integer | ≥ 3, ≤ 8 | Height, feet (ft) | |
heightIn | number | ≥ 0, ≤ 11.99 | 0 | Height, inches (in) |
Output
| Field | Type | Description |
|---|---|---|
bmi | number | Body mass index (kg/m²) |
underweight | boolean | Underweight: BMI below 18.5. |
normal | boolean | Normal weight: BMI 18.5–24.9. |
overweight | boolean | Overweight: BMI 25.0–29.9. |
obese | boolean | Obesity: BMI 30.0 or more. |
healthyMin | number | Healthy weight range: from (kg) |
healthyMax | number | Healthy weight range: to (kg) |
Example request
curl -X POST https://hesaplayici.com/api/v1/tools/health.bmi/execute \
-H 'Content-Type: application/json' \
-d '{"input":{"units":"metric","weight":68,"height":170,"heightIn":0},"locale":"en"}'Example answer
{
"output": {
"bmi": 23.5,
"underweight": false,
"normal": true,
"overweight": false,
"obese": false,
"healthyMin": 53.5,
"healthyMax": 72
},
"steps": [
{
"id": "bmi",
"formula": "BMI = weight / height²",
"substitution": "BMI = 68 / 1.7²",
"value": 23.5,
"unit": "kg/m²"
},
{
"id": "healthyMin",
"formula": "healthy weight from = 18.5 × height²",
"substitution": "healthy weight from = 18.5 × 1.7²",
"value": 53.5,
"unit": "kg"
},
{
"id": "healthyMax",
"formula": "healthy weight to = 24.9 × height²",
"substitution": "healthy weight to = 24.9 × 1.7²",
"value": 72,
"unit": "kg"
}
],
"notes": [],
"meta": {
"toolVersion": "1.0.0",
"locale": "en"
},
"citation": {
"url": "https://hesaplayici.com/en/health/bmi-calculator",
"title": "BMI Calculator"
}
}