find_healthier_alternative
Finds healthier alternatives to a food product by searching its category for items with a lower Nutri-Score, returning the best matches first.
Instructions
Suggest healthier products in the same category as the given product.
Looks up the product, then searches its category for items with a better (lower) Nutri-Score, returning the healthiest matches first.
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": {
"barcode": "<barcode>"
},
"name": "find_healthier_alternative"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of alternatives to return (1-10, default 5). | |
| barcode | Yes | The product barcode, digits only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |