Skip to main content
Glama

Get a monitor's daily uptime

get_uptime_daily
Read-onlyIdempotent

Reports one monitor's uptime for each UTC day, oldest first through today, to pinpoint the day an outage or degradation began.

Instructions

Report one monitor's uptime for each UTC day, oldest first and ending today, to find the day an outage or degradation began. Each day has date, uptime_percentage, downtime_seconds, observed_seconds, degraded_seconds, total_checks, up_checks, down_checks, degraded_checks and maintenance_checks. degraded_seconds is the day's time in confirmed DEGRADED status (an ongoing degradation counts up to now; 0 on days with no degraded time); it does not lower uptime_percentage. A day with degraded_seconds above 0 and no confirmed outage is a degraded (yellow) day in the dashboard; degraded_checks alone does not make one. uptime_percentage is the share of the day's 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); a day with no checks and no outage has a null uptime_percentage, not 100. The check counts are informational: a failed check outside a confirmed outage does not lower uptime_percentage. For 24h, 7d and 30d totals, or one total over a date range (from and to), use get_uptime_summary. For the uptime of a whole period, add up its days: 1 − sum(downtime_seconds) / sum(observed_seconds). days goes up to the plan's history (at most 1095); a larger value is clamped. With from (and optionally to) every UTC day of that range is returned instead, cut to the plan's history; a range entirely older than it returns days as an empty list. Returns monitor_id and days.

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_daily"
  }
}

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.
daysNoHow many days to return, 1 to 1095; default 30. Capped at the plan's limits.history_retention_days (get_plan_usage), so fewer days can come back. Not together with from or to.
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
daysYes
monitor_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.9.4
    • changedOutput schema / properties / days / items / properties / downtime_seconds / description
      Previous value: -"Seconds of confirmed downtime inside the day."New value: +"Seconds of confirmed downtime inside the day while the monitor was not paused."
    • changedOutput schema / properties / days / items / properties / observed_seconds / description
      Previous value: -"Seconds of the day the monitor was observed; uptime is measured over this time. Never less than downtime_seconds; 0 means no data."New value: +"Seconds of the day the monitor was observed while it was not paused; uptime is measured over this time. Never less than downtime_seconds; 0 means no data."
  2. Changed4 schema fields changedv1.9.1
    • changedInput schema / properties / days / description
      Previous value: -"How many days to return, 1 to 365; default 30. Capped at the plan's limits.history_retention_days (get_plan_usage), so fewer days can come back."New value: +"How many days to return, 1 to 1095; default 30. Capped at the plan's limits.history_retention_days (get_plan_usage), so fewer days can come back. Not together with from or to."
    • changedInput schema / properties / days / maximum
      Previous value: -365New value: +1095
    • 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. Changed1 schema field changedv1.8.0
    • changedOutput schema / properties / days / items / properties / degraded_seconds / description
      Previous value: -"Seconds of this UTC day the monitor spent in confirmed DEGRADED status (from the monitor's status history; an ongoing degradation counts up to now). Maintenance is not subtracted. Zero for days before this monitor's status history began (when the status ledger shipped)."New value: +"Seconds of this UTC day the monitor spent in confirmed DEGRADED status (from the monitor's status history; an ongoing degradation counts up to now). Maintenance is not subtracted. Zero on days with no degraded time."
  4. Changed3 schema fields changedv0.7.0
    • addedOutput schema / properties / days / items / properties / degraded_seconds
      Added value: +{
      +  "description": "Seconds of this UTC day the monitor spent in confirmed DEGRADED status (from the monitor's status history; an ongoing degradation counts up to now). Maintenance is not subtracted. Zero for days before this monitor's status history began (when the status ledger shipped).",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / days / items / properties / downtime_seconds
      Added value: +{
      +  "description": "Seconds of confirmed downtime inside the day.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / days / items / properties / observed_seconds
      Added value: +{
      +  "description": "Seconds of the day the monitor was observed; uptime is measured over this time. Never less than downtime_seconds; 0 means no data.",
      +  "type": "integer"
      +}
  5. Changed3 schema fields changedv0.6.1
    • addedInput schema / properties / days / description
      Added value: +"How many days to return, 1 to 365; default 30. Capped at the plan's limits.history_retention_days (get_plan_usage), so fewer days can come back."
    • 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": {
      +    "days": {
      +      "items": {
      +        "properties": {
      +          "date": {
      +            "type": "string"
      +          },
      +          "degraded_checks": {
      +            "type": "integer"
      +          },
      +          "down_checks": {
      +            "type": "integer"
      +          },
      +          "maintenance_checks": {
      +            "type": "integer"
      +          },
      +          "total_checks": {
      +            "type": "integer"
      +          },
      +          "up_checks": {
      +            "type": "integer"
      +          },
      +          "uptime_percentage": {
      +            "anyOf": [
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "date",
      +          "uptime_percentage",
      +          "total_checks",
      +          "up_checks",
      +          "down_checks"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "monitor_id": {
      +      "format": "uuid",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "monitor_id",
      +    "days"
      +  ],
      +  "type": "object"
      +}
  6. First observedv0.5.4

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description goes further by defining accounting rules — outages count from first failing probe to first non-DOWN probe, single-region failures don't count, maintenance counts as up, paused and check-less hours are excluded, and null is returned instead of 100 — which is genuinely valuable behavior beyond the annotations. The lower score reflects that these are semantic/domain rules rather than operational traits like pagination or rate limits, though the clamping and empty-list notes partially cover that gap.

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 in the first clause and every sentence carries substantive content, but the body is a dense run of nested parentheticals that is harder to scan than it needs to be. Some of the field enumeration (date, total_checks, up_checks...) overlaps what the output schema already supplies, so a little trimming would help.

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 read-only, four-parameter reporting tool with an output schema, the definition covers the counting rules, edge cases (null uptime, degraded-but-not-down days, empty ranges, clamping), the alternative tool, and how to derive period totals. Nothing an agent needs in order to call it correctly or interpret the response is missing.

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; the description nonetheless adds meaning the schema only hints at, such as 'days goes up to the plan's history (at most 1095); a larger value is clamped' and that a range entirely older than the plan history returns an empty days list. It reinforces the mutual exclusivity of days versus from/to, adding moderate value over the structured fields.

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 ('Report one monitor's uptime'), the granularity (each UTC day), the ordering (oldest first, ending today) and the intent (find the day an outage or degradation began). It also explicitly routes period-level questions to get_uptime_summary, so an agent can separate it from the closest sibling without opening a 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 (locating the start day of an outage or degradation), explicit when-to-use-the-alternative ('For 24h, 7d and 30d totals, or one total over a date range, use get_uptime_summary'), and even the aggregation recipe (1 − sum(downtime_seconds)/sum(observed_seconds)) for period uptime. It also clarifies the days-vs-from/to selection and the clamping/empty-list outcomes, leaving nothing to inference.

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