Skip to main content
Glama
mcp-uptime-kuma

mcp-uptime-kuma

List Heartbeats

listHeartbeats
Read-only

Retrieves Uptime Kuma heartbeat history for one or all monitors, summarizing status changes, response times, and outages so you can see whether and when a monitor went down and if it recovered.

Instructions

Returns check history (status, response time, message), newest first, keyed by monitor ID: for one monitor when monitorID is given, otherwise for every monitor. Only the latest beat per monitor is returned unless maxHeartbeats is set (up to 100). For more than one beat it returns a summary per monitor instead of the rows: the time span, counts by status, ping min/avg/max, the latest beat and since when it has had that status, and each period of DOWN beats with its first message. That answers whether and when it went down, why, and whether it is back; pass raw: true only when the user wants the individual beats. important: true returns only the status changes for one monitor, which is history and not the current status. For current status use getMonitorSummary. Credentials inside a message URL read "***" unless includeSecrets is set.

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": "listHeartbeats"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoReturn the individual beats instead of the summary when maxHeartbeats is more than 1 (default: false). Only when the user wants the beats themselves; then keep maxHeartbeats at 10 or less for one monitor and 5 or less for all, unless asked for more.
importantNoReturn only IMPORTANT beats — the status changes behind Uptime Kuma's event list — fetched live from the server rather than the cache. Needs monitorID. History only: the newest important beat is not the monitor's current status.
monitorIDNoThe monitor to read. Omit for every monitor. Find IDs with listMonitors.
maxHeartbeatsNoHow many of the most recent beats to return per monitor, up to 100 (default: 1)
includeSecretsNoReturn credentials in full instead of "***"; they then stay in the transcript. Default: false, or UPTIME_KUMA_INCLUDE_SECRETS.

Output Schema

NameRequiredDescriptionDefault
summariesNoMap of monitor IDs to a summary of their beats; a monitor with no beats is left out. Returned for more than one beat, unless raw.
heartbeatsNoMap of monitor IDs to their heartbeats, newest first. Returned for one beat, with raw, or with important.
monitorCountYes
totalHeartbeatCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.17.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / important
      Added value: +{
      +  "description": "Return only IMPORTANT beats — the status changes behind Uptime Kuma's event list — fetched live from the server rather than the cache. Needs monitorID. History only: the newest important beat is not the monitor's current status.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / includeSecrets / description
      Previous value: -"Return credentials in full instead of \"***\". Off by default: this output is persisted in conversation transcripts and logs. Can also be enabled globally with UPTIME_KUMA_INCLUDE_SECRETS=true."New value: +"Return credentials in full instead of \"***\"; they then stay in the transcript. Default: false, or UPTIME_KUMA_INCLUDE_SECRETS."
    • changedInput schema / properties / maxHeartbeats / description
      Previous value: -"If set, returns the most recent X heartbeats per monitor (up to 100). If unset, returns only the most recent heartbeat per monitor (default: 1)"New value: +"How many of the most recent beats to return per monitor, up to 100 (default: 1)"
    • addedInput schema / properties / monitorID
      Added value: +{
      +  "description": "The monitor to read. Omit for every monitor. Find IDs with listMonitors.",
      +  "exclusiveMinimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / raw
      Added value: +{
      +  "description": "Return the individual beats instead of the summary when maxHeartbeats is more than 1 (default: false). Only when the user wants the beats themselves; then keep maxHeartbeats at 10 or less for one monitor and 5 or less for all, unless asked for more.",
      +  "type": "boolean"
      +}
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / heartbeats / description
      Previous value: -"Map of monitor IDs to their heartbeat arrays"New value: +"Map of monitor IDs to their heartbeats, newest first. Returned for one beat, with raw, or with important."
    • addedOutput schema / properties / summaries
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "beats": {
      +        "description": "How many beats are summarised",
      +        "type": "number"
      +      },
      +      "counts": {
      +        "additionalProperties": {
      +          "type": "number"
      +        },
      +        "description": "Beats per status (up, down, pending, maintenance); a status with none is left out",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "downPeriods": {
      +        "description": "Each run of DOWN beats, newest first",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "beats": {
      +              "description": "How many DOWN beats in a row",
      +              "type": "number"
      +            },
      +            "end": {
      +              "description": "Time of the first beat after it that was not DOWN; absent if still down",
      +              "type": "string"
      +            },
      +            "msg": {
      +              "description": "Message of the first DOWN beat",
      +              "type": "string"
      +            },
      +            "start": {
      +              "description": "Time of the first DOWN beat",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "start",
      +            "beats"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "from": {
      +        "description": "Time of the oldest beat summarised, UTC with no zone marker; latest.time is the newest",
      +        "type": "string"
      +      },
      +      "latest": {
      +        "additionalProperties": false,
      +        "description": "The newest beat",
      +        "properties": {
      +          "msg": {
      +            "type": "string"
      +          },
      +          "since": {
      +            "description": "When the monitor entered this status, if that is within the beats summarised",
      +            "type": "string"
      +          },
      +          "status": {
      +            "description": "up, down, pending or maintenance",
      +            "type": "string"
      +          },
      +          "time": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "time",
      +          "status"
      +        ],
      +        "type": "object"
      +      },
      +      "ping": {
      +        "additionalProperties": false,
      +        "description": "Response time in ms over the beats that have one",
      +        "properties": {
      +          "avg": {
      +            "type": "number"
      +          },
      +          "max": {
      +            "type": "number"
      +          },
      +          "min": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "min",
      +          "avg",
      +          "max"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "from",
      +      "beats",
      +      "counts",
      +      "latest"
      +    ],
      +    "type": "object"
      +  },
      +  "description": "Map of monitor IDs to a summary of their beats; a monitor with no beats is left out. Returned for more than one beat, unless raw.",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "heartbeats",
      -  "monitorCount",
      -  "totalHeartbeatCount"
      -]New value: +[
      +  "monitorCount",
      +  "totalHeartbeatCount"
      +]
  2. Changed3 schema fields changedv0.13.0
    • removedInput schema / properties / count
      Removed value: -{
      -  "description": "Alias for maxHeartbeats. Prefer maxHeartbeats.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 100,
      -  "type": "integer"
      -}
    • removedInput schema / properties / limit
      Removed value: -{
      -  "description": "Alias for maxHeartbeats. Prefer maxHeartbeats.",
      -  "exclusiveMinimum": 0,
      -  "maximum": 100,
      -  "type": "integer"
      -}
    • addedOutput schema / properties / heartbeats / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv0.11.15
    • removedOutput schema / properties / heartbeats / additionalProperties / items / properties / msg / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "array"
      -  }
      -]
    • addedOutput schema / properties / heartbeats / additionalProperties / items / properties / msg / type
      Added value: +"string"
  4. Changed5 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 / count
      Added value: +{
      +  "description": "Alias for maxHeartbeats. Prefer maxHeartbeats.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 100,
      +  "type": "integer"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Alias for maxHeartbeats. Prefer maxHeartbeats.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 100,
      +  "type": "integer"
      +}
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / heartbeats / additionalProperties / items / properties / time / description
      Previous value: -"Timestamp"New value: +"Timestamp, in UTC as \"YYYY-MM-DD HH:mm:ss.SSS\". Uptime Kuma sends no zone marker, so compare against the current UTC time, not local time."
  5. First observedv0.0.0-dev

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the substantive traits: newest-first ordering, cache-vs-live fetch for important beats, summarization instead of rows above one beat, and the specific summary contents (time span, status counts, ping min/avg/max, DOWN periods with first message). It also discloses that credentials in a message URL are redacted as "***" unless includeSecrets is set, which has real data-exposure consequences.

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

Conciseness4/5

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

Front-loaded with the scope rule and default behavior, then the alternative-tool routing; no filler sentences. The enumeration of summary fields is long and slightly run-on, but each clause carries decision-relevant information, so it is dense rather than padded.

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?

A read-only list tool with an output schema, five fully described parameters, and no required arguments is fully covered: scope, defaults, caps, flag interactions, redaction, and the correct sibling for the adjacent need are all present.

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, and the description goes beyond it by explaining the interaction between raw and maxHeartbeats (raw only matters above one beat) and the recommended beat caps (10 for one monitor, 5 for all). It largely restates the includeSecrets and important semantics already in the schema, which keeps it from a 5.

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 (check history keyed by monitor ID) plus the exact scoping rule: one monitor when monitorID is given, otherwise every monitor. It explicitly names and rules out the sibling getMonitorSummary for current status, so an agent can pick correctly without opening either 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 explicit when-to-use branches: pass raw:true only when the user wants the individual beats, use important:true only for status changes on a single monitor, and use getMonitorSummary for current status. It also states the default behavior (latest beat only) and the cap of 100, so the agent knows what happens without flags.

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