Skip to main content
Glama

Get uptime for a monitor

get_uptime_summary
Read-onlyIdempotent

Report a monitor's uptime percentage, average response time, and incident count across the last 24 hours, 7 days, and 30 days to assess its reliability.

Instructions

Report one monitor's uptime percentage, average response time and incident count over the last 24 hours, 7 days and 30 days at once, to answer how reliable it has been. The three windows are rolling: they end at the call and reach back 24 hours, 7 days and 30 days, not UTC days, so a 30-day sum of get_uptime_daily can differ slightly. For a day-by-day series use get_uptime_daily; for response time per region use get_response_time_by_region; for the individual failures use list_check_results. Returns monitor_id and windows keyed 24h, 7d and 30d, each with uptime_percentage, downtime_seconds, observed_seconds, window_start (later than the window's start when the monitor is younger), total_checks, up_checks, down_checks, degraded_checks, incident_count and avg_response_time_ms. uptime_percentage is the share of observed time outside confirmed outages (an outage counts from the first failing probe to the first probe that is not DOWN; a failure only one region saw does not count; maintenance counts as up; paused time is left out; hours with no checks are left out; null when nothing was observed). The check counts are informational: a failed check outside a confirmed outage does not lower uptime_percentage. A window longer than the plan's history has null uptime_percentage and avg_response_time_ms and zero counts; get_plan_usage shows the plan's history days. With from (and optionally to) the answer has one window, keyed range, over those UTC days instead of 24h, 7d and 30d; a range entirely older than the plan's history, or ending before the monitor was created, has null uptime_percentage and avg_response_time_ms and zero counts.

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": {
      "monitor_id": "<monitor_id>"
    },
    "name": "get_uptime_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast UTC date of a calendar range, YYYY-MM-DD, inclusive; needs from. Without it, or after today, the range ends today.
fromNoFirst UTC date of a calendar range, YYYY-MM-DD, inclusive. The range is cut to the plan's history; a range entirely older than it returns no data.
monitor_idYesThe monitor's uuid from list_monitors. An id that is not a monitor of this organization, or a deleted one, is a 404.

Output Schema

NameRequiredDescriptionDefault
windowsYes
monitor_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.9.4
    • changedOutput schema / properties / windows / additionalProperties / properties / downtime_seconds / description
      Previous value: -"Seconds of confirmed downtime inside the window."New value: +"Seconds of confirmed downtime inside the window while the monitor was not paused."
    • changedOutput schema / properties / windows / additionalProperties / properties / observed_seconds / description
      Previous value: -"Seconds inside the window the monitor was observed; uptime is measured over this time. Never less than downtime_seconds."New value: +"Seconds inside the window the monitor was observed while it was not paused; uptime is measured over this time. Never less than downtime_seconds."
  2. Changed2 schema fields changedv1.9.1
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "First UTC date of a calendar range, YYYY-MM-DD, inclusive. The range is cut to the plan's history; a range entirely older than it returns no data.",
      +  "format": "date",
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "Last UTC date of a calendar range, YYYY-MM-DD, inclusive; needs from. Without it, or after today, the range ends today.",
      +  "format": "date",
      +  "type": "string"
      +}
  3. Changed4 schema fields changedv0.7.0
    • addedOutput schema / properties / windows / additionalProperties / properties / downtime_seconds
      Added value: +{
      +  "description": "Seconds of confirmed downtime inside the window.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / windows / additionalProperties / properties / observed_seconds
      Added value: +{
      +  "description": "Seconds inside the window the monitor was observed; uptime is measured over this time. Never less than downtime_seconds.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / windows / additionalProperties / properties / window_start
      Added value: +{
      +  "description": "Start of the window: the window length before now, or when the monitor was created if that is later.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / windows / additionalProperties / required
      Previous value: -[
      -  "uptime_percentage",
      -  "total_checks",
      -  "up_checks",
      -  "down_checks",
      -  "incident_count",
      -  "avg_response_time_ms"
      -]New value: +[
      +  "uptime_percentage",
      +  "total_checks",
      +  "up_checks",
      +  "down_checks",
      +  "incident_count",
      +  "avg_response_time_ms",
      +  "downtime_seconds",
      +  "observed_seconds",
      +  "window_start"
      +]
  4. Changed2 schema fields changedv0.6.1
    • addedInput schema / properties / monitor_id / description
      Added value: +"The monitor's uuid from list_monitors. An id that is not a monitor of this organization, or a deleted one, is a 404."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "monitor_id": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "windows": {
      +      "additionalProperties": {
      +        "properties": {
      +          "avg_response_time_ms": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "degraded_checks": {
      +            "type": "integer"
      +          },
      +          "down_checks": {
      +            "type": "integer"
      +          },
      +          "incident_count": {
      +            "type": "integer"
      +          },
      +          "total_checks": {
      +            "type": "integer"
      +          },
      +          "up_checks": {
      +            "type": "integer"
      +          },
      +          "uptime_percentage": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "uptime_percentage",
      +          "total_checks",
      +          "up_checks",
      +          "down_checks",
      +          "incident_count",
      +          "avg_response_time_ms"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "monitor_id",
      +    "windows"
      +  ],
      +  "type": "object"
      +}
  5. First observedv0.5.4

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses that windows are rolling rather than UTC-day aligned, that uptime excludes confirmed outages, maintenance and paused time, that a single-region failure does not count, that informational check counts do not lower uptime, and how nulls arise from plan history limits. This is unusually rich behavioral context for a read-only tool.

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?

The purpose is front-loaded and every sentence carries substantive information, with no filler. The main weakness is presentation: a dense single paragraph mixing return-value details, edge cases and sibling guidance would be easier to scan if split into short sections.

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 tool with three parameters, a real output schema and complex windowing semantics, the description covers the default behavior, the from/to override, plan-history limits and null cases. An agent can call it correctly and interpret the response without consulting another document.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds meaning the schema does not: supplying from/to changes the response from three windows to a single window keyed range over those UTC days, and a range older than plan history or before monitor creation returns null metrics with zero counts. That interaction semantics materially exceeds the schema's date-format definitions.

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?

The opening sentence states a specific verb and resource: report one monitor's uptime percentage, average response time and incident count over 24h, 7d and 30d at once. It is immediately distinguishable from siblings like get_uptime_daily and get_response_time_by_region, which are named explicitly.

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?

The description names four alternatives with the exact condition that selects each: get_uptime_daily for a day-by-day series, get_response_time_by_region for per-region response time, list_check_results for individual failures, and get_plan_usage for plan history limits. It also explains when the from/to variant applies instead of the default three windows.

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