Search Foods
search-foodsSearch USDA FoodData Central for food items with full-text queries, structured filters, and pagination. Preview results or estimate output to control context usage.
Instructions
Full-text search of USDA FoodData Central with structured filters, pagination cursors, preview mode, and dry-run estimation to conserve context.
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 |
|---|---|---|---|
| sort | No | Sort configuration. Omit or set by="relevance" for API defaults. | |
| query | Yes | ||
| filters | No | Optional filters to narrow the search results. | |
| includeRaw | No | ||
| pagination | No | Pagination controls. Provide either page/size or cursor, not both. | |
| sampleSize | No | ||
| previewOnly | No | ||
| estimateOnly | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| summary | Yes | ||
| previews | Yes |