Calculate recipe nutrition
calculate_recipe_nutritionCalculate a recipe's nutrition totals, per serving, and per 100 g from food numbers and gram amounts. Get clear meal breakdowns for any recipe.
Instructions
Calculate the nutrition of a recipe or meal from food numbers and gram amounts. Returns totals, per serving and per 100 g. Uses the stored values as-is: if you pass raw ingredients, cooking losses are not modelled.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>"
},
"name": "calculate_recipe_nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Ingredients as food number + grams. | |
| language | No | Language for food and nutrient names: 'en' (English) or 'sv' (Swedish). Defaults to the server setting. | |
| servings | No | Number of servings the recipe makes. | |
| nutrients | No | Nutrients to include, by code (e.g. 'PROT', 'ENERC_KCAL', 'VITD') or name fragment (e.g. 'iron', 'vitamin b'). Omit for the default set. |