Skip to main content
Glama

One site's maintenance windows: on now, scheduled, and the last 30 days

sites_by_slug_maintenance
Read-onlyIdempotent

Wraps GET /api/sites/{slug}/maintenance. One site's maintenance windows: on now, scheduled, and the last 30 days. Call this to see whether a site is in a maintenance window (its alerts held, its uptime not counting that time) and when the next one is. Windows are started from the dashboard or a deploy calling the site's maintenance URL (POST /start?minutes=30, POST /end), which the dashboard shows to admins.

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": {
      "slug": "<slug>"
    },
    "name": "sites_by_slug_maintenance"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYessite slug, as in /api/sites

Output Schema

NameRequiredDescriptionDefault
dataNo
next_stepsNocalls that usually come next, each naming its tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / data / properties / windows / items / properties / startsAt / description
      Added value: +"when it starts (ISO 8601, UTC)"
    • addedOutput schema / properties / data / properties / windows / items / properties / state / description
      Added value: +"not started yet, on now, or over"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered structurally. The description adds real semantic context beyond that: during a window a site's alerts are held and its uptime is not counted, which tells the agent how to interpret the result. It does not discuss pagination, result size, or error behavior for an unknown slug, so the added value is meaningful but bounded.

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?

The scope statement is front-loaded and the use trigger follows immediately, with no filler. The trailing sentence about POST <url>/start and /end is slightly tangential but earns its place by clarifying that window creation is not performed by this tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 rich annotations and an output schema, the description covers purpose, use trigger, and the meaning of a maintenance window. Nothing essential is missing, though a note on what happens for an unknown slug or an empty window list would close the last gap.

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?

There is a single required parameter with 100% schema description coverage ('site slug, as in /api/sites'), so the schema already carries the semantics and a baseline 3 applies. The description adds nothing about slug format, case sensitivity, or behavior when the slug is unknown, so it does not exceed the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete resource and scope ('One site's maintenance windows: on now, scheduled, and the last 30 days') and grounds it in the underlying endpoint (GET /api/sites/{slug}/maintenance), so an agent knows exactly what it retrieves. It implicitly separates itself from the start/end siblings by stating that windows are started from the dashboard or a deploy URL rather than here, though it never names those sibling tools directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit trigger: 'Call this to see whether a site is in a maintenance window ... and when the next one is.' That is a clear use context with no ambiguity about intent. It stops short of an explicit exclusion or a named alternative for starting/ending windows, which keeps it below a 5.

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