Create promotion
create_promotion[REQUIRES HUMAN APPROVAL] Add a new promotional or discount code to an event using its attributes. Returns the promotion API response; use list_promotions to review existing codes first.
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": {
"attributes": "<attributes>"
},
"name": "create_promotion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | [REQUIRES HUMAN APPROVAL] Pass `true` to execute. This is a programmatic backstop to the description tag. Destructive tools also require your approval through the client. | |
| eventId | No | Event ID. Defaults to active event. | |
| attributes | Yes | Promotion attributes (code, discount, usage limit, etc.). | |
| idempotencyKey | No | Reuse the same key to replay a recorded successful request; use a new key for a different change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Promotion identifier. | |
| result | No | The API result when it is a list, scalar or null rather than an object. | |
| success | No | Whether the promotion was created. |