Skip to main content
Glama

fleet_doctor

Read-onlyIdempotent

Diagnose Fleetloom setup failures: validate inventory schema, probe SSH reachability and latency, verify remote tools and Docker access, identify host misconfigurations. Read-only; no host changes.

Instructions

Diagnose Fleetloom setup: validate inventory schema, probe SSH reachability/latency per host, required remote tools (free/df/nproc), and Docker daemon access. Use when status/placement fails or a host looks misconfigured. Read-only probes — does not install packages or change hosts.

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

Input Schema

NameRequiredDescriptionDefault
inventoryNoOptional path to servers.json (absolute or ~/…). Overrides FLEETLOOM_INVENTORY for this call. When omitted, uses FLEETLOOM_INVENTORY or the Go CLI default (~/.config/fleetloom/servers.json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.6
    • changedInput schema / properties / inventory / description
      Previous value: -"Optional path to servers.json. Defaults to FLEETLOOM_INVENTORY or the Go CLI default (~/.config/fleetloom/servers.json)."New value: +"Optional path to servers.json (absolute or ~/…). Overrides FLEETLOOM_INVENTORY for this call. When omitted, uses FLEETLOOM_INVENTORY or the Go CLI default (~/.config/fleetloom/servers.json)."
  2. First observedv0.2.5

TDQS

A4.1/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, and the description reinforces this with "does not install packages or change hosts" while adding real behavioral detail: it opens SSH connections, measures latency, and checks for specific remote binaries and Docker access. It omits practical traits that matter for a network probe — credential/auth expectations, timeout behavior on unreachable hosts, and how long a multi-host sweep takes.

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?

Two tight sentences: the first front-loads the enumerated checks, the second gives the trigger and the safety constraint. No filler or redundant restatement of the tool name.

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?

The scope of the diagnostics is well defined, but there is no output schema, so the description should describe what the agent gets back — per-host pass/fail, error detail, or suggested fixes — and it does not. For a multi-host network probe that may partially fail, that is a meaningful gap for an agent deciding how to interpret results.

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?

With schema description coverage at 100% and a single optional parameter already fully documented in the schema (including the FLEETLOOM_INVENTORY fallback and CLI default), the description adds nothing about the inventory path. Baseline 3 applies since the schema carries this entirely.

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) plus resource (Fleetloom setup) and then enumerates exactly what is checked: inventory schema, SSH reachability/latency, remote tools (free/df/nproc), and Docker daemon access. This is concrete enough that an agent can tell it apart from fleet_status or place_service without opening the 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?

"Use when status/placement fails or a host looks misconfigured" gives a clear trigger condition tied to failure modes of sibling tools. It lacks an explicit when-not statement (e.g. use fleet_status for a plain health read), so it falls just short of full routing guidance.

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