← All tool references

Health · execute

Calorie Calculator

Estimate daily calorie maintenance from body data and a selected activity level.

Open public tool

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/calorie-calculator

View this descriptor as JSON

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/calorie-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.
activity · string · required
Choose the activity level that best reflects your usual week, not one unusually active day. Accepted values: sedentary, light, moderate, active, very_active.
{
    "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."
        },
        "activity": {
            "type": "string",
            "enum": [
                "sedentary",
                "light",
                "moderate",
                "active",
                "very_active"
            ],
            "description": "Choose the activity level that best reflects your usual week, not one unusually active day."
        }
    },
    "required": [
        "sex",
        "age",
        "weight_kg",
        "height_cm",
        "activity"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

bmr · number
Basal metabolic rate.
maintenance_calories · number
Browser-calculated maintenance calories.
daily_calorie_target · number
Browser-calculated daily calorie target.
{
    "type": "object",
    "properties": {
        "bmr": {
            "type": "number",
            "description": "Basal metabolic rate."
        },
        "maintenance_calories": {
            "type": "number",
            "description": "Browser-calculated maintenance calories."
        },
        "daily_calorie_target": {
            "type": "number",
            "description": "Browser-calculated daily calorie target."
        }
    },
    "additionalProperties": false
}

Calorie 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/calorie-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "sex": "male",
    "age": 30,
    "weight_kg": 70,
    "height_cm": 175,
    "activity": "moderate"
}'
{
    "ok": true,
    "data": {
        "slug": "calorie-calculator",
        "result": {
            "values": {
                "bmr": 1649,
                "maintenance_calories": 2556,
                "daily_calorie_target": 2556
            },
            "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.