Skip to main content
Glama

Backend

cm_doctor_backend

Run real probes to diagnose Docker, Podman, Kubernetes, and inventory environments, returning per-check status, details, and remediation guidance.

Instructions

Backend (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_backend"
  }
}

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.6/5.0
Behavior4/5

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

The description adds real context beyond the annotations by explaining that it 'Runs real probes (constructs the same managers, loads the same inventory, reaches the same kubeconfig the server uses)'. This meaningfully explains why readOnlyHint=false despite the diagnostic framing, and it implies live reachability probing. It stops short of stating side effects, cost, or duration, but this is well above the annotation baseline.

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?

It is short and front-loaded, with the purpose in the first clause and the probe behavior in the second. The closing return-shape sentence partially duplicates the existing output schema, but it is compact and does not bloat the definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only 3 optional params, a 100% documented schema, and an output schema that covers the per-check payload, most of what a caller needs is structured elsewhere. The remaining gap is routing: nothing explains how this differs from the per-surface check tools or from cm_doctor_run, which is the primary ambiguity for an agent choosing a diagnostic tool.

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 schema already documents host, backend, and context, including the 'call cm_list_hosts to see aliases' hint. The description itself adds nothing about the parameters, and it contains no correction of the schema's stale reference to 'action=run', which is not a parameter in this tool's schema. 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?

The description uses a specific verb plus resource: 'Diagnose + get remediation for the inventory / kubernetes / docker / podman environment', and it names the return structure. It does not, however, distinguish this aggregate doctor from its many siblings (cm_doctor_check_backends, cm_doctor_check_docker, cm_doctor_check_kubernetes, cm_doctor_run), so an agent cannot tell from the text alone when this is the right entry point.

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 only implied: 'Diagnose + get remediation' suggests a broad health check across surfaces, and the schema hints at narrowing via the 'backend' param, but the description never states when to prefer this over the per-surface check tools or cm_doctor_run. There are no exclusions, prerequisites, or alternative routing statements.

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