Set up a monitor
setup_monitorCreate or update ONE heartbeat, job, or check monitor from a human description, by stable key. Accepts human schedules like 'every 30 minutes', applies presets, checks plan limits, and returns the ping URL. Prefer this over create_monitors unless you already have exact API-shaped monitor objects or need to create many at once. Over the plan's monitor limit, the monitor is saved disabled and the response adds monitor_quota; tell the human.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Stable monitor key used for idempotent updates. | |
| url | No | Public URL, or host:port for the port preset. | |
| body | No | HTTP request body for a check. | |
| tags | No | Additional tags; via:mcp is always added. | |
| type | Yes | Monitor type. | |
| notify | No | Notification destinations or notification-list keys. | |
| preset | No | Build a TCP port check. | |
| headers | No | HTTP request headers for a check. | |
| schedule | No | Cron expression or interval such as 'every 30 minutes'. | |
| timezone | No | IANA timezone for cron schedules, e.g. America/Los_Angeles. Defaults to the account's timezone (see get_setup_context). Only accepted for job and heartbeat monitors. | |
| assertions | No | Check assertions such as 'response.code = 200'. | |
| grace_seconds | No | Additional seconds allowed for expected runs, completions, or heartbeats before schedule alerts. Also extends maximum-duration limits for jobs. Does not delay explicit fail events. Only accepted for job and heartbeat monitors; omit for checks. | |
| request_method | No | HTTP verb the check sends to the URL, such as GET or POST. |