Skip to main content
Glama

explain_host

Read-onlyIdempotent

Inspect a single host's mounts, swap, memory pressure, Compose containers, service drift, and usable headroom to diagnose tight capacity or see what runs there.

Instructions

Deep-dive one host: mounts, swap, memory PSI, containers by Compose project, expected-service drift, usable headroom, and constraints. Use when the user asks why a specific machine is tight or what is running there. Prefer fleet_status for fleet-wide view and fleet_headroom for capacity-above-floors across hosts. Optional teach=true adds teachNotes for observed host signals. Read-only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "serverId": "<serverId>"
    },
    "name": "explain_host"
  }
}

Input Schema

NameRequiredDescriptionDefault
teachNoIf true, include teachNotes[] keyed by ontology concept slugs.
serverIdYesInventory server id to inspect (from list_servers / servers.json), e.g. vps-1.
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. Changed2 schema fields changedv0.2.6
    • addedInput schema / properties / inventory / description
      Added 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)."
    • changedInput schema / properties / serverId / description
      Previous value: -"Inventory server id"New value: +"Inventory server id to inspect (from list_servers / servers.json), e.g. vps-1."
  2. First observedv0.2.5

TDQS

A4.1/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the trailing 'Read-only' sentence mostly restates structured data. The description does add real context about what analysis is performed (drift, usable headroom, constraints) and that teach=true emits teachNotes for observed signals, but it says nothing about cost, latency, or the openWorld implication of reading live host state.

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?

Purpose is front-loaded in the first clause, followed by the enumerated facets, then routing guidance, then the optional flag. The facet list is slightly dense but every element is informative; no filler sentences.

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 read-only inspection tool with no output schema, the description covers what is analyzed, when to use it, which siblings to prefer, and the optional teach expansion. It is essentially complete, with only minor gaps such as behavior when serverId is unknown or how large an inventory makes the call expensive.

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 all three parameters are already documented in the schema, including the teach flag and the inventory override precedence. The description only echoes the teach behavior and says nothing about serverId format or the inventory override, so it adds little beyond the schema baseline.

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 ('Deep-dive') and a precisely scoped resource ('one host'), then enumerates the concrete facets returned: mounts, swap, memory PSI, containers by Compose project, expected-service drift, usable headroom, constraints. This is far more specific than the sibling 'compare_hosts' or 'fleet_status' and lets an agent identify the tool 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 Guidelines5/5

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

It gives an explicit trigger ('when the user asks why a specific machine is tight or what is running there') and then names two alternatives with the conditions that select them: fleet_status for fleet-wide view, fleet_headroom for capacity-above-floors. Both when-to-use and when-to-prefer-something-else are present.

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