Get Multiple Foods
get-foodsBatch lookup USDA food nutrition data by FDC IDs. Submit up to 50 IDs in one request to minimize API calls, with abridged/full detail and nutrient filter options.
Instructions
Batch lookup for multiple FDC IDs via the USDA bulk endpoint. Provide up to 50 IDs to reduce repeated network calls. Supports abridged/full detail and nutrient filters per the API.
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": {
"fdcIds": "<fdcIds>"
},
"name": "get-foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcIds | Yes | ||
| format | No | ||
| nutrients | No | List of nutrient IDs to include (per API documentation). | |
| includeRaw | No | ||
| sampleSize | No | ||
| previewOnly | No | ||
| estimateOnly | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| foods | No | ||
| summary | Yes | ||
| previews | Yes |