Overview
- Category
- Health
- API mode
execute- 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/bmr-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/bmr-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 sex category required by the selected estimation formula. Accepted values:
male, female. age· number · required- Enter age in completed years for the metabolic-rate estimate.
weight_kg· number · required- Enter body weight in kilograms for the metabolic-rate estimate.
height_cm· number · required- Enter height in centimeters for the formula.
{
"type": "object",
"properties": {
"sex": {
"type": "string",
"enum": [
"male",
"female"
],
"description": "Choose the sex category required by the selected estimation formula."
},
"age": {
"type": "number",
"description": "Enter age in completed years for the metabolic-rate estimate."
},
"weight_kg": {
"type": "number",
"description": "Enter body weight in kilograms for the metabolic-rate estimate."
},
"height_cm": {
"type": "number",
"description": "Enter height in centimeters for the formula."
}
},
"required": [
"sex",
"age",
"weight_kg",
"height_cm"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
bmr_calories· number- Estimated calories used per day at complete rest.
sedentary_estimate· number- BMR multiplied by 1.2 for context.
moderate_estimate· number- BMR multiplied by 1.55 for context.
very_active_estimate· number- BMR multiplied by 1.9 for context.
{
"type": "object",
"properties": {
"bmr_calories": {
"type": "number",
"description": "Estimated calories used per day at complete rest."
},
"sedentary_estimate": {
"type": "number",
"description": "BMR multiplied by 1.2 for context."
},
"moderate_estimate": {
"type": "number",
"description": "BMR multiplied by 1.55 for context."
},
"very_active_estimate": {
"type": "number",
"description": "BMR multiplied by 1.9 for context."
}
},
"additionalProperties": false
}
BMR Calculator: Adult estimate
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/bmr-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"sex": "male",
"age": 30,
"weight_kg": 70,
"height_cm": 175
}'
{
"ok": true,
"data": {
"slug": "bmr-calculator",
"result": {
"values": {
"bmr_calories": 1649,
"sedentary_estimate": 1979,
"moderate_estimate": 2556,
"very_active_estimate": 3133
},
"display": {
"display": "1649"
},
"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.