Skip to main content
Glama

doctor

Identify device, app, and development-server readiness issues before starting work. Get compact evidence for inventory, sessions, toolchains, and server reachability, while pre-warming iOS XCTest cache for Apple interactions.

Instructions

Diagnose device, app, development-server, and React Native or Expo readiness issues. Returns compact evidence for local inventory, sessions, optional app discovery, toolchains, and server reachability. On iOS simulators it also warms the XCTest runner build cache in the background when missing, so run it before the first Apple snapshot or interaction of a session. Times out after 90s.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidNoiOS device UDID selector.
debugNoEnable debug diagnostics.
runIdNoLease run identifier.
deviceNoDevice name selector.
remoteNoCheck remote connection setup instead of local device inventory.
serialNoAndroid device or Vega VVD serial selector.
targetNoAlias for deviceTarget on commands without a UI target field. Interaction commands reserve target for the UI element.
tenantNoRemote tenant identifier.
leaseIdNoExisting lease identifier.
sessionNoAgent-device session name.
platformNoPlatform selector used to resolve a device.
targetAppNoInstalled app package/bundle id or app name to verify without opening a session.
includeCostNoInclude per-command agent-cost (cost.wallClockMs, …) in structuredContent. Defaults to off; the default response shape is unchanged.
deviceTargetNoDevice target form. Maps to the CLI --target flag.
responseLevelNoResponse verbosity: token-cheap digest / default (today) / full. Defaults to default; the default response shape is unchanged.
mcpOutputFormatNoMCP text content format. Defaults to optimized agent-friendly text; use json for JSON text. Structured content is always returned separately.
androidDeviceAllowlistNoAndroid serial allowlist used for device resolution.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
metroNo
checksYes
statusYes
targetNo
summaryYes
platformNo
targetAppNo
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it does well: it reveals a non-obvious side effect (warming the XCTest runner build cache in the background on iOS simulators), a hard constraint ('Times out after 90s'), and the nature of the output (compact evidence). Minor gaps remain, such as whether the tool opens sessions or performs network calls beyond 'server reachability,' but the critical behaviors are disclosed.

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?

Three sentences with zero filler: purpose and return shape in the first, the critical iOS cache-warming caveat and usage timing in the second, and the timeout in the third. Each sentence carries distinct, necessary information, and the primary purpose is front-loaded. For a 17-parameter tool, this is an exemplary length.

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 output schema exists, so return-value details are already covered outside the description. For a complex tool with no annotations, the description covers the essential workflow: what it diagnoses, what it returns, the iOS-specific prerequisite behavior, and the 90s timeout. It is slightly incomplete in not addressing how local-vs-remote (the remote parameter) or platform selection changes the diagnostic scope, but the core orientation is solid.

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 baseline is 3 even without parameter details in the description itself. The description does not map its terms (e.g., 'server reachability', 'optional app discovery') to specific selectors like remote or targetApp, which would have added value. It adds no parameter-level meaning beyond the schema, so the baseline 3 is appropriate.

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 uses a specific verb (Diagnose) with an explicit resource scope: device, app, development-server, and React Native or Expo readiness issues. It also specifies what evidence is returned (local inventory, sessions, app discovery, toolchains, server reachability), making the purpose concrete. However, it does not explicitly differentiate from diagnostic siblings like devices, capabilities, network, or perf, which overlap in the diagnostic space.

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?

The description gives explicit, actionable timing guidance: 'run it before the first Apple snapshot or interaction of a session' in connection with the XCTest cache-warming behavior. It also implies the tool's diagnostic role in a session workflow. It names no alternatives or when-not-to-use conditions, so it stops short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/callstack/agent-device'

If you have feedback or need assistance with the MCP directory API, please join our Discord server