Skip to main content
Glama

Run

cm_doctor_run

Diagnose Docker, Podman, Kubernetes, and inventory environments with real probes, returning per-check status, details, remediation steps, and a summary.

Instructions

Run (cm_doctor). Diagnose + get remediation for the inventory / kubernetes / docker / podman environment.

Runs real probes (constructs the same managers, loads the same inventory, reaches the same kubeconfig the server uses) and returns per-check {name, category, status: ok|warn|fail, detail, remediation} plus a summary.

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

Input Schema

NameRequiredDescriptionDefault
hostNotunnel-manager host alias to probe (SSH reachability + Docker-over-SSH). Call cm_list_hosts to see aliases.
backendNoFor action='run': restrict to one surface — all|docker|podman|kubernetes|inventory (default all).
contextNokubeconfig context to probe for the kubernetes checks.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, and the description usefully explains why: it constructs the same managers, loads the same inventory, and reaches the same kubeconfig, i.e. it makes real external connections rather than reading cached state. It also documents the return shape (name/category/status/detail/remediation plus a summary). It does not mention auth prerequisites, runtime cost, or whether probe runs mutate anything on targets.

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?

Three compact sentences front-loaded with the purpose, then the probe mechanism, then the return contract. The only minor waste is the opening 'Run (cm_doctor).' which restates the name and title.

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?

For a zero-required-param diagnostic with full schema coverage, an output schema, and annotations covering the safety profile, the description supplies the mechanism (real probes against the live inventory/kubeconfig) and the result shape. Nothing an agent needs in order to decide to call it and interpret the output is missing.

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% and all three parameters carry their own descriptions (host aliases, backend surfaces, kubeconfig context). The description adds only the general notion of probing the environment and does not enrich any individual parameter, so the baseline 3 applies.

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?

States a specific verb and scope: 'Diagnose + get remediation for the inventory / kubernetes / docker / podman environment', and the body clarifies it runs real probes and returns per-check results. It is clear what the tool does, but it never names the sibling check tools (cm_doctor_check_docker, etc.) that cover a single surface, so the reader must infer the split from the 'backend' parameter.

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

Usage Guidelines3/5

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

Usage is implied by 'Diagnose + get remediation' and the schema hints that backend=all is the default while a single surface can be targeted. There is no explicit when-to-use versus the cm_doctor_check_* siblings or when-not-to-use guidance, so routing between the aggregate run and the per-surface checks is left to inference.

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

Deploy Server

Other Tools