Skip to main content
Glama

Leave swarm

docker_leave_swarm

Detach a Docker node from its Swarm cluster, optionally forcing removal and requiring explicit confirmation for destructive actions.

Instructions

Invoke the leave_swarm operation.

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

Input Schema

NameRequiredDescriptionDefault
forceNo
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.7/5.0
Behavior2/5

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

The description contributes nothing beyond the annotations; it does not explain consequences of leaving the swarm, what happens to running services on the node, or whether the action can be undone. Worse, the schema's confirm parameter calls this a "destructive operation" while the annotations declare destructiveHint=false, and the description does nothing to resolve that ambiguity for the agent.

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

Conciseness2/5

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

One short sentence, so there is no padding, but the brevity reflects under-specification rather than economy. Nothing is front-loaded because nothing informative is present.

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

Completeness1/5

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

For a high-impact cluster-membership mutation with no output schema and incomplete parameter coverage, the description omits consequences, preconditions, required permissions, and the meaning of the confirm/force flags. It is not sufficient for an agent to call this safely.

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 coverage is 67%, with 'force' left undocumented in the schema, and the description does not compensate -- it never mentions force, confirm, or context. For a force flag on a cluster-membership operation, omitting its semantics is a meaningful gap.

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

Purpose2/5

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

"Invoke the leave_swarm operation." only rephrases the tool name and title; it adds no specifics about what leaving a swarm means (removing this node from the cluster, demoting a manager, etc.). It also fails to distinguish this from close siblings such as docker_swarm_leave and podman_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 Guidelines1/5

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

There is no when-to-use guidance, no prerequisites (e.g., the node must be a swarm member), and no mention of alternatives for the reverse operations that exist in the sibling list. An agent must infer all routing decisions from the name alone.

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