Skip to main content
Glama

List maintenance windows

list_maintenance_periods
Read-onlyIdempotent

List the one-off maintenance windows on a monitor, the ones with a fixed start and end. Alerts are suppressed while a window is active. For windows that repeat on a schedule, use list_recurring_maintenance_periods instead. Times are in the team timezone. See https://ohdear.app/docs/api/maintenance-windows.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of windows to return (default: 50). Upcoming windows come back soonest first; past ones most recent first.
monitor_idYesThe ID of the monitor to list maintenance windows for
only_active_or_upcomingNoOnly return windows that are running now or start in the future

Output Schema

NameRequiredDescriptionDefault
monitorYes
view_urlYes
team_timezoneYes
maintenance_periodsYesOne-off maintenance periods.
maintenance_periods_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: alerts are suppressed while a window is active, and all times are in the team timezone — the latter being critical for interpreting returned timestamps. It stops short of describing result shape, but an output schema exists for that.

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?

Front-loaded with the definition and scope, followed by the behavioral fact and then the sibling routing. Every sentence carries information; the trailing docs URL is a small but useful addition rather than filler.

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 filtered read-only list tool with full schema coverage and an output schema, the description covers purpose, scope boundary, sibling alternative, timezone semantics, and the alerts-suppressed implication. Nothing an agent needs to call this correctly is missing.

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 description coverage is 100%, so all three parameters (limit, monitor_id, only_active_or_upcoming) are already documented, including the limit's sort ordering. The description adds only the timezone note, which is relevant but not tied to any specific parameter. Baseline 3 applies when the schema carries the parameter burden.

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 ("List the one-off maintenance windows on a monitor") and immediately bounds the scope with "the ones with a fixed start and end," which distinguishes it from the recurring sibling without requiring the agent to open either 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?

Explicitly routes the agent: "For windows that repeat on a schedule, use list_recurring_maintenance_periods instead." That names the alternative and the exact condition that selects it, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources