compare_offer_costs
Compare 1 to 3 offers on the same billing term and period. prices maps offer_id to the monthly price the buyer would pay for that product without the offer (same currency as the vendor). Returns fit and cost per offer: pay today, cost over the period with and without the offer, saving, or why it cannot be calculated (credits, a longer trial, unknown duration).
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": {
"offer_ids": "<offer_ids>",
"prices": "<prices>"
},
"name": "compare_offer_costs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | No | Period to compare over, in months (default 12). | |
| prices | Yes | The monthly price the buyer would pay without the offer, as {offer_id: amount}, in the vendor's currency. | |
| billing | No | Billing term to compare on: 'monthly', 'annual' or 'biennial'. | monthly |
| offer_ids | Yes | 1 to 3 offer ids, each from the id field of a search_offers result. | |
| situation | No | Same as check_offer_eligibility: {customer, plan, billing}; optional. |