Skip to main content
Glama

docker_remove_image

Destructive

Delete a Docker image by ID or name, with an optional force flag to remove it even when in use or referenced by stopped containers.

Instructions

Remove a Docker image

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": {
      "image": "<image>"
    },
    "name": "docker_remove_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoForce remove the image
imageYesImage ID or name

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, openWorldHint=false, and idempotentHint=false, so the safety profile is partly covered. However, the description adds nothing beyond that: it does not say what happens when the image is in use by containers, whether removal is irreversible, or how non-idempotent repeat calls behave.

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?

The sentence is front-loaded and free of waste, but at four words it is under-specified rather than concise. Nothing is superfluous because almost nothing was said.

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

Completeness4/5

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

Because an output schema exists, return values need not be explained here. The blocked gap is destructive-operation guidance—image-in-use behavior, irreversibility, and force semantics—which is left entirely to annotations and the schema.

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 description coverage is 100%, so both 'image' and 'force' are documented in the schema itself, establishing the baseline of 3. The description contributes no extra meaning about the force flag's consequences or image reference formats.

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?

"Remove a Docker image" gives a specific verb and resource, so an agent knows the basic action. But it is a near-verbatim restatement of the tool name and offers no differentiation from siblings like docker_remove_container, docker_remove_network, or docker_remove_volume.

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 whatsoever: no prerequisites, no condition telling the agent to prefer docker_remove_container or docker_remove_volume over this, and no note about when removal is inappropriate. The agent must infer everything from the tool name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.