searchFood
Search USDA FoodData Central for food entries, favoring lab-analyzed whole ingredients with portion weights, and present candidates for user selection.
Instructions
Search USDA FoodData Central for a food. Prefer Foundation and SR Legacy results for whole ingredients: they are laboratory-analysed and carry portion weights. Use Branded only for packaged products. Show the user the candidates and let them choose; do not pick silently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Defaults to 10. | |
| query | Yes | ||
| dataType | No | Defaults to ['Foundation','SR Legacy']. Prefer those two for whole ingredients: they are laboratory-analysed and carry portion weights. Use 'Branded' only for packaged products. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| budget | Yes | ||
| fromCache | Yes | ||
| totalHits | Yes | ||
| candidates | Yes |