Skip to main content
Glama

List downtime periods

list_downtime_periods
Read-onlyIdempotent

List the outages Oh Dear recorded for a monitor, with the start and end of each one. Times are UTC. Returns the most recent outages up to the limit you set, and totals the downtime across just those, so widen the limit before drawing conclusions about a long period. See https://ohdear.app/docs/api/uptime.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of outages to return, most recent first (default: 50)
monitor_idYesThe ID of the monitor to list downtime for
ended_beforeNoOnly return outages that ended on or before this moment, as YmdHis (20241231235959) or ISO 8601
started_afterNoOnly return outages that started on or after this moment, as YmdHis (20241201120000) or ISO 8601

Output Schema

NameRequiredDescriptionDefault
filterNoNormalized date filters applied to this result.
monitorYes
view_urlYes
downtime_periodsYesRecorded downtime periods.
downtime_periods_countYes
total_downtime_in_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the bar is lower; the description still adds substantive behavior: timestamps are UTC, ordering is most-recent-first, and the aggregate downtime figure is scoped to only the returned subset. That truncation caveat is the kind of detail that prevents a wrong inference, though pagination/response shape is left to the output schema.

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?

Three tight sentences, front-loaded with what is returned and followed by the caveat that most affects interpretation. No filler, and the docs link is appended rather than displacing substance.

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?

An output schema exists, so return values need not be described, and the input schema documents all four parameters including formats. Combined with UTC, ordering, and the limit-scoping warning, an agent has everything needed to call this correctly and interpret the result.

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, but the description adds real semantics beyond the schema by tying limit to both ordering and the scope of the computed downtime total. The two date filters (ended_before, started_after) get no mention in the description, relying entirely on the schema.

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 ('List the outages Oh Dear recorded for a monitor') plus the returned fields ('start and end of each one'), which is far more than a restatement of the name. It does not explicitly contrast with the closest sibling, list_maintenance_periods, so it stops short of a 5.

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

Usage Guidelines4/5

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

Gives actionable operating guidance: results are capped by limit and the downtime total covers only the returned rows, so the agent is told to widen the limit before concluding anything about a long period. It offers no explicit when-not-to-use or alternative-tool routing, which keeps it at 4.

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.

Resources