search_food
Search food items by name to retrieve nutrition information and macros from FatSecret, USDA, Open Food Facts, or all sources.
Instructions
Search for food items by name to get nutrition information. Returns matching foods with their macros.
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": "search_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| query | Yes | Search query for food name | |
| source | No | Food database to search (default: fatsecret) |