search_foods
Search Cronometer's food database by name to find matching foods and retrieve the IDs required to add a serving.
Instructions
Search Cronometer's food database by name.
Returns matching foods with their IDs and source information needed to add a serving (food_id, food_source_id, measure_id).
Args: query: Food name or keyword to search for (e.g. "eggs", "chicken breast").
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 |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |