Create monitor
create_monitorCreate a monitor for an existing app to check HTTP, TCP, SSL, DNS, heartbeat, Stripe, or Supabase targets; use provision_app first for a new app.
Instructions
Create one monitor in an existing app; for a new app use provision_app instead. type decides what target is and which config keys apply: http takes a URL with method, expect, keyword, slowMs, assertions and headers; tcp a hostname or public IP with port, tls and slowMs; ssl a hostname and no config; dns a record name with record and expected; heartbeat ignores target and takes schedule, tz, graceMin, maxRunMin and assertions, so give it a name; supabase a project URL with key and databaseRead; stripe https://api.stripe.com with key, endpoints, critical, failureThreshold, windowMin and pendingMin. A key belonging to another type is refused. Validation, public-address checks and plan quotas match the dashboard, and Stripe and Supabase checks must verify before saving. Returns a first test result but never a heartbeat's URL, which the dashboard shows. Supply request_id for safe retries. Needs write access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App id from list_monitors, get_status or provision_app. | |
| name | No | Monitor name. Without one, Staygreen picks a default (a heartbeat's is "Scheduled job"), which this tool does not return; list_monitors shows it. | |
| type | Yes | Monitor type. MCP server monitors are not available yet. | |
| config | No | Settings for the chosen type only. Unknown keys and settings for other types are refused. | |
| target | Yes | HTTP or Supabase URL, SSL hostname, TCP hostname or public IP, or DNS record name. HTTP(S) URL hostnames may be at most 80 characters. Stripe uses https://api.stripe.com; a heartbeat ignores it. | |
| request_id | Yes | A new UUID for this write. Retry with the same UUID and identical inputs after a lost reply; never reuse it for another operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monitor | Yes | ||
| first_check | Yes |