Overview
- Category
- Health
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/ideal-weight-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/ideal-weight-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
sex· string · required-
Choose the formula sex that matches the calculation. Accepted values:
female, male. height_cm· number · required- Enter the height used in the calculation.
{
"type": "object",
"properties": {
"sex": {
"type": "string",
"description": "Choose the formula sex that matches the calculation.",
"enum": [
"female",
"male"
]
},
"height_cm": {
"type": "number",
"description": "Enter the height used in the calculation.",
"minimum": 120,
"maximum": 230
}
},
"required": [
"sex",
"height_cm"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
average_kg· number- Average formula estimate produced by the calculation.
average_lb· number- Average formula estimate in pounds produced by the calculation.
devine_kg· number- Devine estimate produced by the calculation.
robinson_kg· number- Robinson estimate produced by the calculation.
miller_kg· number- Miller estimate produced by the calculation.
hamwi_kg· number- Hamwi estimate produced by the calculation.
{
"type": "object",
"properties": {
"average_kg": {
"type": "number",
"description": "Average formula estimate produced by the calculation."
},
"average_lb": {
"type": "number",
"description": "Average formula estimate in pounds produced by the calculation."
},
"devine_kg": {
"type": "number",
"description": "Devine estimate produced by the calculation."
},
"robinson_kg": {
"type": "number",
"description": "Robinson estimate produced by the calculation."
},
"miller_kg": {
"type": "number",
"description": "Miller estimate produced by the calculation."
},
"hamwi_kg": {
"type": "number",
"description": "Hamwi estimate produced by the calculation."
}
},
"additionalProperties": false
}
Ideal Weight Calculator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/ideal-weight-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"sex": "female",
"height_cm": 168
}'
{
"ok": true,
"data": {
"slug": "ideal-weight-calculator",
"result": {
"values": {
"average_kg": 59.89999999999999857891452847979962825775146484375,
"average_lb": 132,
"devine_kg": 59.60000000000000142108547152020037174224853515625,
"robinson_kg": 59.39999999999999857891452847979962825775146484375,
"miller_kg": 61.5,
"hamwi_kg": 59
},
"display": {
"display": "59.9"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.