Compare two products
compare_productsCompare two products (by their slugs): each one's public details side by side, which has more community upvotes, and the comparison page.
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": {
"a": "<a>",
"b": "<b>"
},
"name": "compare_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | One product's URL slug. | |
| b | Yes | The other product's URL slug. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| url | Yes | The side-by-side comparison page. | |
| moreUpvoted | No | The slug with more community upvotes; null on a tie. |