Skip to main content
Glama

Update a maintenance window

update_maintenance_window
Idempotent

Modify a maintenance window's name, schedule, scope, monitors or enabled state, changing only the fields you pass. Use it to silence alerts during planned work or to switch a window off.

Instructions

Change one maintenance window's name, schedule, scope or monitors, or switch it off with enabled false; only the fields you pass change. 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. A recurring window cannot become one-time: delete it with delete_maintenance_window and create a new one. Check a new schedule with preview_maintenance_window first. Requires a key with the write scope. An invalid argument is a 422 and a resulting schedule that is invalid (for example a bad rrule) a 406, each with the reason. A window with plan_disabled_at set was switched off by a plan drop: any update of it is refused (403) until the plan has room, and a successful one switches it back on. Returns the window. Example: {"window_id": "", "enabled": false}

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": {
      "window_id": "<window_id>"
    },
    "name": "update_maintenance_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay 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.
scopeNoORG covers every monitor of the organization and ignores monitor_ids; MONITOR covers only monitor_ids.
dtstartNoThe 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.
enabledNofalse keeps the window but stops it silencing alerts.
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.
window_idYesThe window's uuid from list_maintenance_windows. An id that is not a window of this organization is a 404.
monitor_idsNoReplaces the list when passed. 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.
duration_minutesNoHow 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. Changed10 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: +"false keeps the window but stops it silencing alerts."
    • addedInput schema / properties / monitor_ids / description
      Added value: +"Replaces the list when passed. 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."
    • 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."
    • addedInput schema / properties / window_id / description
      Added value: +"The window's uuid from list_maintenance_windows. An id that is not a window of this organization is a 404."
    • 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.4/5.0
Behavior3/5

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

Annotations already state readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is largely covered; the description nevertheless adds real context the annotations cannot: alert suppression during the window, the recovery-alert exception, cert/domain warnings still firing, and the plan_disabled_at 403/auto-reenable behavior. It does not contradict destructiveHint=false, since disabling and renaming are reversible. Lowered from a top score only because the runtime drop is a narrow, secondary signal rather than core behavioral disclosure.

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 mutation and patch semantics, then behavior, then error codes, then an example — a sensible order with no filler. The alert-behavior sentence is a long multi-clause run-on (window suppression, recovery exception, cert/domain warnings) that costs some readability, keeping it below 5.

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 9-parameter mutation with an output schema, the description covers prerequisites (write scope), failure modes with status codes (422, 406, 403, 404), the plan-drop refusal path and its auto-reenable follow-on, and points to the return value. An agent has everything needed to call it correctly and interpret failures.

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?

With 100% schema coverage the schema already documents every field, including formats and the RRULE restriction, so the baseline is 3. The description still adds meaning beyond the schema: the partial-update contract ("only the fields you pass change") which tells the agent omitted fields are preserved rather than cleared, plus a concrete call example keyed to list_maintenance_windows output.

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?

Names a specific verb and resource plus the exact mutable fields ("name, schedule, scope or monitors, or switch it off with enabled false") and states PATCH-style semantics: "only the fields you pass change." It also distinguishes itself from siblings by naming delete_maintenance_window and preview_maintenance_window in their respective conditions.

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-not guidance (a recurring window cannot become one-time — delete and recreate instead) and a recommended precondition ("Check a new schedule with preview_maintenance_window first"). It also states the required credential (key with write scope), so an agent knows before calling whether it is eligible.

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