List Foods
list-foodsList foods from USDA FoodData Central with pagination, sorting, and filters by data type or brand for predictable iteration.
Instructions
Page-oriented listing endpoint for predictable iteration when you already know the data type or brand. Supports pagination, sorting, and brand filters, returning summaries for quick scanning.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list-foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort configuration for listing results. | |
| filters | No | Optional filters to scope the deterministic listing endpoint. | |
| 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 |
|---|---|---|---|
| foods | No | ||
| summary | Yes | ||
| previews | Yes |