Skip to main content
Glama

Connection Doctor

connection_doctor
Read-onlyIdempotent

Diagnose MCP connectivity issues by testing Unraid GraphQL reachability, API key validity, version/schema compatibility, SSH access, rate limits, and read-only mode; run first when tools fail.

Instructions

Read-only self-test of this MCP server's plumbing: Unraid GraphQL endpoint reachability and latency, API key validity, server and API versions, schema skew between the vendored Unraid schema and the server's API version, optional SSH channel connectivity, client-side rate-limit configuration, and read-only mode. Safe to run anytime; run it first when any other tool misbehaves. It diagnoses the connection, not the server — use system_health for the Unraid server's own condition.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "connection_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
response_formatNo`detailed` returns full JSON instead of readable text.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / response_format / description
      Added value: +"`detailed` returns full JSON instead of readable text."
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false; the description reinforces this with 'read-only' and 'safe to run anytime'. It adds real context beyond annotations by disclosing that SSH checks are optional and that it reports client-side rate-limit configuration and schema skew. It stops short of describing the output shape or how failures are surfaced, which keeps it from 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?

Front-loaded with the core identity, then a compact checklist of checks, then obligations (safe anytime, run first on failure), then a disambiguation clause. Every clause carries distinct information with no repetition.

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 zero-required-param diagnostic with no output schema, the definition covers scope, safety, invocation timing, and sibling disambiguation. The one remaining gap, the exact report contents, is inherent to a diagnostic whose output is naturally exploratory.

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 coverage is 100% and the single response_format parameter's enum and default are fully documented in the schema, including what 'detailed' returns. The description adds no parameter-level detail whatsoever, so baseline 3 is appropriate.

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 names a specific verb and resource ('Read-only self-test of this MCP server's plumbing') and enumerates exactly what is checked: GraphQL endpoint reachability and latency, API key validity, versions, schema skew, optional SSH, rate-limit config, and read-only mode. It also explicitly distinguishes itself from system_health, which diagnoses the Unraid server rather than the connection.

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 trigger ('run it first when any other tool misbehaves'), states it is safe to run anytime, and names the alternative (system_health) with the condition that selects it. No ambiguity about when to reach for this tool versus a sibling.

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