Top foods by nutrient
top_foodsFoods with the most (or least) of a nutrient per 100 g or per 100 kcal. Nutrient codes: ENERC_KCAL, PROT, FAT, FASAT, FAMS, FAPU, N3, CHO, SUGAR, SUGAD, SUGFR, FIBT, WHOLET, NACL, NA, CHORL, VITA, CARTB, VITD, VITE, THIA, RIBF, NIAEQ, VITB6, FOL, VITB12, VITC, CA, P, K, MG, FE, ZN, SE, ID.
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 |
|---|---|---|---|
| per | No | Basis (default 100g) | |
| diet | No | Optional diet filter | |
| lang | No | ||
| limit | No | Max results (default 15) | |
| order | No | desc = highest first (default) | |
| everyday | No | Exclude spices, supplements, stock etc. (default true) | |
| nutrient | Yes | Nutrient code, e.g. PROT, FIBT, FE, VITD |