Skip to main content
Glama

List Container Hosts

cm_list_hosts
Read-onlyIdempotent

List inventory host aliases for targeting remote Docker over SSH in container-management operations; omit the host parameter to use the local Docker socket.

Instructions

List the host aliases you can pass as host to any cm_* operation to manage a REMOTE machine's Docker (via Docker-over-SSH).

Every cm_* tool accepts host: omit it to use the local Docker socket, or pass an alias here to target another machine — e.g. a swarm MANAGER node for cluster ops — without deploying a container-manager on each box. Aliases come from the tunnel-manager inventory (~/.config/scion-sdk/inventory.yaml) and connect as ssh://<user>@<hostname>:<port>.

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_list_hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: aliases originate from the tunnel-manager inventory at a named path and connect as ssh://<user>@<hostname>:<port>, which tells the agent why a listed alias is usable and how to interpret an empty result.

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?

Front-loaded with the purpose in the first clause, then the mechanics and rationale. Most sentences earn their place; the "without deploying a container-manager on each box" aside is motivating flavor rather than operational detail, but it is brief.

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?

An output schema exists, so return values need no explanation, and the description supplies the one thing the schema can't: where aliases come from and what they mean. Nothing essential is missing for correct invocation, though a note on whether an empty list is an error or a valid state would close the loop.

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?

Zero parameters gives a baseline of 4, and the description goes further by explaining the semantics of the ``host`` argument that the returned aliases feed into on all cm_* tools. No syntax gaps for this tool's own (empty) schema.

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 and resource ("List the host aliases") and immediately ties it to the concrete downstream use ("pass as ``host`` to any cm_* operation to manage a REMOTE machine's Docker"). An agent can tell this apart from cm_ingest_inventory or the cm_doctor_* siblings 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?

Explains the selection rule clearly: omit ``host`` for the local Docker socket, or pass an alias from this list to target another machine, including the swarm-manager example for cluster ops. It stops short of an explicit "call this before any remote cm_* operation" instruction, but the usage context is unambiguous.

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