Calories and macros of a list of ingredients
nutrition_calculateCalories and macros of a list of ingredients. Recipe / meal totals. Search 7,793 generic foods and get calories, protein, fat, carbohydrates, fiber, sugars, vitamins and minerals (36 nutrients) per 100 g or for any amount, with common portion sizes (cup, slice, piece). Calculate totals for a whole recipe or meal in one request.
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": "nutrition_calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | food:grams pairs separated by ; (or POST JSON {"items":[{"query":"banana","grams":120}]}) (e.g. eggs:100;oats:50;whole milk:200) |