calculate_meal
Computes total calories, protein, fat, and carbohydrates for a meal from food names and portion weights in grams.
Instructions
Total calories, protein, fat and carbs for a meal, e.g. [{"food": "Гречка варена", "grams": 200}, {"food": "Куряча грудка варена", "grams": 150}].
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": "calculate_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat | Yes | ||
| kcal | Yes | ||
| carbs | Yes | ||
| items | Yes | ||
| protein | Yes | ||
| not_found | Yes | ||
| total_grams | Yes | ||
| calories_from | Yes | Share of calories from protein/fat/carbs (4/9/4 kcal per gram) |