Create a perk
create_perkCreate a reward a brand can give members: a coupon code, a link or a message. Milestone rewards set in the dashboard are perks too.
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": {
"brandId": "<brandId>",
"name": "<name>",
"kind": "<kind>",
"value": "<value>"
},
"name": "create_perk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | coupon (a code), url (a link) or message (text). | |
| name | Yes | What the brand calls this perk. | |
| value | Yes | The coupon code, link or message. | |
| brandId | Yes | Brand ID, the project that offers the perk. | |
| expiresAt | No | When the perk stops being shown, as an ISO 8601 time. | |
| validDays | No | How many days a member has to use it after it's given, like 30. Null keeps it until the perk's own expiry. | |
| valueCents | No | What the perk is worth to a member, in cents. | |
| uniqueCodes | No | Coupons only. true when each member needs their own code, like a gift card: members wait for one until codes are added, and never get the value. |