Skip to main content
Glama

Compare monitors before and after a deploy

verify_deploy
Read-onlyIdempotent

Compare monitor checks before and after a deploy without running new checks, returning PASS, REGRESSED, FAIL, or INSUFFICIENT_DATA verdicts per region.

Instructions

Compare monitors before and after a deploy, without running any check. For each monitor it compares the checks since since with the 24 hours before it, per region, and returns verdict PASS, REGRESSED (most regions slower or failing more than in the baseline, or one region failing), FAIL (most regions failing now, or an incident whose first failing check is at or after since) or INSUFFICIENT_DATA (too few checks yet: wait retry_after_seconds and call again; or too little history: say so and stop). These verdicts are not monitor statuses: REGRESSED is not the DEGRADED of list_monitors. Checks run inside a maintenance window count by their result. Each monitor lists its regions with check counts, the median latency since the deploy and the baseline p95 (for HTTP monitors the comparison uses time to first byte when both sides have it; each region's latency_metric says which), plus incidents_since, changes_since (outside changes such as DNS or certificate) and needs_fresh_checks (call check_now on it before retrying). Paused monitors come back in skipped, and deploy markers near since in deploy_markers. Select monitors with monitor_ids or with tag (+ tag_match), never both, at most 100. check_now allows 10 calls a minute, so with many monitors call check_now first on those whose interval_seconds is over 60: the faster ones fill up on their own schedule. Pass the same since on every retry. When retry_after_seconds is null, stop: it turns null 15 minutes after since at the latest. The tool only reads: for fresh points call check_now first. A 5xx on a large selection that repeats after one retry means the check is too large: pass fewer monitors or a later since. Limited to 10 calls per minute per calling address for an API key, per user for an app connection (never per key or organization); past that it is a 429 with the seconds to wait. Example: {"tag": ["service:api"], "since": "2026-11-01T10:02:00Z"}

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": {
      "since": "<since>"
    },
    "name": "verify_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoKeep items carrying these tags: a JSON array of up to 10 tags, each up to 50 characters, lowercased before matching. tag_match decides whether all or any of them must match. At most 100 monitors (paused included) may match. Not with monitor_ids.
sinceYesWhen the deploy finished, ISO 8601 with a UTC offset, for example 2026-11-01T10:02:00Z. At most 24 hours ago; up to 5 minutes ahead is read as now. A time without an offset is a 422. Use the deployed_at you gave record_deploy.
tag_matchNoall (the default): an item must carry every tag in tag. any: at least one of them.
monitor_idsNo1 to 100 distinct monitor uuids from list_monitors. A repeated id is a 422 and an unknown id is a 404 naming it. Not with tag.

Output Schema

NameRequiredDescriptionDefault
sinceYesThe deploy time used (never later than evaluated_at).
countsYesMonitors per verdict.
skippedYesSelected monitors that were not judged, such as paused ones.
verdictYesWorst verdict of the monitors; INSUFFICIENT_DATA when none were judged. Known values: PASS, REGRESSED, FAIL, INSUFFICIENT_DATA.
monitorsYesJudged monitors, worst verdict first, then by name.
baseline_toYesEnd of the baseline hours (exclusive).
evaluated_atYesWhen the check was computed.
baseline_fromYesStart of the baseline hours.
deploy_markersYesUp to 5 recorded deploys near `since` that touched these monitors.
latency_metricYesThe latency every region was compared on, or mixed when regions differ; each region row names its own; response_time_ms when no monitor was compared. Known values: response_time_ms, ttfb_ms, mixed.
retry_after_secondsYesLargest wait among monitors that waiting can help; null when none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, and the description is consistent ('The tool only reads'). Beyond that it discloses rate limits (10/min per calling address for an API key, per user for an app connection, never per key or organization), the 429 with seconds to wait, retry_after_seconds nulling out 15 minutes after `since`, the 5xx-on-large-selection remedy, maintenance-window counting, paused monitors appearing in `skipped`, and that verdicts are not monitor statuses.

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 purpose and the PASS/REGRESSED/FAIL/INSUFFICIENT_DATA semantics are front-loaded and every block carries information. However, it is one dense paragraph with repeated check_now advice ('call check_now on it before retrying', 'for fresh points call check_now first') and the read-only claim restated, which could be tightened or split.

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 tool with an output schema the description needn't explain returns, yet it still names the per-monitor payload (region check counts, median latency vs baseline p95, latency_metric, incidents_since, changes_since, needs_fresh_checks), plus skipped and deploy_markers. Rate-limit, retry and failure-mode behavior is all covered, so nothing an agent needs is missing.

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 real meaning beyond the schema: the same `since` must be reused across retries, `since` should be the deployed_at from record_deploy, the 100-monitor cap, and the tag/monitor_ids exclusivity in operational terms. It stops short of explaining verdict thresholds per parameter, so not a 5.

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 ('Compare monitors before and after a deploy, without running any check') and immediately distinguishes its verdict vocabulary from the sibling status vocabulary ('REGRESSED is not the DEGRADED of list_monitors'). An agent can identify the tool and its scope without opening the schema.

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?

Explicit routing rules: select with `monitor_ids` or `tag` (+`tag_match`), never both, max 100; pass the `deployed_at` from record_deploy as `since`; pass the same `since` on every retry; call check_now for monitors listed in needs_fresh_checks or whose interval exceeds 60s; stop when retry_after_seconds is null. Alternatives and stop conditions are stated outright.

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