Search Foods
search_foodsSearch USDA Food Data Central for food items by name, brand, or ingredient. Supports filtering by data type (Branded, Foundation, SR Legacy, Survey FNDDS, Experimental) and brand owner. Returns FDC id, description, data type, and publication date per result.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "organic whole milk"
},
"name": "search_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Free-text, name / brand / ingredient | |
| sort_by | No | dataType.keyword | lowercaseDescription.keyword | fdcId | publishedDate (default relevance) | |
| data_type | No | Filter to data type(s). Comma-sep. Options: Branded | Foundation | Survey (FNDDS) | SR Legacy | Experimental | |
| page_size | No | 1-200 (default 50) | |
| sort_order | No | asc | desc | |
| brand_owner | No | Restrict to a brand owner | |
| page_number | No | 1-based page (default 1) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foods | No | Array of food items matching search | |
| totalHits | No | Total number of matching foods | |
| currentPage | No | Current page number | |
| foodSearchCriteria | No | Search criteria used |