setup_loyalty_card
Phase 7 (round 3): set up a digital loyalty stamp card on an editor app — "collect N stamps, get a reward". Creates the loyalty card design (name, stamps required, reward, stamp icon, card colour) and adds the loyalty page. One loyalty page per app: an existing one is updated rather than duplicated, and a card of the same name is updated rather than duplicated. Never invent the reward or the number of stamps — ask the owner. This is NOT points-per-spend and NOT discount coupons. Customers must sign in to the app to hold a card.
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>",
"cardName": "<cardName>",
"stampsRequired": "<stampsRequired>",
"rewardDescription": "<rewardDescription>"
},
"name": "setup_loyalty_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | Yes | The editor app id (UUID). | |
| cardName | Yes | Name of the card as customers see it, e.g. "Coffee Club". Required. | |
| pageTitle | No | Title of the loyalty page. Defaults to "Loyalty Rewards". | |
| stampIcon | No | Icon shown for each stamp. Defaults to "star". | |
| cardBgColor | No | Card background colour as #rrggbb. Optional — defaults to the app branding. | |
| description | No | Short line explaining the card. Optional. | |
| stampsRequired | Yes | How many stamps fill the card, e.g. 10. Required. 1-50. | |
| rewardDescription | Yes | What they get when the card is full, e.g. "A free coffee". Required. |