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/hydration-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/hydration-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 body weight.
base_ml_per_kg· number · required- Enter base water per kilogram.
exercise_minutes· number · required- Enter exercise duration.
exercise_ml_per_hour· number · required- Enter exercise allowance per hour.
{
"type": "object",
"properties": {
"weight": {
"type": "number",
"description": "Enter body weight."
},
"base_ml_per_kg": {
"type": "number",
"description": "Enter base water per kilogram."
},
"exercise_minutes": {
"type": "number",
"description": "Enter exercise duration."
},
"exercise_ml_per_hour": {
"type": "number",
"description": "Enter exercise allowance per hour."
}
},
"required": [
"weight",
"base_ml_per_kg",
"exercise_minutes",
"exercise_ml_per_hour"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
daily_water_liters· number- Estimated daily water produced by the tool.
base_water_liters· number- Base water produced by the tool.
exercise_allowance_liters· number- Exercise allowance produced by the tool.
{
"type": "object",
"properties": {
"daily_water_liters": {
"type": "number",
"description": "Estimated daily water produced by the tool."
},
"base_water_liters": {
"type": "number",
"description": "Base water produced by the tool."
},
"exercise_allowance_liters": {
"type": "number",
"description": "Exercise allowance produced by the tool."
}
},
"additionalProperties": false
}
Hydration Calculator worked 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/hydration-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"weight": 75,
"base_ml_per_kg": 30,
"exercise_minutes": 45,
"exercise_ml_per_hour": 500
}'
{
"ok": true,
"data": {
"slug": "hydration-calculator",
"result": {
"values": {
"daily_water_liters": 2.62999999999999989341858963598497211933135986328125,
"base_water_liters": 2.25,
"exercise_allowance_liters": 0.38000000000000000444089209850062616169452667236328125
},
"display": {
"display": "2.63"
},
"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.