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/maintenance-calories-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/maintenance-calories-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-
Enter the sex used by formula used by this tool. Accepted values:
male, female. age· number · required- Enter the age used by this tool.
weight_kg· number · required- Enter the weight used by this tool.
height_cm· number · required- Enter the height used by this tool.
activity_level· string · required-
Enter the activity level used by this tool. Accepted values:
sedentary, light, moderate, very_active, extra_active.
{
"type": "object",
"properties": {
"sex": {
"type": "string",
"description": "Enter the sex used by formula used by this tool.",
"enum": [
"male",
"female"
]
},
"age": {
"type": "number",
"description": "Enter the age used by this tool.",
"minimum": 18,
"maximum": 100
},
"weight_kg": {
"type": "number",
"description": "Enter the weight used by this tool.",
"minimum": 20,
"maximum": 350
},
"height_cm": {
"type": "number",
"description": "Enter the height used by this tool.",
"minimum": 100,
"maximum": 250
},
"activity_level": {
"type": "string",
"description": "Enter the activity level used by this tool.",
"enum": [
"sedentary",
"light",
"moderate",
"very_active",
"extra_active"
]
}
},
"required": [
"sex",
"age",
"weight_kg",
"height_cm",
"activity_level"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
maintenance_calories· number- Estimated maintenance calories produced by the tool.
lower_range· number- Lower planning range produced by the tool.
upper_range· number- Upper planning range produced by the tool.
bmr· number- Basal metabolic rate produced by the tool.
{
"type": "object",
"properties": {
"maintenance_calories": {
"type": "number",
"description": "Estimated maintenance calories produced by the tool."
},
"lower_range": {
"type": "number",
"description": "Lower planning range produced by the tool."
},
"upper_range": {
"type": "number",
"description": "Upper planning range produced by the tool."
},
"bmr": {
"type": "number",
"description": "Basal metabolic rate produced by the tool."
}
},
"additionalProperties": false
}
Maintenance Calories 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/maintenance-calories-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"sex": "female",
"age": 32,
"weight_kg": 68,
"height_cm": 165,
"activity_level": "light"
}'
{
"ok": true,
"data": {
"slug": "maintenance-calories-calculator",
"result": {
"values": {
"maintenance_calories": 1911.589999999999918145476840436458587646484375,
"lower_range": 1816.009999999999990905052982270717620849609375,
"upper_range": 2007.170000000000072759576141834259033203125,
"bmr": 1390.25
},
"display": {
"display": "1911.59"
},
"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.