Create Monitor
createMonitorCreates a new Uptime Kuma monitor from a name, monitor type, and required type-specific fields, rejecting incomplete configurations before saving.
Instructions
Creates a new monitor from a name, a type and the fields that type requires. Choose the type with listMonitorTypes, preferring one made for the service over a generic port check, then call getMonitorTypeFields for its required and optional fields, their defaults and where each is passed. A create that lacks a required field is refused rather than saved as a monitor that fails every check. A push monitor's generated token and ping URL are returned. To change an existing monitor use updateMonitor.
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": {
"name": "<name>",
"type": "<type>"
},
"name": "createMonitor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to check (http, keyword, json-query and other URL-based types) | |
| body | No | HTTP request body | |
| name | Yes | Display name for the monitor | |
| port | No | Port number (port, and other types that take one) | |
| tags | No | Tags to assign to the monitor | |
| type | Yes | Monitor type (e.g. http, port, ping, dns, push, keyword). Use listMonitorTypes for all options. | |
| active | No | Whether the monitor starts checking immediately (default: true). Pass false to create it paused. | |
| method | No | HTTP method (GET, POST, etc.) for http type | |
| parent | No | Parent group monitor ID | |
| headers | No | HTTP headers as JSON string | |
| keyword | No | Keyword to search for (keyword monitor type) | |
| timeout | No | Request timeout in seconds. Omit for the type's default, which getMonitorTypeFields gives. Avoid 0: Uptime Kuma turns a stored 0 into a timeout of about 13 hours, so the monitor never reports DOWN. | |
| hostname | No | Hostname or IP address to check (port, ping, dns and most non-HTTP types) | |
| interval | No | Check interval in seconds (default: 60, or 300 for ntp; min: 1) | |
| jsonPath | No | JSONata expression for json-query monitors. Must resolve to a primitive. | |
| ignoreTls | No | Ignore TLS/SSL errors | |
| pushToken | No | Push token for push monitors — the secret in the ping URL. Omit and one is generated and returned. | |
| maxretries | No | Max retries before marking as down (default: 0) | |
| typeFields | No | Type-specific fields, e.g. {"mqttTopic": "sensors/#"} for mqtt or {"bearer_token": "…"} for HTTP with auth. getMonitorTypeFields names them for a type; an unknown name is refused. getMonitor returns them at the top level. | |
| upsideDown | No | Invert status — treat up as down | |
| description | No | Free-text description shown on the monitor page | |
| docker_host | No | Docker host ID (required for docker type). Use listDockerHosts to find available IDs. | |
| maxredirects | No | Max HTTP redirects (default: 10) | |
| databaseQuery | No | Query a database monitor runs. Omit for the type's default. | |
| expectedValue | No | Threshold the json-query result is compared against. Stored as a string. | |
| invertKeyword | No | Invert keyword match | |
| retryInterval | No | Retry interval in seconds when monitor is down (default: the interval, min: 1) | |
| radiusPassword | No | The RADIUS password (radius). A credential. | |
| resendInterval | No | Resend notification every N checks while down (0 = disabled, the default) | |
| databasePassword | No | Password for mysql monitors, if not in the connection string. A credential. | |
| dns_resolve_type | No | DNS record type to query (dns and globalping; default: A) | |
| docker_container | No | Docker container name (required for docker type) | |
| jsonPathOperator | No | Comparison operator for json-query monitors. UP while value <operator> expectedValue. | |
| dns_resolve_server | No | DNS server to use for resolution (required for dns type, default: 1.1.1.1) | |
| expiryNotification | No | Notify before the TLS certificate expires (http, keyword, json-query, globalping) | |
| notificationIDList | No | Map of notification IDs to enable (e.g. {"1": true, "3": true}) | |
| accepted_statuscodes | No | Accepted HTTP status codes (e.g. ["200-299"]) | |
| databaseConnectionString | No | Connection string for the database monitor types. A credential. | |
| domainExpiryNotification | No | Notify before the domain registration expires. Needs Uptime Kuma 2.1 or later, and not every domain can be watched: see checkDomainExpirySupport. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| msg | No | ||
| pushURL | No | Push monitors only. The URL the sender should GET. | |
| timeout | No | The timeout in seconds actually stored, including the default applied when omitted. | |
| monitorID | No | ||
| pushToken | No | Push monitors only. The token, so the sender can be wired up without a second, wider read. | |
| authMethod | No | Only when authMethod was inferred from the credentials passed. The method that was stored. |