← All tool references

Health · not_available

Protein Calculator

Estimate a daily protein range from body weight, activity level, and training goal.

Open public tool

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

View this descriptor as JSON

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/protein-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.

weight · number · required
Enter the body weight used in the calculation.
weight_unit · string · required
Choose the weight unit that matches the calculation. Accepted values: kg, lb.
goal · string · required
Choose the activity and goal that matches the calculation. Accepted values: minimum, active, endurance, strength, calorie_deficit.
meals · number · required
Enter the meals per day used in the calculation.
{
    "type": "object",
    "properties": {
        "weight": {
            "type": "number",
            "description": "Enter the body weight used in the calculation.",
            "minimum": 1
        },
        "weight_unit": {
            "type": "string",
            "description": "Choose the weight unit that matches the calculation.",
            "enum": [
                "kg",
                "lb"
            ]
        },
        "goal": {
            "type": "string",
            "description": "Choose the activity and goal that matches the calculation.",
            "enum": [
                "minimum",
                "active",
                "endurance",
                "strength",
                "calorie_deficit"
            ]
        },
        "meals": {
            "type": "number",
            "description": "Enter the meals per day used in the calculation.",
            "minimum": 1,
            "maximum": 10
        }
    },
    "required": [
        "weight",
        "weight_unit",
        "goal",
        "meals"
    ],
    "additionalProperties": false
}

Output schema

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

minimum_grams · number
Lower daily protein estimate produced by the calculation.
maximum_grams · number
Upper daily protein estimate produced by the calculation.
grams_per_meal_low · number
Lower protein per meal produced by the calculation.
grams_per_meal_high · number
Upper protein per meal produced by the calculation.
{
    "type": "object",
    "properties": {
        "minimum_grams": {
            "type": "number",
            "description": "Lower daily protein estimate produced by the calculation."
        },
        "maximum_grams": {
            "type": "number",
            "description": "Upper daily protein estimate produced by the calculation."
        },
        "grams_per_meal_low": {
            "type": "number",
            "description": "Lower protein per meal produced by the calculation."
        },
        "grams_per_meal_high": {
            "type": "number",
            "description": "Upper protein per meal produced by the calculation."
        }
    },
    "additionalProperties": false
}

Protein 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/protein-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "weight": 75,
    "weight_unit": "kg",
    "goal": "active",
    "meals": 4
}'
{
    "ok": true,
    "data": {
        "slug": "protein-calculator",
        "result": {
            "values": {
                "minimum_grams": 90,
                "maximum_grams": 120,
                "grams_per_meal_low": 22.5,
                "grams_per_meal_high": 30
            },
            "display": {
                "display": "90"
            },
            "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.