Skip to main content
Glama

Diagnose check

diagnose_check
Read-onlyIdempotent

Inspect a single check in one call to see its status, newest regional results, active incident, and last resolved incident—helping identify what’s wrong without chaining result and incident queries.

Instructions

Diagnose one check in a single call: its current status, its newest raw results per region, its active incident and its last resolved one. Use it instead of chaining list_results and list_incidents when someone asks "what's wrong with check X?"; use list_results for older history. identifier takes the UID or slug; recentResultsLimit (default 5, max 20) is per region, and the whole response holds at most 100 results, so it stays small and costs about one get_check plus one list_results. freshness and regionalIssue are omitted when there is nothing to report, and the incidents are null when there are none. Read-only: works with mcp:read tokens.

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": {
      "identifier": "<identifier>"
    },
    "name": "diagnose_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
identifierYesCheck UID or slug (e.g. "api-prod" or a UUID).
recentResultsLimitNoRecent raw results per region (1-20, default 5).

Output Schema

NameRequiredDescriptionDefault
checkYes
freshnessNoOne sentence per silent region naming it and since when it has gone quiet; empty when every region is reporting.
recentResultsYesNewest-first raw results, trimmed to recentResultsLimit per region; includes region, output and durationMs.
regionalIssueNoOne sentence describing the regional issue (some, but fewer than the quorum, of the check's regions failing); empty when there is none.
activeIncidentYesCurrently-open incident for the check, or null when none is open.
lastResolvedIncidentYesMost recently resolved incident for the check, or null when there is none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.42.0
    • addedInput schema / properties / identifier / maxLength
      Added value: +2048
    • addedInput schema / properties / identifier / minLength
      Added value: +1
  2. Changed3 schema fields changedv0.41.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / check / additionalProperties
      Added value: +false
  3. Changed1 schema field changedv0.38.5
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "activeIncident": {
      +      "description": "Currently-open incident for the check, or null when none is open.",
      +      "properties": {
      +        "checkUid": {
      +          "description": "UID of the check the incident belongs to.",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "description": "What the incident is about: check, slo_burn or degraded.",
      +          "type": "string"
      +        },
      +        "number": {
      +          "description": "Short per-org reference, rendered as #42.",
      +          "type": "integer"
      +        },
      +        "resolvedAt": {
      +          "description": "RFC3339 resolution timestamp; absent while the incident is open.",
      +          "type": "string"
      +        },
      +        "startedAt": {
      +          "description": "RFC3339 timestamp of the incident's onset.",
      +          "type": "string"
      +        },
      +        "state": {
      +          "description": "Incident state, e.g. active or resolved.",
      +          "type": "string"
      +        },
      +        "uid": {
      +          "description": "Incident UID.",
      +          "type": "string"
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "check": {
      +      "properties": {
      +        "checkGroupUid": {
      +          "description": "Check group UID, when the check belongs to a group.",
      +          "type": "string"
      +        },
      +        "config": {
      +          "description": "Check-specific configuration for the type.",
      +          "type": "object"
      +        },
      +        "createdAt": {
      +          "description": "RFC3339 creation timestamp.",
      +          "type": "string"
      +        },
      +        "description": {
      +          "description": "Free-text description.",
      +          "type": "string"
      +        },
      +        "enabled": {
      +          "description": "Whether the check runs.",
      +          "type": "boolean"
      +        },
      +        "labels": {
      +          "description": "Key-value labels.",
      +          "type": "object"
      +        },
      +        "lastResultAt": {
      +          "description": "RFC3339 timestamp of the newest real result.",
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Human-readable name.",
      +          "type": "string"
      +        },
      +        "period": {
      +          "description": "Check interval as HH:MM:SS.",
      +          "type": "string"
      +        },
      +        "placement": {
      +          "description": "\"pinned\" or \"auto\".",
      +          "type": "string"
      +        },
      +        "regions": {
      +          "description": "Regions the check runs from.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "slug": {
      +          "description": "URL-friendly slug.",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "Synthesized status: up, down, validating, created or degraded.",
      +          "type": "string"
      +        },
      +        "statusChangedAt": {
      +          "description": "RFC3339 timestamp of the last status change.",
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "Check type, e.g. \"http\".",
      +          "type": "string"
      +        },
      +        "uid": {
      +          "description": "Check UID.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "uid"
      +      ],
      +      "type": "object"
      +    },
      +    "freshness": {
      +      "description": "One sentence per silent region naming it and since when it has gone quiet; empty when every region is reporting.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "lastResolvedIncident": {
      +      "description": "Most recently resolved incident for the check, or null when there is none.",
      +      "properties": {
      +        "checkUid": {
      +          "description": "UID of the check the incident belongs to.",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "description": "What the incident is about: check, slo_burn or degraded.",
      +          "type": "string"
      +        },
      +        "number": {
      +          "description": "Short per-org reference, rendered as #42.",
      +          "type": "integer"
      +        },
      +        "resolvedAt": {
      +          "description": "RFC3339 resolution timestamp; absent while the incident is open.",
      +          "type": "string"
      +        },
      +        "startedAt": {
      +          "description": "RFC3339 timestamp of the incident's onset.",
      +          "type": "string"
      +        },
      +        "state": {
      +          "description": "Incident state, e.g. active or resolved.",
      +          "type": "string"
      +        },
      +        "uid": {
      +          "description": "Incident UID.",
      +          "type": "string"
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "recentResults": {
      +      "description": "Newest-first raw results, trimmed to recentResultsLimit per region; includes region, output and durationMs.",
      +      "items": {
      +        "properties": {
      +          "availabilityPct": {
      +            "description": "Uptime % for the bucket (with=availabilityPct, aggregated rows only).",
      +            "type": "number"
      +          },
      +          "checkName": {
      +            "description": "Check name (with=checkName).",
      +            "type": "string"
      +          },
      +          "checkSlug": {
      +            "description": "Check slug (with=checkSlug).",
      +            "type": "string"
      +          },
      +          "checkUid": {
      +            "description": "UID of the check this result belongs to.",
      +            "type": "string"
      +          },
      +          "durationMs": {
      +            "description": "Response time in ms (with=durationMs).",
      +            "type": "number"
      +          },
      +          "periodStart": {
      +            "description": "RFC3339 start of the period (raw: execution time).",
      +            "type": "string"
      +          },
      +          "periodType": {
      +            "description": "Aggregation level: raw, hour, day or month.",
      +            "type": "string"
      +          },
      +          "region": {
      +            "description": "Region the check ran in (with=region).",
      +            "type": "string"
      +          },
      +          "status": {
      +            "description": "Result status: up, down, created, running, abandoned…",
      +            "type": "string"
      +          },
      +          "uid": {
      +            "description": "Result UID (time-ordered).",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "regionalIssue": {
      +      "description": "One sentence describing the regional issue (some, but fewer than the quorum, of the check's regions failing); empty when there is none.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "check",
      +    "recentResults",
      +    "activeIncident",
      +    "lastResolvedIncident"
      +  ],
      +  "type": "object"
      +}
  4. First observedv0.32.1

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint annotations, the description discloses response bounds (per-region limit plus a 100-result cap), omission behavior (freshness and regionalIssue dropped when empty, incidents null when none), and the auth requirement (mcp:read tokens). It even quantifies cost as roughly one get_check plus one list_results, which is unusually useful context.

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?

The most important facts—what it returns, when to prefer it over siblings—are front-loaded, and every later clause (limits, nulls, auth, cost) carries distinct information. Semicolon chaining is dense but there is no redundant wording.

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?

With an output schema present, return values need no explanation, yet the description still covers the edge cases an agent would otherwise hit: omitted fields, null incidents, and the size ceiling. Nothing needed to call it correctly or interpret an empty-looking response 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; the description adds that identifier accepts a UID or slug and clarifies that recentResultsLimit is applied per region, plus the cross-parameter consequence that the whole response caps at 100 results. The only gap is that it adds little about the accepted identifier formats beyond the schema's own example.

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?

The description opens with a specific verb and resource ("Diagnose one check in a single call") and enumerates exactly what is returned: current status, newest raw results per region, active incident, last resolved incident. It is immediately distinguishable from get_check and the list_* 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?

It states explicitly when to use this tool ("what's wrong with check X?" instead of chaining list_results and list_incidents) and when to use an alternative ("use list_results for older history"). Both the positive case and the exclusion are named.

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