Skip to main content
Glama

Diagnose a Harness Relay MCP client setup plan

setup_doctor
Read-onlyIdempotent

Generates a machine-readable setup report from supplied probes to diagnose MCP launch readiness without reading or modifying client configuration.

Instructions

Return a machine-readable setup report from explicitly supplied probes without reading or modifying client configuration.

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": {
      "client": "<client>",
      "scope": "<scope>",
      "platform": "<platform>",
      "homeDirectory": "<homeDirectory>",
      "nodeExecutable": "<nodeExecutable>",
      "relayEntry": "<relayEntry>",
      "endpointDescriptor": "<endpointDescriptor>"
    },
    "name": "setup_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
factsNo
scopeYes
clientYes
platformYes
relayEntryYes
environmentNo
homeDirectoryYes
nodeExecutableYes
endpointDescriptorYes
workspaceDirectoryNo

Output Schema

NameRequiredDescriptionDefault
planYes
scopeYes
checksYes
clientYes
statusYes
planReadyYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.20
    • changedInput schema / properties / client / enum
      Previous value: -[
      -  "codex",
      -  "claude",
      -  "cursor",
      -  "opencode"
      -]New value: +[
      +  "codex",
      +  "claude",
      +  "cursor",
      +  "opencode",
      +  "antigravity"
      +]
    • changedOutput schema / properties / client / enum
      Previous value: -[
      -  "codex",
      -  "claude",
      -  "cursor",
      -  "opencode"
      -]New value: +[
      +  "codex",
      +  "claude",
      +  "cursor",
      +  "opencode",
      +  "antigravity"
      +]
  2. First observedv0.2.6

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds one genuinely useful trait beyond that: it does not read client configuration, so the report is only as accurate as the supplied probes. It says nothing about what the report contains or how probe gaps are handled.

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?

A single front-loaded sentence with zero filler, and the non-invasive nature is stated early. It is efficient but arguably undersized for a 10-parameter tool with no schema descriptions.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. However, with 10 parameters, 7 required, nested objects, and 0% schema coverage, the description leaves the agent without guidance on which inputs are mandatory or what the facts probes mean, which is a substantial gap for this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 10 parameters (7 required), yet the description explains none of them. The only gesture is 'explicitly supplied probes', which loosely points at the nested 'facts' object but never clarifies the required client/scope/platform/path fields or the meaning of each probe boolean.

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?

States a specific verb and output ('Return a machine-readable setup report') plus a distinguishing constraint ('from explicitly supplied probes'). It never names the closely related siblings setup_plan or doctor, so the agent must infer the boundary from the 'without reading or modifying client configuration' clause alone.

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

Usage Guidelines3/5

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

The phrase 'from explicitly supplied probes' implies the caller must gather and pass the facts itself, which hints at when this is appropriate. There is no explicit when-to-use/when-not guidance and no mention of setup_plan or doctor as alternatives for planning or live diagnosis.

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