Search foods and calories
search_foodsUse this when the user asks how many calories, how much protein, carbs, fat or fiber a food has, or wants to compare foods. Searches the Nutrista food database (thousands of foods and grocery products, values per 100 g) and shows food cards. Food values are estimates.
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 | ||
| query | Yes | ||
| language | No |