Create an alert
create_alertNotify someone when a goal completes or a payment arrives. trigger: a goal name (see list_goals) or "payment". channel: email (target = an email address), or webhook, slack or discord (target = an https:// URL). At most 20 per site. Pass idempotency_key so that a retry does not add a second alert.
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": {
"trigger": "<trigger>",
"channel": "<channel>",
"target": "<target>"
},
"name": "create_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| target | Yes | ||
| channel | Yes | ||
| enabled | No | ||
| message | No | Custom message. Same variables. Leave out for the default. | |
| subject | No | Custom subject (email). Variables: {{goal}}, {{amount}}, {{country}}, {{source}}, {{path}}, {{site}}. Leave out for the default. | |
| trigger | Yes | ||
| idempotency_key | No | A fresh UUID for this create. Send the same value when you retry the same call: the first result comes back and nothing is created twice. |