Skip to main content
Glama

Docker swarm init

docker_swarm_init

Initialize a Docker Swarm cluster by promoting the target Docker host to a swarm manager; provide the advertise address and optionally select a named context.

Instructions

Initialize a swarm (real swarm.init via :meth:init_swarm).

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": {
      "advertise_addr": "<advertise_addr>"
    },
    "name": "docker_swarm_init"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
listen_addrNo
advertise_addrYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already disclose readOnlyHint=false and openWorldHint=true, so the safety bar is lower, yet the description still adds nothing: it does not say that this makes the current node a manager, produces join tokens, or what side effects follow. It also stays silent on the confirmation behavior that the schema's own `confirm` parameter calls a "destructive operation", leaving an unresolved tension between that field and destructiveHint=false.

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 a single short sentence and front-loaded, so there is no padding. However, roughly half the text is a Sphinx cross-reference that carries no value for an agent choosing or calling the tool.

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

Completeness2/5

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

This is a cluster-creating, state-mutating operation with no output schema, and the description covers none of the essentials: prerequisites, resulting role, what advertise_addr should be, or what the caller gets back. An agent would have to guess whether this is safe or what to pass.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%, and the two undocumented fields are the important ones: the required `advertise_addr` and the optional `listen_addr` have no meaning anywhere. The description mentions no parameters at all, so it does not compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Initialize a swarm" gives a recognizable verb+resource, but it is essentially a restatement of the tool name and title, so an agent learns nothing new. The trailing parenthetical (``swarm.init`` via :meth:`init_swarm`) is internal Sphinx implementation notation, not distinguishing purpose, and there is no attempt to separate it from siblings such as docker_init_swarm or podman_init_swarm.

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?

The description never says when to call this instead of the sibling docker_init_swarm/podman_init_swarm, nor what prerequisites must hold (Docker installed, node not already part of a swarm, manager vs worker intent). At best, the word "Initialize" implies the setup scenario.

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