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/calorie-deficit-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/calorie-deficit-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.
maintenance_calories· number · required- Enter the maintenance calories used by this tool.
target_loss_per_week· number · required- Enter the target weight loss used by this tool.
minimum_calorie_floor· number · required- Enter the minimum calorie floor used by this tool.
{
"type": "object",
"properties": {
"maintenance_calories": {
"type": "number",
"description": "Enter the maintenance calories used by this tool.",
"minimum": 500,
"maximum": 10000
},
"target_loss_per_week": {
"type": "number",
"description": "Enter the target weight loss used by this tool.",
"minimum": 0,
"maximum": 5
},
"minimum_calorie_floor": {
"type": "number",
"description": "Enter the minimum calorie floor used by this tool.",
"minimum": 500,
"maximum": 5000
}
},
"required": [
"maintenance_calories",
"target_loss_per_week",
"minimum_calorie_floor"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
daily_deficit· number- Daily calorie deficit produced by the tool.
target_calories· number- Target daily calories produced by the tool.
weekly_deficit· number- Weekly calorie deficit produced by the tool.
modeled_monthly_change· number- Modeled monthly weight change produced by the tool.
floor_applied· string- Calorie floor status produced by the tool.
{
"type": "object",
"properties": {
"daily_deficit": {
"type": "number",
"description": "Daily calorie deficit produced by the tool."
},
"target_calories": {
"type": "number",
"description": "Target daily calories produced by the tool."
},
"weekly_deficit": {
"type": "number",
"description": "Weekly calorie deficit produced by the tool."
},
"modeled_monthly_change": {
"type": "number",
"description": "Modeled monthly weight change produced by the tool."
},
"floor_applied": {
"type": "string",
"description": "Calorie floor status produced by the tool."
}
},
"additionalProperties": false
}
Calorie Deficit 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/calorie-deficit-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"maintenance_calories": 2400,
"target_loss_per_week": 0.75,
"minimum_calorie_floor": 1400
}'
{
"ok": true,
"data": {
"slug": "calorie-deficit-calculator",
"result": {
"values": {
"daily_deficit": 375,
"target_calories": 2025,
"weekly_deficit": 2625,
"modeled_monthly_change": 3.261200000000000098765440270653925836086273193359375,
"floor_applied": "Minimum floor was not applied"
},
"display": {
"display": "375"
},
"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.