List Foods
list_foodsPaginated browse of FDC foods.
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": {
"data_type": "Survey (FNDDS)",
"page_size": 50,
"page_number": 1
},
"name": "list_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort_by | No | ||
| data_type | No | Filter to data type(s). Options: Branded | Foundation | Survey (FNDDS) | SR Legacy | Experimental | |
| page_size | No | 1-200 (default 50) | |
| sort_order | No | ||
| page_number | No | 1-based page |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| items | No |