setup_loyalty_points
Phase 7 (round 4): set up a points ("stars") loyalty programme on an editor app — customers earn points per unit of spend and redeem them against named rewards. Creates the programme (earn rate, currency symbol, description), its rewards list, and adds the rewards page. One points page per app: an existing programme and page are updated rather than duplicated. Never invent the earn rate or the rewards — ask the owner. This is NOT a stamp card (use setup_loyalty_card) and NOT discount coupons. Customers must sign in to the app to hold a points balance.
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": {
"appId": "<appId>",
"pointsPerCurrencyUnit": "<pointsPerCurrencyUnit>",
"rewards": "<rewards>"
},
"name": "setup_loyalty_points"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The editor app id (UUID). | |
| rewards | Yes | The rewards customers can redeem points for. Required, at least one. Ask the owner — do not invent rewards. | |
| pageTitle | No | Title of the rewards page. Defaults to "Loyalty Points". | |
| description | No | Short line explaining how the programme works. Optional. | |
| programName | No | Name of the programme. Defaults to "Star Rewards Program". | |
| currencySymbol | No | Currency symbol for spend, e.g. "£", "$", "€". Defaults to "£" — confirm with the owner. | |
| pointsPerCurrencyUnit | Yes | How many points a customer earns per 1 unit of spend (e.g. 10 points per £1). Required. 1-1000. |