Search foods
search_foodsSearches USDA FoodData Central by food name.
Each match has an fdc_id, its dataset, key macros per 100 g, and, for branded products, USDA's verbatim ingredient statement. ingredients_available is false when USDA supplied no ingredient statement for that record. 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": {
"query": "<query>"
},
"name": "search_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results per page, 1-50. Defaults to 10. | |
| query | Yes | Food name, e.g. raw spinach or cheddar cheese. | |
| offset | No | Results to skip, from pagination.next_offset. Defaults to 0. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||