Skip to main content
Glama
mcp-uptime-kuma

mcp-uptime-kuma

Create Monitor

createMonitor

Creates 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

NameRequiredDescriptionDefault
urlNoURL to check (http, keyword, json-query and other URL-based types)
bodyNoHTTP request body
nameYesDisplay name for the monitor
portNoPort number (port, and other types that take one)
tagsNoTags to assign to the monitor
typeYesMonitor type (e.g. http, port, ping, dns, push, keyword). Use listMonitorTypes for all options.
activeNoWhether the monitor starts checking immediately (default: true). Pass false to create it paused.
methodNoHTTP method (GET, POST, etc.) for http type
parentNoParent group monitor ID
headersNoHTTP headers as JSON string
keywordNoKeyword to search for (keyword monitor type)
timeoutNoRequest 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.
hostnameNoHostname or IP address to check (port, ping, dns and most non-HTTP types)
intervalNoCheck interval in seconds (default: 60, or 300 for ntp; min: 1)
jsonPathNoJSONata expression for json-query monitors. Must resolve to a primitive.
ignoreTlsNoIgnore TLS/SSL errors
pushTokenNoPush token for push monitors — the secret in the ping URL. Omit and one is generated and returned.
maxretriesNoMax retries before marking as down (default: 0)
typeFieldsNoType-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.
upsideDownNoInvert status — treat up as down
descriptionNoFree-text description shown on the monitor page
docker_hostNoDocker host ID (required for docker type). Use listDockerHosts to find available IDs.
maxredirectsNoMax HTTP redirects (default: 10)
databaseQueryNoQuery a database monitor runs. Omit for the type's default.
expectedValueNoThreshold the json-query result is compared against. Stored as a string.
invertKeywordNoInvert keyword match
retryIntervalNoRetry interval in seconds when monitor is down (default: the interval, min: 1)
radiusPasswordNoThe RADIUS password (radius). A credential.
resendIntervalNoResend notification every N checks while down (0 = disabled, the default)
databasePasswordNoPassword for mysql monitors, if not in the connection string. A credential.
dns_resolve_typeNoDNS record type to query (dns and globalping; default: A)
docker_containerNoDocker container name (required for docker type)
jsonPathOperatorNoComparison operator for json-query monitors. UP while value <operator> expectedValue.
dns_resolve_serverNoDNS server to use for resolution (required for dns type, default: 1.1.1.1)
expiryNotificationNoNotify before the TLS certificate expires (http, keyword, json-query, globalping)
notificationIDListNoMap of notification IDs to enable (e.g. {"1": true, "3": true})
accepted_statuscodesNoAccepted HTTP status codes (e.g. ["200-299"])
databaseConnectionStringNoConnection string for the database monitor types. A credential.
domainExpiryNotificationNoNotify before the domain registration expires. Needs Uptime Kuma 2.1 or later, and not every domain can be watched: see checkDomainExpirySupport.

Output Schema

NameRequiredDescriptionDefault
okYes
msgNo
pushURLNoPush monitors only. The URL the sender should GET.
timeoutNoThe timeout in seconds actually stored, including the default applied when omitted.
monitorIDNo
pushTokenNoPush monitors only. The token, so the sender can be wired up without a second, wider read.
authMethodNoOnly when authMethod was inferred from the credentials passed. The method that was stored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.17.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / databaseConnectionString / description
      Previous value: -"Connection string for mysql, postgres, mongodb, redis, sqlserver and oracledb monitors (required for those types). For oracledb the login goes in basic_auth_user and basic_auth_pass. A credential: read tools return it as \"***\" unless includeSecrets is set."New value: +"Connection string for the database monitor types. A credential."
    • changedInput schema / properties / databasePassword / description
      Previous value: -"Password for mysql monitors, if not inline in the connection string. Stored by Uptime Kuma as radiusPassword. A credential: read tools return it as \"***\"."New value: +"Password for mysql monitors, if not in the connection string. A credential."
    • changedInput schema / properties / databaseQuery / description
      Previous value: -"Query for database monitors. SQL for mysql, postgres and sqlserver (default: SELECT 1) and oracledb (default: SELECT 1 FROM DUAL); a JSON command object for mongodb (default: {\"ping\": 1})."New value: +"Query a database monitor runs. Omit for the type's default."
    • changedInput schema / properties / dns_resolve_type / description
      Previous value: -"DNS record type to query, for dns and globalping (default: A). Which types each supports: getMonitorTypeFields"New value: +"DNS record type to query (dns and globalping; default: A)"
    • changedInput schema / properties / domainExpiryNotification / description
      Previous value: -"Notify before the domain registration expires (most types with a url or hostname; see getMonitorTypeFields). Needs Uptime Kuma 2.1 or later."New value: +"Notify before the domain registration expires. Needs Uptime Kuma 2.1 or later, and not every domain can be watched: see checkDomainExpirySupport."
    • changedInput schema / properties / hostname / description
      Previous value: -"Hostname or IP address to check (required for port, ping and dns, and most non-HTTP types — see getMonitorTypeFields)"New value: +"Hostname or IP address to check (port, ping, dns and most non-HTTP types)"
    • changedInput schema / properties / port / description
      Previous value: -"Port number (required for port; see getMonitorTypeFields for other types)"New value: +"Port number (port, and other types that take one)"
    • changedInput schema / properties / radiusPassword / description
      Previous value: -"The RADIUS password (required for radius). Also the column databasePassword and typeFields.snmpCommunity are stored in — prefer those names for mysql and snmp."New value: +"The RADIUS password (radius). A credential."
    • changedInput schema / properties / timeout / description
      Previous value: -"Request timeout in SECONDS. Omit for the web form's default: 48, or 10 for ping, 5 for snmp and 1 for kafka-producer, at most 0.8 x interval. Avoid 0: Uptime Kuma's runtime fallback for a stored 0 computes interval * 1000 * 0.8 and then multiplies by 1000 again, yielding a ~13 hour timeout, so the monitor can never report DOWN against a host that accepts the connection and never answers. Push and group monitors do not use it; a 0 stored on one of those is harmless."New value: +"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."
    • changedInput schema / properties / typeFields / description
      Previous value: -"Fields specific to the monitor type, e.g. {\"mqttTopic\": \"sensors/#\"} for mqtt or {\"bearer_token\": \"…\"} for an HTTP monitor behind authentication. Call getMonitorTypeFields with the type for the names, meanings and allowed values — they are validated, and an unknown name is refused. getMonitor returns these fields at the top level of the monitor; to change one, pass it here."New value: +"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."
    • changedInput schema / properties / url / description
      Previous value: -"URL to monitor (required for http, keyword and json-query; other types that need it are listed by getMonitorTypeFields)"New value: +"URL to check (http, keyword, json-query and other URL-based types)"
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed29 schema fields changedv0.13.0
    • changedInput schema / properties / databaseConnectionString / description
      Previous value: -"Connection string for mysql, postgres, mongodb, redis and sqlserver monitors (required for those types). A credential: read tools return it as \"***\" unless includeSecrets is set."New value: +"Connection string for mysql, postgres, mongodb, redis, sqlserver and oracledb monitors (required for those types). For oracledb the login goes in basic_auth_user and basic_auth_pass. A credential: read tools return it as \"***\" unless includeSecrets is set."
    • changedInput schema / properties / databaseQuery / description
      Previous value: -"Query for database monitors. SQL for mysql, postgres and sqlserver (default: SELECT 1); a JSON command object for mongodb (default: {\"ping\": 1})."New value: +"Query for database monitors. SQL for mysql, postgres and sqlserver (default: SELECT 1) and oracledb (default: SELECT 1 FROM DUAL); a JSON command object for mongodb (default: {\"ping\": 1})."
    • removedInput schema / properties / database_connection_string
      Removed value: -{
      -  "description": "Alias for databaseConnectionString (the database column name). Prefer databaseConnectionString.",
      -  "type": "string"
      -}
    • removedInput schema / properties / database_query
      Removed value: -{
      -  "description": "Alias for databaseQuery (the database column name). Prefer databaseQuery.",
      -  "type": "string"
      -}
    • changedInput schema / properties / dns_resolve_type / description
      Previous value: -"DNS record type to query (required for dns type, default: A)"New value: +"DNS record type to query, for dns and globalping (default: A). Which types each supports: getMonitorTypeFields"
    • changedInput schema / properties / dns_resolve_type / enum
      Previous value: -[
      -  "A",
      -  "AAAA",
      -  "CNAME",
      -  "MX",
      -  "NS",
      -  "PTR",
      -  "SOA",
      -  "SRV",
      -  "TXT",
      -  "CAA"
      -]New value: +[
      +  "A",
      +  "AAAA",
      +  "ANY",
      +  "CAA",
      +  "CNAME",
      +  "DNSKEY",
      +  "DS",
      +  "HTTPS",
      +  "MX",
      +  "NS",
      +  "NSEC",
      +  "PTR",
      +  "RRSIG",
      +  "SOA",
      +  "SRV",
      +  "SVCB",
      +  "TXT"
      +]
    • addedInput schema / properties / domainExpiryNotification
      Added value: +{
      +  "description": "Notify before the domain registration expires (most types with a url or hostname; see getMonitorTypeFields). Needs Uptime Kuma 2.1 or later.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / expected_value
      Removed value: -{
      -  "description": "Alias for expectedValue. Prefer expectedValue.",
      -  "type": "string"
      -}
    • addedInput schema / properties / expiryNotification
      Added value: +{
      +  "description": "Notify before the TLS certificate expires (http, keyword, json-query, globalping)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / hostname / description
      Previous value: -"Hostname to monitor (required for port/ping/dns types)"New value: +"Hostname or IP address to check (required for port, ping and dns, and most non-HTTP types — see getMonitorTypeFields)"
    • changedInput schema / properties / interval / description
      Previous value: -"Check interval in seconds (default: 60)"New value: +"Check interval in seconds (default: 60, or 300 for ntp; min: 1)"
    • addedInput schema / properties / interval / minimum
      Added value: +1
    • removedInput schema / properties / json_path
      Removed value: -{
      -  "description": "Alias for jsonPath (the database column name). Prefer jsonPath.",
      -  "type": "string"
      -}
    • removedInput schema / properties / json_path_operator
      Removed value: -{
      -  "description": "Alias for jsonPathOperator. Prefer jsonPathOperator.",
      -  "enum": [
      -    ">",
      -    ">=",
      -    "<",
      -    "<=",
      -    "==",
      -    "!=",
      -    "contains"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / notificationIDList / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / parent / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / parent / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedInput schema / properties / port / description
      Previous value: -"Port number (required for port/tcp types)"New value: +"Port number (required for port; see getMonitorTypeFields for other types)"
    • removedInput schema / properties / push_token
      Removed value: -{
      -  "description": "Alias for pushToken (the database column name). Prefer pushToken.",
      -  "minLength": 8,
      -  "type": "string"
      -}
    • changedInput schema / properties / radiusPassword / description
      Previous value: -"The column databasePassword is stored in; also the RADIUS password. Prefer databasePassword for mysql."New value: +"The RADIUS password (required for radius). Also the column databasePassword and typeFields.snmpCommunity are stored in — prefer those names for mysql and snmp."
    • changedInput schema / properties / retryInterval / description
      Previous value: -"Retry interval in seconds when monitor is down (default: 60)"New value: +"Retry interval in seconds when monitor is down (default: the interval, min: 1)"
    • addedInput schema / properties / retryInterval / minimum
      Added value: +1
    • removedInput schema / properties / tags / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / timeout / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / timeout / description
      Previous value: -"Request timeout in SECONDS. Omit for 0.8 x interval. Avoid 0: Uptime Kuma's runtime fallback for a stored 0 computes interval * 1000 * 0.8 and then multiplies by 1000 again, yielding a ~13 hour timeout, so the monitor can never report DOWN against a host that accepts the connection and never answers."New value: +"Request timeout in SECONDS. Omit for the web form's default: 48, or 10 for ping, 5 for snmp and 1 for kafka-producer, at most 0.8 x interval. Avoid 0: Uptime Kuma's runtime fallback for a stored 0 computes interval * 1000 * 0.8 and then multiplies by 1000 again, yielding a ~13 hour timeout, so the monitor can never report DOWN against a host that accepts the connection and never answers. Push and group monitors do not use it; a 0 stored on one of those is harmless."
    • addedInput schema / properties / timeout / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • addedInput schema / properties / typeFields
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Fields specific to the monitor type, e.g. {\"mqttTopic\": \"sensors/#\"} for mqtt or {\"bearer_token\": \"…\"} for an HTTP monitor behind authentication. Call getMonitorTypeFields with the type for the names, meanings and allowed values — they are validated, and an unknown name is refused. getMonitor returns these fields at the top level of the monitor; to change one, pass it here.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / url / description
      Previous value: -"URL to monitor (required for http/keyword/json-query types)"New value: +"URL to monitor (required for http, keyword and json-query; other types that need it are listed by getMonitorTypeFields)"
    • addedOutput schema / properties / authMethod
      Added value: +{
      +  "description": "Only when authMethod was inferred from the credentials passed. The method that was stored.",
      +  "type": "string"
      +}
  3. Changed6 schema fields changedv0.12.1
    • addedInput schema / properties / databaseConnectionString
      Added value: +{
      +  "description": "Connection string for mysql, postgres, mongodb, redis and sqlserver monitors (required for those types). A credential: read tools return it as \"***\" unless includeSecrets is set.",
      +  "type": "string"
      +}
    • addedInput schema / properties / databasePassword
      Added value: +{
      +  "description": "Password for mysql monitors, if not inline in the connection string. Stored by Uptime Kuma as radiusPassword. A credential: read tools return it as \"***\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / databaseQuery
      Added value: +{
      +  "description": "Query for database monitors. SQL for mysql, postgres and sqlserver (default: SELECT 1); a JSON command object for mongodb (default: {\"ping\": 1}).",
      +  "type": "string"
      +}
    • addedInput schema / properties / database_connection_string
      Added value: +{
      +  "description": "Alias for databaseConnectionString (the database column name). Prefer databaseConnectionString.",
      +  "type": "string"
      +}
    • addedInput schema / properties / database_query
      Added value: +{
      +  "description": "Alias for databaseQuery (the database column name). Prefer databaseQuery.",
      +  "type": "string"
      +}
    • addedInput schema / properties / radiusPassword
      Added value: +{
      +  "description": "The column databasePassword is stored in; also the RADIUS password. Prefer databasePassword for mysql.",
      +  "type": "string"
      +}
  4. Changed6 schema fields changedv0.11.9
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / parent / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / parent / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • addedInput schema / properties / timeout / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / timeout / type
      Removed value: -[
      -  "number",
      -  "null"
      -]
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  5. First observedv0.0.0-dev

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare the write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the remaining burden is small, and the description still adds real behavior: a create missing a required field is refused rather than stored as a permanently failing monitor, and a push monitor's token and ping URL are returned. It does not touch permissions or what happens on a duplicate name, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the create action, then the type-discovery workflow, then the failure mode, then the return payload, then the update hand-off. Every sentence carries an instruction an agent must act on; no restated schema or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 39-parameter creation tool with an output schema, the definition supplies exactly what the schema cannot: which sibling tools resolve the type and its fields, the validation failure mode, and the push-token return. Return values are already covered by the output schema, so nothing essential is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 39 parameters already carry inline documentation, establishing a baseline of 3. The description adds genuine meaning only for typeFields (unknown names are refused; getMonitor surfaces them at the top level) and otherwise defers to getMonitorTypeFields, so it does not meaningfully exceed the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Creates a new monitor") plus the exact input basis (name, type, type-required fields). It explicitly separates itself from updateMonitor and names the sibling tools needed to discover the type, so an agent can distinguish it without opening another schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an ordered procedure: pick the type with listMonitorTypes, prefer a service-specific type over a generic port check, then call getMonitorTypeFields for required/optional fields and their defaults. It also names the condition that selects the alternative ("To change an existing monitor use updateMonitor"). Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.