Get Food Details
get-foodRetrieve a USDA FoodData Central record by its numeric ID, choosing abridged or full detail and filtering nutrients as needed.
Instructions
Look up a single FoodData Central (FDC) record by numeric ID. Supports abridged/full detail toggles and nutrient ID subsets to trim responses. Ideal once you already know the identifier.
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": {
"fdcId": "<fdcId>"
},
"name": "get-food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | Yes | ||
| format | No | ||
| nutrients | No | List of nutrient IDs to include (per API documentation). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food | Yes | ||
| macros | No | ||
| summary | Yes |