Skip to main content
Glama

Doctor

doctor
Read-only

Diagnoses Android toolchain issues by checking SDK path, adb/emulator, AVDs, devices, accessibility bridge, JDK, and Gradle; run first for “SDK location not found” build errors.

Instructions

Diagnose the local toolchain, and the first call of any session that isn't going well: Android SDK path (and whether it really is an SDK), adb/emulator availability, known AVDs, attached devices, per-device accessibility bridge status, plus the host build tools — a JDK (Gradle needs one) and a system gradle (needed only so scaffold_android_project can generate a wrapper). Run this first when something isn't working, especially a Gradle tool failing with "SDK location not found".

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already establish this as a safe, non-destructive, local-only read (readOnlyHint=true, openWorldHint=false), so the description only needs to add context — and it does, explaining the diagnostic dependencies (Gradle needs a JDK; system gradle is required only so scaffold_android_project can generate a wrapper). It does not describe the shape or grouping of the report, but the safety profile is fully covered by annotations.

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?

Content is front-loaded with the verb and resource, and the second sentence carries the trigger condition, so the structure is sound. The first sentence is long and stacks several parenthetical asides, which makes it slightly harder to scan than an ideal definition, but no clause is filler.

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?

There is no output schema, so the description carries the burden of telling the agent what it will learn — and it enumerates the checks in enough detail to know what a result will contain. Combined with the trigger guidance, an agent has everything needed to decide to call it and interpret the outcome.

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?

The tool takes zero parameters, which is the correct baseline-4 case; there is nothing for the description to disambiguate. The absence of arguments is itself consistent with the "run it and it checks everything" framing.

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?

"Diagnose the local toolchain" is a specific verb plus resource, and the description then enumerates exactly what is probed (SDK path validity, adb/emulator availability, AVDs, attached devices, per-device accessibility bridge status, JDK, system gradle). This clearly separates it from narrower siblings such as list_devices or list_avds, which each cover only one slice of the same surface.

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?

"Run this first when something isn't working" plus the concrete trigger (a Gradle tool failing with "SDK location not found") gives an agent a clear, actionable entry condition, and "first call of any session that isn't going well" further scopes it. What is missing is any when-not guidance or explicit hand-off to siblings once the diagnosis narrows the problem.

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