Skip to main content
Glama

Docker node ls

docker_node_ls

List Docker Swarm nodes to inspect cluster membership and node status, optionally targeting a named context in a multi-context pool.

Instructions

List swarm nodes (real nodes.list via :meth:list_nodes).

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

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true; the description adds only the word "swarm" as scoping context. Notably it does not address the tension with readOnlyHint=false — a listing operation an agent would naturally treat as a safe read — nor does it mention any cluster-permission or connectivity requirement behind openWorldHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loaded, which is good, but roughly half the text is implementation detail (Sphinx ``nodes.list`` and :meth:`list_nodes` references) that costs length without helping an agent decide or invoke.

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?

For a one-parameter, non-destructive list tool with no output schema, the definition is minimally sufficient: it says what is listed and in which scope. It is missing the context-pool behavior and any node/status fields the caller can expect, which for a listing tool is the main thing an agent would want.

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?

There is a single optional parameter (`context`) with 100% schema description coverage pointing at cm_multi_context list_contexts, so the schema does the semantic work. The description contributes nothing about the context pool, which is acceptable at the baseline for full coverage.

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 names a specific verb and resource ("List swarm nodes"), so an agent immediately knows this is the enumeration counterpart to the inspect/update/remove node tools. It does not explicitly distinguish itself from siblings such as docker_node_inspect, and the trailing parenthetical "real ``nodes.list`` via :meth:`list_nodes`" is Python-docstring noise that adds no agent-facing meaning.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus docker_node_inspect or docker_inspect_node, nor any statement about whether it returns all nodes in the swarm or requires a manager node / specific permissions. Usage is only implied by the verb "List".

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