Skip to main content
Glama

Doctor

doctor
Read-onlyIdempotent

Detects missing or degraded external dependencies and provides exact platform-specific install commands to fix capability failures or prepare hardware-free end-to-end tests.

Instructions

Probe external dependencies and report how to acquire any that are missing.

Returns the active capabilities, each dependency's status (ok/missing/degraded) and what needs it, and fix_commands: the exact, platform-aware command to install each missing one. Call it first when a capability tool fails on a missing prerequisite, or to self-provision before a hardware-free e2e run.

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

Output Schema

NameRequiredDescriptionDefault
okNo
checksNo
missingNo
degradedNo
platformNo
capabilitiesNo
fix_commandsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the exact result shape (ok/missing/degraded per dependency, what needs it, platform-aware fix_commands), making clear it reports remediation commands rather than executing installs — an important behavioral distinction for a probe tool.

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?

Two sentences open with the core purpose, then detail the return payload, then give the call conditions — a sensible front-loaded order with no filler. The return-value sentence slightly duplicates what the output schema already carries, which is the only wasted space.

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 diagnostic with an output schema, the description supplies purpose, trigger conditions, and the meaning of the key output field (fix_commands), which is enough to call it correctly. It stops short of stating whether the probe has side effects beyond reading system state, but that is largely covered by the annotations.

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 the baseline is 4 by rule; the description correctly implies a parameterless, fire-and-forget probe with no targeting needed.

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?

The description names a specific verb and object set: 'Probe external dependencies and report how to acquire any that are missing.' It also enumerates what the probe returns (capabilities, per-dependency status, fix_commands), which no sibling tool does, so an agent can distinguish it from device/transport tools like list_devices or esptool_chip_info without opening a schema.

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?

It gives concrete invocation triggers: 'Call it first when a capability tool fails on a missing prerequisite' and 'to self-provision before a hardware-free e2e run.' That is clear when-to-use guidance, but there are no explicit when-not conditions or named alternative diagnostics, which keeps it just 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.