Search food database
search_food_databaseSearch the user's custom foods, USDA (generic foods like 'chicken breast raw', 'rice cooked') and Open Food Facts (packaged/branded products). Returns nutrients per 100 g plus serving size. Pass a chosen result to log_food_from_database with the eaten grams.
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_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 10) | |
| query | Yes | Food name, optionally with brand, e.g. 'Skyr Siggi's vanilla' or 'oats rolled' |