Skip to main content
Glama

Docker swarm leave

docker_swarm_leave

Leave a Docker Swarm cluster, optionally forcing removal and confirming the destructive operation when client prompts are unavailable.

Instructions

Leave the swarm (real swarm.leave via :meth:leave_swarm).

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

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

C2.5/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the write/open-world profile is already structured. The description adds nothing beyond that: it does not explain the consequence of leaving (node removal, swarm state loss), what force does, or why destructiveHint is false for an operation that removes the node from a swarm.

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-loads the action, which is good, but the second clause is developer-facing implementation trivia ("real swarm.leave via :meth:`leave_swarm`") that consumes space without informing tool selection or invocation.

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?

For a state-changing cluster operation with no output schema and an undocumented force flag, the description should explain consequences and irreversibility. Instead it offers one terse sentence, leaving the agent to infer the effects of leaving a swarm and the role of confirmation.

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?

Schema coverage is 67%: confirm and context are documented in the schema, but force has no description anywhere. The description does not compensate by explaining what forcing does (e.g., leaving despite active manager role), so meaning for the most behaviorally significant parameter is missing.

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?

The description states a concrete verb+resource ("Leave the swarm"), which is enough to know the action, but the parenthetical "real swarm.leave via :meth:`leave_swarm`" points at a sibling name without explaining how this tool differs from docker_leave_swarm or podman_leave_swarm, so the agent cannot disambiguate from siblings on the description alone.

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 when-to-use guidance: nothing says whether to prefer this over docker_leave_swarm, when to use force, or what preconditions exist (e.g., manager nodes). The only usage hint lives in the schema for the confirm parameter, not in the description.

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