money_bogo
The discount the CHECKOUT really applies under a buy-one-get-one sign, exact Decimal: the percent hits the CHEAPER item of each pair (published retail rule — $60+$40 pays 80 of 100 = 20%, neither 25 nor 50); equal prices give 25% on the pair, never 50; an odd item pays FULL (pairs are GIVEN, never guessed — extras); a coupon stacks as FACTORS (25% then 30% = 47.5, never 55). Per-pair expression travels; the saved ratio travels as an exact fraction beside the 4-dp display. Closed offers: bogo_free | bogo_percent; comma prices refused by name (num/parse is the shape tool); cap 12 pairs. Free.
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": "<offer>",
"pairs": "<pairs>"
},
"name": "money_bogo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer | Yes | ||
| pairs | Yes | ||
| extras | No | ||
| coupon_percent | No | ||
| second_percent | No |