Skip to main content
Glama

Diagnose check

diagnose_check
Read-onlyIdempotent

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 changed
    • addedInput schema / properties / identifier / maxLength
      Added value: +2048
    • addedInput schema / properties / identifier / minLength
      Added value: +1
  2. First observed

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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.