get_rationale
Fetch a one-sentence, merchandiser-grade explanation for why product B is recommended alongside product A, ready to display in recommendation tiles or chat replies.
Instructions
Fetch the one-sentence rationale for why product B is recommended alongside product A. Returns a short merchandiser-grade explanation ('these are commonly bought together by customers buying X') suitable for surfacing in a recommendation tile or chat reply. Use this after get_recommendations / get_bundle_for_cart when the agent or user asks 'why are these recommended together?' or 'explain this pairing'.
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_id": "<product_id>",
"related_product_id": "<related_product_id>"
},
"name": "get_rationale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The base product id (the antecedent in the recommendation rule). | |
| related_product_id | Yes | The recommended product id (the consequent in the rule). |