nutrition
Search USDA FoodData Central to find foods, retrieve detailed nutrient data by FDC ID, or compare multiple foods for diet tracking.
Instructions
Search USDA FoodData Central, get nutrition details, or compare foods. Actions: search, get, compare.
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": {
"action": "<action>"
},
"name": "nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | No | FDC ID (for get action) | |
| query | No | Search query (for search action) | |
| action | Yes | Action to perform | |
| fdcIds | No | FDC IDs (for compare action) | |
| dataType | No | Filter by data type | |
| pageSize | No | Results per page (default 10) | |
| pageNumber | No | Page number (default 1) |