top_foods
Rank foods by protein, carbs, fat, or calories per 100 g with optional category filtering and ascending or descending order; sport supplements are excluded unless requested.
Instructions
Rank foods by a nutrient per 100 g, e.g. the most protein among fish, or the lowest-calorie fruits. Sport supplements are left out unless asked for, so the ranking shows real food.
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": {
"nutrient": "<nutrient>"
},
"name": "top_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| lowest | No | True = least of the nutrient instead of most | |
| category | No | Optional category filter, see list_categories | |
| nutrient | Yes | ||
| include_supplements | No | Include protein powders and other sport supplements (category 'Спорт') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |