Create Cron Monitor
create_monitorSet up a Sentry cron monitor to alert on missed, failed, or slow runs of a scheduled job. The job must send check-ins using the returned slug.
Instructions
Create a Sentry cron monitor that alerts on missed, failed, or slow runs of a scheduled job. Uptime URL checks: find_uptime_monitors. Metric thresholds: find_metric_monitors. The job must send check-ins with the returned slug (SDK monitor config or sentry monitor run). A disabled status you did not request means no cron seat was free: tell the user; it ignores check-ins until enabled. After an error or timeout, check find_monitors before retrying.
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": {
"projectSlug": "<projectSlug>",
"name": "<name>",
"schedule": "<schedule>"
},
"name": "create_monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Monitor display name. | |
| slug | No | Slug that check-ins use. Derived from the name when omitted. | |
| owner | No | Owner as `user:ID` or `team:ID`. | |
| status | No | Monitor status. Disabled monitors ignore check-ins. | |
| schedule | Yes | Job schedule: a crontab, or an interval such as every 15 minutes. | |
| timezone | No | tz database timezone for the schedule, e.g. `UTC`. | |
| regionUrl | No | ||
| maxRuntime | No | Minutes a check-in may stay in progress before it fails. | |
| projectSlug | Yes | The project slug. In `org/project` notation, the part after the slash. | |
| workflowIds | No | Alert workflow IDs to connect, from find_alert_rules with `issue`. | |
| checkInMargin | No | Minutes after the expected time before a check-in counts as missed. Sentry treats 0 as 1. | |
| organizationSlug | No | The organization slug, from `find_organizations`. In `org/project` notation, the part before the slash. | |
| recoveryThreshold | No | Consecutive successful check-ins before the issue resolves. | |
| failureIssueThreshold | No | Consecutive failed or missed check-ins before an issue opens. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monitor | Yes |