Skip to main content
Glama

Docker stack rm

docker_stack_rm

Remove a Docker Swarm stack by running the Docker CLI equivalent of docker stack rm, optionally targeting a named context.

Instructions

Remove a stack via docker stack rm (no SDK equivalent).

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": {
      "stack_name": "<stack_name>"
    },
    "name": "docker_stack_rm"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/5.0
Behavior1/5

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

The description says the tool will 'Remove a stack', but the annotations declare destructiveHint=false. Removing a stack is inherently destructive, so the description contradicts the annotation. Beyond that conflict, the description offers no information about irreversibility, what resources are removed, or permission requirements.

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

Conciseness5/5

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

The description is a single front-loaded sentence with no wasted wording. It is appropriately sized for a short tool definition, even though the content is incomplete in other dimensions.

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 destructive stack-removal operation with no output schema and only partial parameter documentation. The description should explain consequences such as removing associated services or networks, whether the action is irreversible, and any prerequisites, but it provides none of that context.

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 description does not mention any parameters. The required stack_name parameter has no explanation in either the schema or the description, and the context parameter's meaning is left entirely to the schema.

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 states a specific verb and resource: 'Remove a stack via docker stack rm'. It also clarifies there is no SDK equivalent, which helps identify the implementation, but it does not explicitly distinguish this tool from related siblings such as docker_compose_down or docker_service_rm.

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 gives no when-to-use guidance or alternatives. It mentions 'no SDK equivalent', which is implementation context rather than usage guidance, and it does not say when to choose this over docker_compose_down or docker_service_rm.

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