Skip to main content
Glama

Create a maintenance window

create_maintenance_window

Create a one-time or recurring maintenance window that silences new alerts for some or all monitors during deploys or reboots, while checks keep running and no incidents open.

Instructions

Create a one-time or recurring maintenance window that silences new alerts for some or all monitors. While a window is in effect its monitors keep being checked, but no incident opens and no down or change alert goes out; a recovery alert goes out only for an incident whose down alert was already sent before the window began. Certificate and domain warnings still go out. Use it around a deploy or reboot instead of pause_monitor; it does not cover heartbeats (use pause_heartbeat). For a recurring schedule run preview_maintenance_window first. Requires a key with the write scope. The plan caps how many windows exist (403 past it or when the plan has none; see max_maintenance_windows in get_plan_usage). An invalid argument or schedule is a 422 naming it. Returns the window. Example: {"name": "Deploy", "scope": "MONITOR", "monitor_ids": [""], "dtstart": "2026-10-14T22:00:00", "duration_minutes": 30}

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": {
      "name": "<name>",
      "scope": "<scope>",
      "dtstart": "<dtstart>",
      "duration_minutes": "<duration_minutes>"
    },
    "name": "create_maintenance_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDisplay name, 1 to 255 characters.
rruleNoRepeats the window: one iCal RRULE without the RRULE: prefix, at most 1024 characters, for example FREQ=WEEKLY;BYDAY=SU;BYHOUR=3. Hourly, minutely and secondly frequencies are refused. Omit it for a one-time window.
scopeYesORG covers every monitor of the organization and ignores monitor_ids; MONITOR covers only monitor_ids.
dtstartYesThe first start, an ISO 8601 date-time in the wall-clock time of timezone, for example 2026-10-14T22:00:00. A UTC offset or Z is a 422.
enabledNoDefault true; false stores the window without effect.
timezoneNoIANA zone name such as Europe/Berlin, at most 64 characters. The schedule repeats in it, so a weekly 03:00 stays 03:00 across daylight-saving changes. Defaults to the organization's timezone.
monitor_idsNoMonitor uuids from list_monitors, at least one when scope is MONITOR. An id that is not a monitor of this organization is a 404.
duration_minutesYesHow long each occurrence lasts, 1 to 40320 minutes.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
rruleYes
scopeYesKnown values: MONITOR, ORG.
dtstartYes
enabledYes
timezoneYes
created_atYes
monitor_idsNo
duration_minutesYes
plan_disabled_atNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.8.0
    • addedOutput schema / properties / plan_disabled_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
  2. Changed9 schema fields changedv0.6.1
    • addedInput schema / properties / dtstart / description
      Added value: +"The first start, an ISO 8601 date-time in the wall-clock time of timezone, for example 2026-10-14T22:00:00. A UTC offset or Z is a 422."
    • addedInput schema / properties / duration_minutes / description
      Added value: +"How long each occurrence lasts, 1 to 40320 minutes."
    • addedInput schema / properties / enabled / description
      Added value: +"Default true; false stores the window without effect."
    • addedInput schema / properties / monitor_ids / description
      Added value: +"Monitor uuids from list_monitors, at least one when scope is MONITOR. An id that is not a monitor of this organization is a 404."
    • addedInput schema / properties / name / description
      Added value: +"Display name, 1 to 255 characters."
    • addedInput schema / properties / rrule / description
      Added value: +"Repeats the window: one iCal RRULE without the RRULE: prefix, at most 1024 characters, for example FREQ=WEEKLY;BYDAY=SU;BYHOUR=3. Hourly, minutely and secondly frequencies are refused. Omit it for a one-time window."
    • addedInput schema / properties / scope / description
      Added value: +"ORG covers every monitor of the organization and ignores monitor_ids; MONITOR covers only monitor_ids."
    • addedInput schema / properties / timezone / description
      Added value: +"IANA zone name such as Europe/Berlin, at most 64 characters. The schedule repeats in it, so a weekly 03:00 stays 03:00 across daylight-saving changes. Defaults to the organization's timezone."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "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"
      +}
  3. First observedv0.5.4

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: it explains exactly what is suppressed (no incident, no down/change alert), the recovery-alert edge case, that certificate/domain warnings still fire, the write-scope requirement, plan caps with 403, and 422 on invalid args. Only minor gap is nothing about idempotency/duplicate windows, which the annotations mark as non-idempotent.

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 purpose and effect, then usage routing, then errors. Dense but every sentence carries information; the single long paragraph is slightly harder to scan than a bulleted form.

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?

Covers purpose, side effects, prerequisites, error modes, and plan limits; an output schema exists so return values need only be named ('Returns the window'), which it does.

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 a concrete example payload and cross-references ('<id from list_monitors>') that clarify how monitor_ids and the schedule fields are sourced.

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 ('Create a one-time or recurring maintenance window') plus the effect ('silences new alerts for some or all monitors'), and explicitly distinguishes itself from pause_monitor and pause_heartbeat.

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 ('around a deploy or reboot instead of pause_monitor'), when-not-to-use (heartbeats → pause_heartbeat), and a prerequisite for the recurring case ('run preview_maintenance_window first').

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