What would a discount cost?
promotion_impactEstimate a promotion's cost before enabling it by replaying its discount on recent orders, showing eligible orders, revenue impact, and per-order scenarios.
Instructions
Before switching a promotion on: replay its cart discount (or one you describe) on the orders of the last days and say what it would have cost: if every eligible order had used it, and at the share of orders that used a promotion so far. Respects a percentage cap and a minimum cart value; rules that limit who gets it are not evaluated, so the result is an upper bound. Read-only. Returns { orders, revenue, eligibleOrders, scenarios, averagePerOrder, capReached, note }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "promotion_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Orders of how many days to replay | |
| discount | No | Or a discount to try: 'what if 20 % off?' | |
| promotionId | No | An existing promotion, e.g. from promotions_list | |
| minCartValue | No | Only carts from this value (gross) | |
| salesChannelId | No | Only this sales channel |