Update alert rule
update_alert_ruleUpdates an alert rule (write scope): a threshold, the severity, enabled, or any other field sent; the rest stay. metric/operator/value are validated against the monitor type's catalog. A system rule (is_system) keeps what it watches: the Up/Down rule's condition and a type default's metric can't change (400). The response's warnings (empty when fine) says when the rule can never fire as the monitor is set up.
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": {
"monitor_id": "<monitor_id>",
"rule_id": "<rule_id>"
},
"name": "update_alert_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Rule name | |
| value | No | Threshold, as a string | |
| metric | No | Exact metric string from the catalog | |
| enabled | No | false switches the rule off, true back on | |
| regions | No | Network-distance rules only (region_scoped: true): region slugs the rule is judged from. Omitted = unchanged; null or [] = all regions. Refused on Offline and every other rule. | |
| rule_id | Yes | Alert rule id (UUID) | |
| operator | No | Comparison operator, e.g. > or in_groups | |
| severity | No | Incident severity | |
| monitor_id | Yes | Monitor id (UUID) | |
| duration_window | No | Seconds the condition must hold before the rule fires (0 = fire on the confirmed failure; omitted: the monitor's own setting on create, unchanged on update) | |
| contact_group_id | No | Contact group id this rule notifies, in addition to the monitor's own groups (null removes it on update) | |
| failure_threshold | No | Consecutive failing checks before an incident opens | |
| min_failed_probes | No | Locations that must report the failure in the same evaluation (default 1) |