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.
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 |