Rank foods by nutrient
find_foods_by_nutrientRanks foods by how much of one nutrient they carry per 100 g.
The default list is lab-measured foods. Branded products are included only when data_type is Branded. Amounts that cannot fit in 100 g, and potassium above the potassium-chloride ceiling, are left out. Per-100 g ranking favors foods eaten in small amounts, such as spices and dried herbs; the category filter narrows the list to one food group. Results are paged, and pagination.next_offset is null on the last page.
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": "find_foods_by_nutrient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page, 1-100. Defaults to 20. | |
| offset | No | Results to skip, from pagination.next_offset. Defaults to 0. | |
| category | No | USDA food category, matched as a substring, e.g. Vegetables or Legumes. | |
| nutrient | Yes | Nutrient to rank by. | |
| data_type | No | One USDA dataset. Foundation and SR Legacy are unbranded whole foods, Branded is packaged products, and Survey (FNDDS) is prepared dishes. Omitted, all four are searched. | |
| min_amount | No | Minimum amount per 100 g. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||