Search products
search_productsUse this when the user wants to find food products by name or brand, such as "find oat milks" or "Nutella jars in Germany". Pass the words to search for and optionally a country (English name or two-letter code) and a limit of up to 10. Returns each product's barcode, name, brands and Nutri-Score; use lookup_barcode for the full entry.
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_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many products to return, up to 10 (default 5) | |
| query | Yes | What to look for, such as "oat milk" or a brand and product name | |
| country | No | Optional country to limit to, as an English name or two-letter code, such as "France" or "US" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| notice | Yes | ||
| status | Yes | ||
| message | No | ||
| products | Yes | ||
| attribution | Yes |