Compare foods
compare_foodsPuts several foods side by side at the same serving weight.
highest_per_nutrient names the food with the most of each nutrient. failed lists ids that could not be loaded, and partial is true when the comparison is missing some of them.
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": "compare_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grams | No | Serving weight in grams. Defaults to 100. | |
| fdc_ids | Yes | FoodData Central ids to compare, 1-10. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||