Analyze a recipe's nutrition from its ingredient list
analyze_recipe_textNutrients per serving for a recipe pasted as plain ingredient lines ("2 cups flour", "1 tbsp butter"), in English or French, from Health Canada's Canadian Nutrient File 2026, with how many lines were counted, left out or not matched (by line number). Totals only: it does not say which food each line matched. To choose each line's food yourself, use search_cnf_foods with compute_cnf_recipe. At most 40 lines of 200 characters. Estimates from reference values; not a lab analysis and not medical advice.
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": {
"text": "<text>",
"servings": "<servings>"
},
"name": "analyze_recipe_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The ingredient list, one ingredient per line, as written in the recipe (at most 40 lines). Section headings are fine; leave out the method. | |
| locale | No | The language the ingredient lines are written in. | en |
| servings | Yes | How many servings the recipe makes. |