Create uptime monitor
create_uptime_monitorWatch whether a website, API, keyword on a page, TCP port or cron job is up, and alert the moment it goes down and when it is back. Use it for 'tell me when example.com goes down', 'monitor my API every minute', 'check that my homepage still says Add to cart', 'watch port 5432 on db.example.com' and 'my backup should ping you every night'. With kind 'email' it watches a domain's email records (MX, SPF, DKIM, DMARC) for 'tell me if our email setup breaks' or 'watch our SPF and DMARC'. Not for changes in a page's content (prices, new posts): that is create_monitor. Monity checks from its own servers every 30 seconds to an hour, retries a failure twice (3 and 6 seconds later) before calling it down, warns before an HTTPS certificate expires, and sends alerts (down, back up with how long, certificate, slow, reminders) to the task's channels, email to the workspace by default. It is a task: it counts against the plan's active tasks. Returns the monitor with its interval, credits a month and link; a heartbeat monitor also returns the URL its job must call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_uptime_monitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The address: https://… for 'http' and 'keyword' (a bare domain gets https://), a host name such as db.example.com for 'port' and 'dns'. A heartbeat needs none: it is only its label. | |
| kind | No | What to check: 'http' (default) requests the address and is down when the HTTP status is outside expectedStatus, the request fails or times out, or the certificate is invalid; 'keyword' also reads the response and is down when keyword is missing (or present, with keywordMode 'absent'); 'port' opens a TCP connection to the host in url on port; 'dns' looks up the host's records of dnsRecordType (through public resolvers) and is down when there are none or they lack a value in dnsExpected; 'email' (the Email preset: url is the domain of the email addresses, example.com) watches its MX, SPF, DMARC and DKIM records: at setup Monity looks them up, tries the usual DKIM selectors (plus emailSelectors), keeps what it finds as the baseline, and alerts when one disappears, changes or becomes invalid (two SPF records, more than 10 SPF lookups, +all, a DMARC record without p=, a revoked DKIM key); refused when the domain has no email records; 'heartbeat' checks nothing itself: the person's job (a cron, a backup) calls the monitor's secret heartbeat URL, and it is down when no call arrives within the interval plus graceSeconds. | |
| name | No | Its name (defaults to the host, with the port for a port monitor) | |
| port | No | port monitors: the TCP port (5432 for PostgreSQL, 443, 22…); the host is url. | |
| labels | No | Label names to file it under; existing labels are reused. | |
| method | No | The HTTP method (GET by default; HEAD for a lighter check, not with a keyword). | |
| keyword | No | keyword monitors: the text the response must contain (or must not, with keywordMode 'absent'), case-insensitive, e.g. 'Add to cart'. | |
| ignoreTls | No | Accept an invalid or self-signed certificate (a staging server); default false. Expiry is still watched. | |
| assertions | No | http and keyword monitors: checks on the answer that must all pass, e.g. [{source:'json', path:'$.status', op:'equals', value:'ok'}] for an API health endpoint. [] removes them. | |
| dnsExpected | No | dns monitors: values the answer must include (an address, a host name, an MX host, a TXT string); none means any answer will do. | |
| keywordMode | No | keyword monitors: 'contains' (default) is down when the keyword is missing, 'absent' when it appears (e.g. 'Error' or 'Out of stock'). | |
| workspaceId | No | Workspace to create it in (from list_workspaces); defaults to the person’s personal workspace. | |
| graceSeconds | No | heartbeat monitors: how late a call may be before it is down: 60, 300 (default), 900, 1800, 3600 or 21600. | |
| dnsRecordType | No | dns monitors: the record type to look up (A by default). | |
| sslExpiryDays | No | HTTPS: warn this many days before the certificate expires: 0 (off), 3, 7, 14 (default) or 30. | |
| emailSelectors | No | email monitors: DKIM selectors to watch, the s= of a sent message's DKIM-Signature header (selector1, google, k1). On create they are tried with the usual ones; only those that answer with a key are kept. Leave it out unless the person names one. | |
| expectedStatus | No | HTTP codes that count as up: '200-399' by default; codes, ranges and '2xx' separated by commas ('200,401'). | |
| timeoutSeconds | No | Give up after this many seconds: 5, 10, 15, 30 (default), 45 or 60. | |
| alertOnRecovery | No | Send an alert when it is back up, with how long it was down (default true). | |
| followRedirects | No | Follow redirects, up to five (default true); false counts a 3xx against expectedStatus. | |
| intervalSeconds | No | How often, in seconds: 30, 60, 120, 300, 600, 900, 1800 or 3600; a heartbeat also 21600, 43200 or 86400, matching how often its job runs (86400 for nightly). Never faster than the plan allows (the error names what it allows). Leave it out unless the person names a speed: the default is every minute, or the plan's fastest when that is slower, and a day for a heartbeat. 1,000 checks use 1 credit: every minute is about 44 credits a month, 30 seconds about 87, 5 minutes about 9. | |
| slowThresholdMs | No | Alert when three checks in a row take longer than this many milliseconds (100 to 60000); 0 (default) is off. | |
| domainExpiryDays | No | Warn this many days before the domain's registration expires: 0 (off), 7, 14, 30 (default) or 60. Checked once a day where the registry offers it. | |
| alertAfterSeconds | No | Hold the down alert until it has been down this long: 0 (default, as soon as a failure is confirmed), 60, 120, 300, 600, 900, 1800 or 3600. | |
| remindEverySeconds | No | Repeat the down alert while it stays down: 0 (default, never), 900, 1800, 3600, 10800, 21600 or 86400. | |
| keywordCaseSensitive | No | keyword monitors: match upper and lower case exactly (default false). |