Total a recipe
calculate_recipeTotal and per-serving calories and macros for a list of ingredients. Each ingredient needs a food_id from search_foods and a gram weight.
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": {
"ingredients": "<ingredients>"
},
"name": "calculate_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| servings | No | How many servings to divide the totals into | |
| ingredients | Yes | Ingredients as food_id and grams |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |