Compare products
compare_productsCompare 2-6 products side by side on price, rating, brand, and shared specs, and rank them by cost, review-adjusted rating, and review volume.
Instructions
Compare 2-6 products side by side: price, rating, brand and every spec that at least two of them list.
Also names the cheapest, best-rated (adjusted for rating count) and most-reviewed product.
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": {
"product_ids": "<product_ids>"
},
"name": "compare_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_specs | No | Maximum number of spec rows beyond the core fields. | |
| product_ids | Yes | 2 to 6 distinct product ids to compare. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specs | Yes | Core fields first, then spec keys listed by at least two of the products. | |
| products | Yes | ||
| cheapest_id | Yes | ||
| best_rated_id | Yes | Highest rating after shrinking toward 4.0 by rating count, so a 5.0 from 2 ratings does not win. | |
| most_reviewed_id | Yes |