Skip to main content
Glama

List maintenance windows

list_maintenance_windows
Read-onlyIdempotent

Lists all organization maintenance windows, enabled or not and in effect or not, so you can find a window ID or audit schedules before checking active silences.

Instructions

List every maintenance window of the organization, enabled or not, in effect or not. Each has id, name, enabled, scope (ORG or MONITOR), dtstart, duration_minutes, rrule, timezone, monitor_ids, created_at and plan_disabled_at (set when a plan drop switched the window off: it silences nothing). Use it to find a window's id. To learn whether alerts are silenced right now use list_active_maintenance; for a window's upcoming occurrences use get_maintenance_window. Returns a page: items plus total, page, size and pages.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_maintenance_windows"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoCase-insensitive substring of the name, up to 255 characters.
pageNoPage number, 1 or more; default 1.
sizeNoRows per page, 1 to 100; default 25. Keep paging until you have seen total rows.
sortNocreated_at (the default, newest first) or name.

Output Schema

NameRequiredDescriptionDefault
pageYes
sizeYes
itemsYes
pagesYes
totalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.8.0
    • addedOutput schema / properties / items / items / properties / plan_disabled_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed5 schema fields changedv0.6.1
    • addedInput schema / properties / page / description
      Added value: +"Page number, 1 or more; default 1."
    • addedInput schema / properties / q / description
      Added value: +"Case-insensitive substring of the name, up to 255 characters."
    • addedInput schema / properties / size / description
      Added value: +"Rows per page, 1 to 100; default 25. Keep paging until you have seen total rows."
    • addedInput schema / properties / sort / description
      Added value: +"created_at (the default, newest first) or name."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "items": {
      +      "items": {
      +        "properties": {
      +          "created_at": {
      +            "type": "string"
      +          },
      +          "dtstart": {
      +            "type": "string"
      +          },
      +          "duration_minutes": {
      +            "type": "integer"
      +          },
      +          "enabled": {
      +            "type": "boolean"
      +          },
      +          "id": {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          "monitor_ids": {
      +            "items": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "rrule": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "scope": {
      +            "description": "Known values: MONITOR, ORG.",
      +            "type": "string"
      +          },
      +          "timezone": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "enabled",
      +          "scope",
      +          "dtstart",
      +          "duration_minutes",
      +          "rrule",
      +          "timezone",
      +          "created_at"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "page": {
      +      "type": "integer"
      +    },
      +    "pages": {
      +      "type": "integer"
      +    },
      +    "size": {
      +      "type": "integer"
      +    },
      +    "total": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "items",
      +    "total",
      +    "page",
      +    "size",
      +    "pages"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.5.4

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so safety is covered. The description adds non-obvious behavior the annotations cannot: that all windows are returned regardless of enabled state, the meaning of plan_disabled_at ('it silences nothing'), and the paged return shape. It does not discuss permissions or volume limits, keeping it short of a 5.

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?

Scope and the returned field list are front-loaded, then alternatives, then the page shape -- a sensible order with no filler sentences. The long inline field enumeration is dense but each name carries information; it is slightly heavy for a list tool and could be trimmed if the output schema already covers fields.

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-optional-parameter list tool with full schema coverage, annotations and an output schema, nothing an agent needs is missing. Return values are partly described and otherwise handled by the output schema, and the sibling routing removes the remaining ambiguity.

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%, with q, page, size and sort each documented including defaults and the 1-100 bound on size, so the baseline is 3. The description mentions paging only at the output level ('items plus total, page, size and pages') and adds no new meaning about filtering or sort order beyond the schema.

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 description opens with a specific verb and resource plus an explicit scope: 'List every maintenance window of the organization, enabled or not, in effect or not.' It also enumerates the fields returned, so an agent knows exactly what class of object it gets back and can distinguish this from the getter and active-silence siblings.

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?

It gives a positive use case ('Use it to find a window's id') and names two alternatives with the conditions that select them: list_active_maintenance for 'alerts silenced right now' and get_maintenance_window for 'upcoming occurrences'. That is explicit when-to-use and when-not-to-use guidance.

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