Skip to main content
Glama

Remove container

docker_remove_container
Destructive

Removes a Docker container by its ID, with optional force and confirmation flags for destructive deletion.

Instructions

Invoke the remove_container operation.

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": {
      "container_id": "<container_id>"
    },
    "name": "docker_remove_container"
  }
}

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.
container_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the safety profile is covered structurally. The description adds nothing beyond that: it does not mention that the operation is irreversible, that running containers require force, or how the confirmation behavior works. There is no contradiction, but there is no added value either.

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?

The single sentence is short but does not earn its place: it is a tautological restatement of the tool name rather than an informative summary. Brevity here comes from under-specification, not from efficient editing.

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 destructive, multi-parameter container operation with no output schema and only 50% schema coverage, the description should explain the destruction semantics, the force/confirm interaction, and the context parameter. It addresses none of these, so an agent must infer everything from the schema and annotations.

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 50%, with container_id and force undocumented in the schema. The description does not compensate: it says nothing about what container_id accepts or what force does, leaving half the parameters explained only by their names.

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?

The description only restates the tool name and title: 'Invoke the remove_container operation' gives no verb-and-resource detail beyond the identifier. It does not distinguish this tool from the many sibling remove_* tools (docker_remove_image, docker_remove_volume, k8s_remove_container, podman_remove_container) or say what a container removal entails.

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 offers no guidance on when to use this tool versus alternatives such as docker_stop_container or the k8s/podman equivalents. It neither states prerequisites nor conditions under which a container should be removed rather than stopped.

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