Overview
- Category
- Cooking
- 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/recipe-nutrition-per-serving-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/recipe-nutrition-per-serving-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.
ingredients· string · required- Enter ingredients.
servings· number · required- Enter servings.
{
"type": "object",
"properties": {
"ingredients": {
"type": "string",
"description": "Enter ingredients."
},
"servings": {
"type": "number",
"description": "Enter servings."
}
},
"required": [
"ingredients",
"servings"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
per_serving· array- Per-serving nutrition produced by the tool.
total_calories· number- Total calories produced by the tool.
serving_calories· number- Calories per serving produced by the tool.
notice· string- Nutrition notice produced by the tool.
{
"type": "object",
"properties": {
"per_serving": {
"type": "array",
"description": "Per-serving nutrition produced by the tool."
},
"total_calories": {
"type": "number",
"description": "Total calories produced by the tool."
},
"serving_calories": {
"type": "number",
"description": "Calories per serving produced by the tool."
},
"notice": {
"type": "string",
"description": "Nutrition notice produced by the tool."
}
},
"additionalProperties": false
}
Recipe Nutrition Per Serving 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/recipe-nutrition-per-serving-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"ingredients": "Oats | 100 | 389 | 16.9 | 66.3 | 6.9\nMilk | 240 | 149 | 7.7 | 11.7 | 8",
"servings": 4
}'
{
"ok": true,
"data": {
"slug": "recipe-nutrition-per-serving-calculator",
"result": {
"values": {
"per_serving": [
{
"nutrient": "Calories",
"value": 134.5
},
{
"nutrient": "Protein",
"value": 6.0999999999999996447286321199499070644378662109375
},
{
"nutrient": "Carbohydrate",
"value": 19.5
},
{
"nutrient": "Fat",
"value": 3.70000000000000017763568394002504646778106689453125
}
],
"total_calories": 538,
"serving_calories": 134.5,
"notice": "Uses only the nutrient values entered; verify against authoritative labels or databases."
},
"display": {
"display": "[{\"nutrient\":\"Calories\",\"value\":134.5},{\"nutrient\":\"Protein\",\"value\":6.0999999999999996447286321199499070644378662109375},{\"nutrient\":\"Carbohydrate\",\"value\":19.5},{\"nutrient\":\"Fat\",\"value\":3.70000000000000017763568394002504646778106689453125}]"
},
"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.