Skip to main content
Glama

doctor

Read-only

Diagnose local Android and iOS tooling—adb, ANDROID_HOME, connected devices, emulators, Xcode simctl, and idb—when device commands fail unexpectedly.

Instructions

Diagnose the local mobile tooling setup: adb, ANDROID_HOME, connected devices, emulator, Xcode simctl, and idb. Run this when device commands fail unexpectedly.

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 observedv2.0.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=true, and the description is consistent with that: 'Diagnose' frames it as inspection, not repair, and the listed subsystems make clear it probes both Android and iOS toolchains. It does not state whether it attempts any remediation or what the report looks like, which keeps it below 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?

One sentence of scope followed by one sentence of trigger condition, with the scope front-loaded. Every clause contributes; there is no filler or restatement of the tool name.

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?

For a zero-parameter, read-only diagnostic with no output schema, the description covers what is checked and when to run it, which is what an agent needs to select and invoke it. The only gap is that it does not hint at the shape of the diagnostic report (e.g., per-check pass/fail), so the agent cannot anticipate the result format.

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, so there is nothing for the description to disambiguate and the baseline of 4 applies. The schema is an empty object with full coverage, matching the no-argument description.

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?

States a specific verb (Diagnose) and a specific resource (the local mobile tooling setup), then enumerates exactly what is inspected: adb, ANDROID_HOME, connected devices, emulator, Xcode simctl, idb. An agent knows immediately this is an environment-health check rather than a device action, distinguishing it from siblings like list_devices or get_device_logs.

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?

Gives an explicit trigger condition: 'Run this when device commands fail unexpectedly.' That is clear context for invocation. It stops short of naming alternatives or stating when not to use it (e.g., don't run it before every call, or use list_devices for a routine device inventory), so it is strong but not fully specified.

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