Add a reward to a card
create_rewardAdds a reward that customers can redeem with stamps from a card, e.g. a free coffee at 10 stamps.
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": {
"card_id": "<card_id>",
"name": "<name>",
"stamps_required": "<stamps_required>"
},
"name": "create_reward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the customer gets, e.g. "Free coffee". | |
| intent | No | Optional. One short sentence on what the person asked you to do, e.g. "Set up a stamp card for Ground Up Café". Leal shows it in the person's activity log under Settings → AI agents, so they can see what was done for them. Leave out customer details. | |
| card_id | Yes | Card id from list_cards. | |
| description | No | Optional details, e.g. "Any size, any drink". | |
| stamps_required | Yes | Stamps spent to redeem it. |