Create Alert Rule
create_alert_ruleCreates a Sentry notification workflow that sends Slack, email, PagerDuty, or other alerts when connected issue streams or monitors trigger.
Instructions
Create a Sentry Alert (notification workflow) that sends Slack, email, PagerDuty, or other notifications when its connected issue streams or monitors trigger. get_alert_options lists valid actions, conditions, and sources; update_alert_rule adds sources to an existing Alert. Monitors are separate tools: find_metric_monitors (metric thresholds), find_monitors (cron jobs), find_uptime_monitors (URL checks). After a timeout or error, search for the Alert before retrying: it may already exist.
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": {
"name": "<name>",
"actionFilters": "<actionFilters>"
},
"name": "create_alert_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| owner | No | Owner as user:<id> or team:<id>. Null clears it. | |
| status | No | active | |
| triggers | No | ||
| regionUrl | No | ||
| detectorIds | No | Monitor source IDs from get_alert_options. Pass [] for an Alert with no sources; it sends nothing until connected. An all-project source also needs org:write. | |
| environment | No | Environment the Alert applies to. Null means all environments. | |
| projectSlugs | No | Projects whose issue streams to connect. Set this, detector IDs, or both. | |
| actionFilters | Yes | Action groups with conditions and notification actions, from get_alert_options or copied from get_alert_rule. Component IDs are dropped; integration and destination IDs are kept. Pass [] for none. | |
| frequencyMinutes | No | Minimum interval between notifications, in minutes. | |
| organizationSlug | No | The organization slug, from `find_organizations`. In `org/project` notation, the part before the slash. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guidance | No | ||
| alertRule | Yes |