Skip to main content
Glama

Check debugger readiness

debug_doctor
Read-onlyIdempotent

Inspect a local project to detect its language and tooling, choose the likely debug adapter, verify the adapter command, and return concrete fixes before debugging or when startup fails.

Instructions

Inspect a local project, detect its language/tooling, select the likely debug adapter, verify the complete adapter command, and return concrete remediation. Use this before debugging or when an adapter fails to start.

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": "debug_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory (default: server working directory)
adapterNoAdapter to validate instead of auto-detecting one
verboseNoInclude full details for every known adapter, not just the selected one

Output Schema

NameRequiredDescriptionDefault
cwdYes
readyYes
adaptersYes
detectedYes
nextStepsYes
otherAdaptersNo
recommendedAdapterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.19

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is known. The description adds useful behavioral context by laying out the sequential steps and promising concrete remediation output, but says nothing about cost, caching, or what happens when detection fails. Given the annotation coverage, a middle score is appropriate.

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?

One dense sentence that front-loads the workflow and closes with the invocation trigger; every clause (detect, select, verify, remediate) contributes information. No filler or repetition.

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

Completeness4/5

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

The tool is read-only, has a fully described schema and an output schema, so the description need not explain return values. It is nearly complete, with only minor gaps around failure behavior and what verbose changes relative to the base result.

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 description coverage is 100%, so the schema already documents cwd, adapter, and verbose thoroughly. The description adds nothing about parameter meaning or how adapter interacts with auto-detection, so it only matches the baseline rather than compensating or enriching.

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?

The description names concrete actions on a specific resource: inspect a local project, detect language/tooling, select a debug adapter, verify its command, and return remediation. That is far more than a restatement of the title, though it never explicitly contrasts itself with closely related siblings such as list_adapters or configure_adapter.

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

Usage Guidelines4/5

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

"Use this before debugging or when an adapter fails to start" gives a clear when-to-use condition and a trigger for troubleshooting. It gives no explicit exclusions or alternatives (e.g. when to prefer list_adapters or configure_adapter instead), so it stops short of full routing guidance.

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