Skip to main content
Glama

Docker swarm join

docker_swarm_join

Join an existing Docker Swarm as a worker or manager using a remote address and token, enabling nodes to participate in the cluster.

Instructions

Join an existing swarm as a worker/manager.

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": {
      "remote_addr": "<remote_addr>",
      "token": "<token>"
    },
    "name": "docker_swarm_join"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the description's only contribution is the word 'worker/manager'. It omits consequences an agent needs: that this mutates local node state, that a node already in a swarm must leave first, and that it reaches out to a remote manager over the network.

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?

A single short sentence with no wasted wording, but it is terse to the point of under-specification rather than efficiently complete.

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?

A state-changing, open-world operation with undocumented parameters and no output schema requires more than one line. Missing token/address semantics, preconditions, and failure modes leave the definition inadequate for correct invocation.

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 25%: token, remote_addr and worker have no schema descriptions. The description's 'worker/manager' loosely gestures at the worker flag but says nothing about token provenance or the expected remote_addr format, so it fails to compensate for the coverage gap.

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?

States a specific verb and resource ('Join an existing swarm') and adds a role scope ('worker/manager'), which is enough to tell it apart from init/leave siblings by implication. It stops short of explicitly contrasting with docker_swarm_init or docker_leave_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?

No statement of when to use this instead of docker_swarm_init or docker_swarm_leave, and no prerequisites such as needing a join token from an existing manager or network reachability to the remote address. The agent must infer the preconditions entirely.

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