Analyze a recipe
analyze_recipeTotals one dish from its ingredient list and reports it per serving.
Ingredient quantities are for the whole dish, as a recipe states them. per_serving divides by servings, whole_recipe holds the undivided totals, and the assessment covers one serving.
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": {
"name": "<name>",
"ingredients": "<ingredients>"
},
"name": "analyze_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Dish name, e.g. Moussaka. | |
| servings | No | Servings the recipe yields. Defaults to 1. | |
| ingredients | Yes | Ingredients, each with a food name or fdc_id and a portion or grams, e.g. {"food": "eggplant", "portion": "2 medium"}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||