Search foods
search_foodsSearch a catalogue of over 4 million foods by name and return calories and macros per 100 g. Use this first whenever the user names a food. Returns a food_id for each result, which calculate_portion and get_food_nutrition accept.
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_foods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many results to return (1-25) | |
| query | Yes | Food name, e.g. 'grilled chicken breast' | |
| verified_only | No | Only return foods with curated, verified macros. Keep true unless the user asks for broader coverage. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |