Update Metric Monitor
update_metric_monitorModify an existing Sentry metric monitor's query, detection conditions, name, owner, status, or linked Alerts while preserving omitted fields.
Instructions
Update a Sentry Metric Monitor: its query, detection mode and conditions, name, owner, status, or connected Alerts. Omitted fields stay unchanged. Read it with get_metric_monitor_details first. Alert notification actions change with update_alert_rule. Cron jobs: find_monitors. URL checks: find_uptime_monitors.
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": {
"monitorId": "<monitorId>"
},
"name": "update_metric_monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| owner | No | Owner as user:<id> or team:<id>. Null clears it. | |
| query | No | Query fields to change; omitted fields are kept and a null environment clears the filter. A new dataset needs a matching aggregate and eventTypes. | |
| config | No | Detection config fields to change. Static and Dynamic clear the comparison delta; a new detection type needs a matching condition group. | |
| status | No | ||
| monitorId | Yes | Metric Monitor ID from find_metric_monitors, not a legacy metric alert ID. | |
| regionUrl | No | ||
| description | No | ||
| projectSlug | No | The project slug. In `org/project` notation, the part after the slash. | |
| workflowIds | No | Alert workflow IDs to connect; replaces the current list. Copy IDs to keep from get_metric_monitor_details; [] disconnects all. The Alerts are not edited. | |
| conditionGroup | No | Replaces all detection conditions; keep existing IDs. Static and Percent use threshold conditions, including a resolved one. Dynamic uses one anomaly_detection condition. | |
| organizationSlug | No | The organization slug, from `find_organizations`. In `org/project` notation, the part before the slash. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monitor | Yes |