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