usda_food_search
Search USDA FoodData Central for generic or branded foods without a barcode to retrieve fdcId, description, data type, and key nutrients per 100 g, including sodium.
Instructions
Search USDA FoodData Central for generic or branded foods (no barcode required). Returns fdcId, description, data type, and key nutrients per 100 g, including sodium in milligrams. Uses USDA_API_KEY, or the shared demo key (about 30 requests per hour and 50 per day) when that variable is unset. The key is never included in the result.
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": {
"query": "<query>"
},
"name": "usda_food_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1. | |
| query | Yes | Food name to search for. Example: cheddar cheese. | |
| data_type | No | Limit to one FoodData Central dataset. Omit to search all. | |
| page_size | No | Results per page (default 10, max 25). |