Compare foods
compare_foodsCompare 2-6 foods side by side on the same nutrients per 100 g. Select specific nutrients or use the default set of energy, fat, saturated fat, carbohydrates, sugar, fibre, protein, and salt.
Instructions
Compare 2-6 foods side by side on the same nutrients (per 100 g). Defaults to the nutrition declaration set: energy, fat, saturated fat, carbohydrates, sugar, fibre, protein, salt.
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": {
"numbers": "<numbers>"
},
"name": "compare_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| numbers | Yes | Food numbers to compare. | |
| language | No | Language for food and nutrient names: 'en' (English) or 'sv' (Swedish). Defaults to the server setting. | |
| nutrients | No | Nutrients to include, by code (e.g. 'PROT', 'ENERC_KCAL', 'VITD') or name fragment (e.g. 'iron', 'vitamin b'). Omit for the default set. |