nutrition_compare
Compare 2 to 5 foods to determine which is healthier or has more nutrients. Get side-by-side nutrition data with per-nutrient winners.
Instructions
Compare 2 to 5 foods side by side. Use this when the user asks "which is healthier," "which has more protein," or any cross-food comparison — it's cheaper and clearer than calling nutrition_detail multiple times. Returns each food's full nutrition plus per-nutrient winners (highest protein, lowest sodium, etc.). Charges $0.003 USDC per call.
Args: fdc_ids: 2 to 5 USDA FDC IDs to compare.
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": {
"fdc_ids": "<fdc_ids>"
},
"name": "nutrition_compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdc_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||