Update Alert Rule
update_alert_ruleModify an existing Sentry alert's name, status, owner, environment, frequency, triggers, notification actions, and connected projects or monitors while leaving omitted fields unchanged.
Instructions
Update a Sentry Alert (notification workflow): name, status, owner, environment, notification frequency, triggers, notification actions, and connected projects or monitors. Read it with get_alert_rule first; get_alert_options lists valid actions, conditions, and sources. Omitted fields stay unchanged. Metric Monitor queries and thresholds change with update_metric_monitor; cron and uptime monitors have their own tools.
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": {
"ruleIdOrName": "<ruleIdOrName>"
},
"name": "update_alert_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| owner | No | Owner as user:<id> or team:<id>. Null clears it. | |
| status | No | ||
| triggers | No | Complete trigger group, copied from get_alert_rule. Keep existing condition IDs; omitted conditions are removed. | |
| regionUrl | No | ||
| environment | No | Environment the Alert applies to. Null means all environments. | |
| projectSlug | No | ||
| ruleIdOrName | Yes | Alert workflow ID from get_alert_rule, or exact Alert name. Digits are treated as an ID. | |
| actionFilters | No | Complete list of action groups with their conditions and notification actions, copied from get_alert_rule. Keep IDs and unchanged entries; omitted groups, conditions, and actions are removed. | |
| addDetectorIds | No | Monitor source IDs to connect, from get_alert_options sources. An all-project source also needs org:write. | |
| addProjectSlugs | No | Projects whose issue streams to connect. | |
| 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. | |
| removeDetectorIds | No | Monitor source IDs to disconnect. | |
| removeProjectSlugs | No | Projects whose issue streams to disconnect. Other monitors in those projects stay connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alertRule | Yes |