Skip to main content
Glama

Monitor history

get_monitor_history
Read-only

One monitor's history over a window (1h/24h/7d/30d): uptime, latency series, a per-region split of the same window, failures with error text, and incident windows. Pass region to narrow it to one probe region and tell a partial outage from a total one. Read-only.

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": {
      "id": "<id>",
      "window": "<window>"
    },
    "name": "get_monitor_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe monitor id (from `list_monitors`).
regionNoNarrow uptime, the latency series, and the region breakdown to one probe region (an id the monitor is assigned to, from `get_monitor.regions`). Omit for every region together.
windowYesTime window: `1h`, `24h`, `7d`, or `30d`.

Output Schema

NameRequiredDescriptionDefault
regionNoThe region this answer was narrowed to, or `null` for all of them.
uptimeNoUptime percentage over the window. `null` when the window holds no checks — that is unknown, not zero. Unfiltered it counts confirmed incidents; under a `region` filter it is that region's raw check rate, so the two are not comparable.
regionsYesPer-region split of the same window, so a partial outage is visible. Always every region the monitor runs in, including under a `region` filter, and empty when it runs in only one. Regions that ran no checks in the window are omitted.
failuresYesConfirmed failures on the monitor as a whole. A `region` filter does not narrow these: an incident is raised for the monitor, not per region.
incidentsYesIncident windows on the monitor as a whole, unnarrowed by `region` for the same reason as `failures`.
latency_seriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / regions / description
      Previous value: -"Per-region split of the same window, so a partial outage is visible.\nAlways every region the monitor runs in, including under a `region`\nfilter, and empty when it runs in only one. Regions that ran no checks\nin the window are omitted; this reads per-minute data, which is kept for\n30 days, so at the far edge of a `30d` window a region can be short of\nsamples or absent while the headline numbers still cover it."New value: +"Per-region split of the same window, so a partial outage is visible.\nAlways every region the monitor runs in, including under a `region`\nfilter, and empty when it runs in only one. Regions that ran no checks\nin the window are omitted."
  2. Changed3 schema fields changed
    • addedOutput schema / $defs / IncidentWindow / properties / paused
      Added value: +{
      +  "description": "Stretches inside the window the monitor was paused in, so nothing\nchecked it. The incident stays open across them; `uptime` does not\ncount them.",
      +  "items": {
      +    "$ref": "#/$defs/PausedStretch"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / $defs / IncidentWindow / required
      Previous value: -[
      -  "opened_at",
      -  "counts_as_downtime",
      -  "impact",
      -  "recovered"
      -]New value: +[
      +  "opened_at",
      +  "counts_as_downtime",
      +  "impact",
      +  "recovered",
      +  "paused"
      +]
    • addedOutput schema / $defs / PausedStretch
      Added value: +{
      +  "description": "A stretch an incident's monitor was paused in.",
      +  "properties": {
      +    "from": {
      +      "description": "RFC 3339 start.",
      +      "type": "string"
      +    },
      +    "until": {
      +      "description": "RFC 3339 end, when it was resumed, or `null` while still paused.",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "from"
      +  ],
      +  "type": "object"
      +}
  3. Changed6 schema fields changed
    • changedOutput schema / $defs / IncidentWindow / properties / counts_as_downtime / description
      Previous value: -"`false` when this window is listed but explains none of the `uptime` gap."New value: +"`false` when this window is listed but kept out of `uptime`."
    • addedOutput schema / $defs / IncidentWindow / properties / impact
      Added value: +{
      +  "description": "`major_outage`, `partial_outage` or `degraded`. A counted window\nexplains the `uptime` gap by it: a major outage in full, a partial\noutage for 30% of its length, a degraded one not at all.",
      +  "type": "string"
      +}
    • addedOutput schema / $defs / IncidentWindow / properties / recovered
      Added value: +{
      +  "description": "Stretches inside the window the monitor was back up in before the\nfailure returned. `uptime` does not count them.",
      +  "items": {
      +    "$ref": "#/$defs/RecoveredStretch"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / $defs / IncidentWindow / properties / recovering_since
      Added value: +{
      +  "description": "RFC 3339 moment the monitor came back up while the incident waits out\nits recovery period. `uptime` stops counting the window here.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / $defs / IncidentWindow / required
      Previous value: -[
      -  "opened_at",
      -  "counts_as_downtime"
      -]New value: +[
      +  "opened_at",
      +  "counts_as_downtime",
      +  "impact",
      +  "recovered"
      +]
    • addedOutput schema / $defs / RecoveredStretch
      Added value: +{
      +  "description": "A stretch an incident was back up in.",
      +  "properties": {
      +    "from": {
      +      "description": "RFC 3339 start.",
      +      "type": "string"
      +    },
      +    "until": {
      +      "description": "RFC 3339 end, when the failure came back.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "from",
      +    "until"
      +  ],
      +  "type": "object"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / $defs / IncidentWindow / properties / counts_as_downtime
      Added value: +{
      +  "description": "`false` when this window is listed but explains none of the `uptime` gap.",
      +  "type": "boolean"
      +}
    • changedOutput schema / $defs / IncidentWindow / required
      Previous value: -[
      -  "opened_at"
      -]New value: +[
      +  "opened_at",
      +  "counts_as_downtime"
      +]
  5. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations supply readOnlyHint=true and the description merely restates it as 'Read-only.', which earns no credit. The valuable addition is the disclosure of the result facets (uptime, latency series, failures with error text, incident windows), though it says nothing about pagination, data retention for the 30d window, or query cost.

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?

Two sentences, front-loaded with the core purpose and scope, then the actionable region rule, then a one-word safety marker. Every clause carries information and nothing is repeated verbatim from the schema except the window enum list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full schema description coverage, the description need not restate return shapes, yet it does give a useful content overview plus the partial-vs-total outage framing. Remaining gaps - window anchoring and retention, behavior when a monitor has no data in the window - are minor for a read-only history query.

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

Parameters3/5

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

Schema coverage is 100% and already documents id, region (with the get_monitor.regions pointer), and the four window values, so the baseline is 3. The description does add one interpretive layer the schema lacks - that region isolates a probe to tell a partial outage from a total one - but leaves the window semantics (relative to now, retention limits) untouched.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('One monitor's history over a window') and enumerates exactly what comes back: uptime, latency series, per-region split, failures with error text, incident windows. It implicitly separates itself from get_monitor by being time-series rather than configuration, but it never names a sibling to contrast with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives one concrete usage rule: pass `region` to narrow to one probe region and to distinguish a partial outage from a total one. There is no guidance on when to prefer this over get_monitor or get_incident_metrics, and no stated prerequisites or exclusions beyond the window choices.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.