money_discount
The math the checkout will not do for you. '-30% then -20%' is NOT -50%: chained discounts are successive multiplicative factors (0.70 x 0.80 = 0.56 -> 44%), and the naive sum is reported SIDE BY SIDE with the lie's size (percent_lie_delta). When a fixed-amount step exists, ALL step orders are computed and compared: order_matters + order_spread + best_step_order_for_you — because -30%% then -5eur is not -5eur then -30%%. buy2pay1 with qty, exact Decimal money, final HALF_UP 2 dp declared, the formula returned for audit, below-zero chains refused by name never clipped. Free — this one should be free forever.
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": {
"price": "<price>",
"steps": "<steps>"
},
"name": "money_discount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | ||
| price | Yes | ||
| steps | Yes | ||
| currency | No |