Get Food
get_foodFull food record by FDC id.
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": {
"fdc_id": 1102704
},
"name": "get_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdc_id | Yes | FDC id (e.g. 1102704) | |
| format | No | abridged | full (default full) | |
| nutrients | No | Comma-sep nutrient numbers to restrict response |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | No | FDC food identifier | |
| dataType | No | Type of food data | |
| description | No | Food description | |
| foodNutrients | No | Array of nutrient data for food | |
| publishedDate | No | Date food was published |