Compare Indian foods on a nutrient
compare_foodsCompare 2-8 Indian foods side by side on a single nutrient (calcium, fibre, iron, protein), returning each food's headline value per 100 g, its other rows, and a source URL. Use this to answer 'which has more protein/iron/fibre'; use lookup_food for one food in depth. Read-only. Foods it cannot match are listed in not_found and the rest are still compared; an unsupported nutrient returns an error naming the valid ones.
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": {
"foods": "<foods>"
},
"name": "compare_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foods | Yes | 2 to 8 food names, e.g. ['rajma', 'chana', 'moong dal']. Unknown names are returned in not_found. | |
| nutrient | No | The nutrient to compare on. Defaults to protein. | protein |