Compare Products
compare_productsCompare 2-5 products by health score. Get a ranked list, evaluation details, and the best-scoring barcode. Unavailable products are noted and excluded from ranking.
Instructions
Compare 2–5 products by health score. Returns all evaluations, a ranking by health score (descending), and the best-scoring barcode. Products not found are included as { value, status: 'not_found' } and excluded from the ranking.
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": {
"values": "<values>"
},
"name": "compare_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Array of 2–5 barcode values to compare | |
| context | No | Evaluation context (default: retail) | |
| identifier | No | Barcode identifier type, applied to all values | upc |
| jurisdiction | No | Filter regulatory flags: CA, TX, or WV |