List Heartbeats
listHeartbeatsRetrieves 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
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | 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. | |
| important | No | 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. | |
| monitorID | No | The monitor to read. Omit for every monitor. Find IDs with listMonitors. | |
| maxHeartbeats | No | How many of the most recent beats to return per monitor, up to 100 (default: 1) | |
| includeSecrets | No | Return credentials in full instead of "***"; they then stay in the transcript. Default: false, or UPTIME_KUMA_INCLUDE_SECRETS. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summaries | No | 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. | |
| heartbeats | No | Map of monitor IDs to their heartbeats, newest first. Returned for one beat, with raw, or with important. | |
| monitorCount | Yes | ||
| totalHeartbeatCount | Yes |