Skip to main content
Glama

Get a maintenance window

get_maintenance_window
Read-onlyIdempotent

Retrieve a maintenance window's schedule and next three occurrences by UUID to confirm when a recurring window will fire next.

Instructions

Read one maintenance window with its schedule and its next three occurrences. It has the list_maintenance_windows fields plus next_occurrences, each with start and end. Use it to confirm when a recurring window fires next. To check a schedule before saving it use preview_maintenance_window; to find a window use list_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": {
      "window_id": "<window_id>"
    },
    "name": "get_maintenance_window"
  }
}

Input Schema

NameRequiredDescriptionDefault
window_idYesThe window's uuid from list_maintenance_windows. An id that is not a window of this organization is a 404.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
rruleYes
scopeYesKnown values: MONITOR, ORG.
dtstartYes
enabledYes
timezoneYes
created_atYes
monitor_idsNo
duration_minutesYes
next_occurrencesNo
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. Changed2 schema fields changedv0.6.1
    • 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"
      +    },
      +    "next_occurrences": {
      +      "items": {
      +        "properties": {
      +          "end": {
      +            "type": "string"
      +          },
      +          "start": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "start",
      +          "end"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "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.5/5.0
Behavior4/5

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

Annotations already declare a safe, idempotent, closed-world read. The description adds context beyond them by describing the shape of the payload (list fields plus next_occurrences with start and end), so an agent knows what it will get back. It stops short of noting limits such as what happens if fewer than three occurrences exist, which is why it is not 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the core purpose and payload shape front-loaded, followed by the routing guidance. No filler wording; every sentence carries information.

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 single-parameter read tool with full annotation coverage and an output schema, the description supplies everything needed: purpose, return shape, id source, and alternatives. No meaningful gap remains for an agent to call it correctly.

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% and the single window_id parameter is fully documented in the schema, including the uuid format and the 404 behavior for foreign ids. The description's mention of list_maintenance_windows as the id source already appears in the schema, so it adds no meaning beyond it.

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 ('Read one maintenance window') and immediately scopes the return: the window plus its schedule and next three occurrences. This clearly separates it from list_maintenance_windows and the mutating 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?

Gives an explicit use case ('confirm when a recurring window fires next') and names two alternatives with the condition that selects each: preview_maintenance_window for pre-save schedule checks and list_maintenance_windows for discovery. Nothing is left to inference.

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