Analyze a meal
analyze_mealTotals nutrients across several foods and assesses the meal.
assessment.shortfalls lists missed targets, worst first, and assessment.over_limit lists exceeded limits. not_reported lists nutrients with no data in the food records; those are unknown, not zero. failed lists items left out of the total, and partial is true when there are any.
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": "analyze_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Foods in the meal, 1-25, each an fdc_id with grams, e.g. [{"fdc_id": 168462, "grams": 150}]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||