search_food
Find foods by name and get their unique IDs to log meals or retrieve detailed nutrition information.
Instructions
Search the Lose It! food database. Returns candidate foods with a food_id to pass to log_food or describe_food.
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 |
|---|---|---|---|
| limit | No | Max results to return. | |
| query | Yes | Food name to search for, e.g. 'greek yogurt'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |