Tools Reference
USDA FoodData
3 tools for accessing USDA FoodData Central. Uses same Congress.gov API key.
fooddata-search
Search USDA FoodData Central for foods by name or keyword. Returns nutrient highlights per 100g serving.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | required | Search query (e.g., "chicken breast", "apple") |
| dataType | string | optional | Filter: "Branded", "SR Legacy", "Foundation", "Survey (FNDDS)" |
| pageSize | number | optional | Results per page (max 200, default 25) |
| pageNumber | number | optional | Page number (0-indexed) |
Example
fooddata-search(query: "chicken breast")fooddata-detail
Get the full nutrient profile for a specific food by FDC ID — macros, vitamins, minerals, and more.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| fdcId | number | required | FoodData Central ID (use fooddata-search to find IDs) |
Example
fooddata-detail(fdcId: 171705)fooddata-nutrients
Get nutrient data for multiple foods at once for side-by-side comparison.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| fdcIds | string | required | Comma-separated FDC IDs (e.g., "171705,167782") |
Example
fooddata-nutrients(fdcIds: "171705,167782")