Skip to main content
Glama
mcp-uptime-kuma

mcp-uptime-kuma

Update Monitor

updateMonitor
DestructiveIdempotent

Update an existing Uptime Kuma monitor without replacing it: change only the fields you pass, convert types in place while keeping ID and history, or preserve stored credentials by returning "***".

Instructions

Updates an existing monitor. Only the fields you pass change; the rest keep their stored values. Passing a different type converts the monitor in place, keeping its ID and history, and needs the new type's required fields, passed here or already stored. Type-specific fields go in typeFields: call getMonitorTypeFields for them. A credential sent back as "***" keeps its stored value. Read the current configuration with getMonitor; to only stop or restart checks use setMonitorActive.

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": {
      "monitorID": "<monitorID>"
    },
    "name": "updateMonitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL to monitor
bodyNoHTTP request body
nameNoDisplay name
portNoPort number
tagsNoTags to assign
typeNoNew monitor type: converts the monitor in place. Pass the new type's required fields in the same call. A group cannot be converted.
activeNoWhether the monitor is active
methodNoHTTP method
parentNoParent group monitor ID — re-parents this monitor into that group. Pass null to move it to the top level.
headersNoHTTP headers as JSON string
keywordNoKeyword to search for
timeoutNoRequest timeout in seconds. Avoid 0: Uptime Kuma turns a stored 0 into a timeout of about 13 hours, so the monitor never reports DOWN.
hostnameNoHostname
intervalNoCheck interval in seconds (min: 1)
jsonPathNoJSONata expression for json-query monitors. Must resolve to a primitive.
ignoreTlsNoIgnore TLS/SSL errors
monitorIDYesThe ID of the monitor to update
pushTokenNoPush token — the secret in the ping URL. Changing it invalidates the existing URL and any sender still using it stops beating.
maxretriesNoMax retries before marking as down
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
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
databaseQueryNoQuery a database monitor runs
expectedValueNoThreshold the json-query result is compared against, stored as a string.
invertKeywordNoInvert keyword match
retryIntervalNoRetry interval in seconds (min: 1)
radiusPasswordNoThe RADIUS password (radius). Sending "***" back keeps the stored value.
resendIntervalNoResend notification every N checks while down (0 = disabled)
databasePasswordNoPassword for mysql monitors. Sending "***" back keeps the stored value.
dns_resolve_typeNoDNS record type to query (dns and globalping)
docker_containerNoDocker container name (required for docker type)
jsonPathOperatorNoComparison operator for json-query monitors.
dns_resolve_serverNoDNS server to use for resolution (for dns type)
expiryNotificationNoNotify before the TLS certificate expires (http, keyword, json-query, globalping)
notificationIDListNoNotification ID map
accepted_statuscodesNoAccepted HTTP status codes
databaseConnectionStringNoConnection string for the database monitor types. Sending "***" back keeps the stored value.
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
pushURLNoOnly when the type was changed to push. The URL the sender should GET.
monitorIDNo
pushTokenNoOnly when the type was changed to push. The token, generated if the monitor had none.
authMethodNoOnly when authMethod was inferred from the credentials passed. The method that was stored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 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. A credential: read tools return \"***\", and sending \"***\" back keeps the stored value."New value: +"Connection string for the database monitor types. Sending \"***\" back keeps the stored value."
    • changedInput schema / properties / databasePassword / description
      Previous value: -"Password for mysql monitors, stored by Uptime Kuma as radiusPassword. Sending \"***\" back keeps the stored value."New value: +"Password for mysql monitors. Sending \"***\" back keeps the stored value."
    • changedInput schema / properties / databaseQuery / description
      Previous value: -"Query for database monitors. SQL for mysql, postgres, sqlserver and oracledb; a JSON command object for mongodb."New value: +"Query a database monitor runs"
    • changedInput schema / properties / dns_resolve_type / description
      Previous value: -"DNS record type to query, for dns and globalping. Which types each supports: getMonitorTypeFields"New value: +"DNS record type to query (dns and globalping)"
    • 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 / 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). Sending \"***\" back keeps the stored value."
    • changedInput schema / properties / timeout / description
      Previous value: -"Request timeout in SECONDS. Avoid 0 — Uptime Kuma's runtime fallback for a stored 0 yields a ~13 hour timeout, so the monitor can never report DOWN against a black-holed endpoint."New value: +"Request timeout in seconds. Avoid 0: Uptime Kuma turns a stored 0 into a timeout of about 13 hours, so the monitor never reports DOWN."
    • changedInput schema / properties / type / description
      Previous value: -"Change the monitor type in place (e.g. ping -> http), keeping its ID, history and notifications. Pass the fields the new type needs in the same call (e.g. url for http). A group cannot be converted. Use listMonitorTypes for all options."New value: +"New monitor type: converts the monitor in place. Pass the new type's required fields in the same call. A group cannot be converted."
    • 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."
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed28 schema fields changedv0.13.0
    • changedInput schema / properties / databaseConnectionString / description
      Previous value: -"Connection string for mysql, postgres, mongodb, redis and sqlserver monitors. A credential: read tools return \"***\", and sending \"***\" back keeps the stored value."New value: +"Connection string for mysql, postgres, mongodb, redis, sqlserver and oracledb monitors. A credential: read tools return \"***\", and sending \"***\" back keeps the stored value."
    • changedInput schema / properties / databaseQuery / description
      Previous value: -"Query for database monitors. SQL for mysql, postgres and sqlserver; a JSON command object for mongodb."New value: +"Query for database monitors. SQL for mysql, postgres, sqlserver and oracledb; a JSON command object for mongodb."
    • 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 (for dns type)"New value: +"DNS record type to query, for dns and globalping. 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 / interval / description
      Previous value: -"Check interval in seconds"New value: +"Check interval in seconds (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 / parentID
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Alias for parent. Prefer parent."
      -}
    • removedInput schema / properties / parent_id
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Alias for parent. Prefer parent."
      -}
    • 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"New value: +"Retry interval in seconds (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"
      -  }
      -]
    • addedInput schema / properties / timeout / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "Change the monitor type in place (e.g. ping -> http), keeping its ID, history and notifications. Pass the fields the new type needs in the same call (e.g. url for http). A group cannot be converted. Use listMonitorTypes for all options.",
      +  "type": "string"
      +}
    • 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"
      +}
    • addedOutput schema / properties / authMethod
      Added value: +{
      +  "description": "Only when authMethod was inferred from the credentials passed. The method that was stored.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pushToken
      Added value: +{
      +  "description": "Only when the type was changed to push. The token, generated if the monitor had none.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pushURL
      Added value: +{
      +  "description": "Only when the type was changed to push. The URL the sender should GET.",
      +  "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. A credential: read tools return \"***\", and sending \"***\" back keeps the stored value.",
      +  "type": "string"
      +}
    • addedInput schema / properties / databasePassword
      Added value: +{
      +  "description": "Password for mysql monitors, stored by Uptime Kuma as radiusPassword. Sending \"***\" back keeps the stored value.",
      +  "type": "string"
      +}
    • addedInput schema / properties / databaseQuery
      Added value: +{
      +  "description": "Query for database monitors. SQL for mysql, postgres and sqlserver; a JSON command object for mongodb.",
      +  "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. Changed4 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 / 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.9/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true, but the description adds material behavior they cannot: merge semantics (only passed fields change), in-place type conversion preserving ID and history, the "***" credential sentinel, and that a different type needs its required fields supplied or already stored. These are exactly the consequences an agent must know before mutating a live monitor.

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 tight sentences, front-loaded with the update semantics before the conversion rules and sibling routing. No filler and no repetition of positional or type information already in the schema.

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 40-parameter, nested-object mutation tool this is complete: partial-update rule, conversion prerequisites, credential handling, and pointers to getMonitor, getMonitorTypeFields, and setMonitorActive are all present, and an output schema already covers return values.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema cannot convey on its own: the type/typeFields coupling, the ordering requirement for required fields during conversion, and that getMonitor surfaces type fields at the top level. The "***" convention is also summarized centrally rather than only on three individual string properties.

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 ('Updates an existing monitor') immediately, and the rest of the text scopes it against update-of-whole-object, conversion, and activation-change interpretations. An agent can separate it from getMonitor, createMonitor, and setMonitorActive without opening any 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?

Explicit routing: read the current configuration with getMonitor, use setMonitorActive for stop/restart only, and call getMonitorTypeFields for type-specific fields. It also states when conversion applies and what it requires, so the when/when-not decision is fully covered.

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