Skip to main content
Glama

docker_image_prune

Destructive

Remove unused Docker images to reclaim disk space and reduce clutter in your Docker environment.

Instructions

Prune unused Docker images

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=false, so the safety profile is covered. However, the description adds nothing about what 'unused' means here — dangling images only, or all images unreferenced by a container — which is the single most consequential question for a destructive operation, nor does it note irreversibility or auth needs.

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

Conciseness4/5

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

A single five-word sentence, front-loaded with the verb and containing no filler. It is efficient, though it is terse to the point of omitting scope detail rather than being padded.

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

Completeness3/5

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

An output schema and annotations cover the return shape and safety signals, and there are no parameters to explain, so the definition is nearly complete. The remaining gap is the ambiguity of 'unused' and the absence of any pointer to the targeted alternative, which matters for a destructive tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters and schema coverage is 100%, so there is nothing for the description to clarify. Baseline of 4 applies since no parameter meaning is required.

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?

States a specific verb (prune) and resource (unused Docker images), which is enough for an agent to tell it apart from docker_container_prune, docker_volume_prune, and docker_remove_image by resource alone. It does not explicitly name a sibling or scope, but the resource noun does the differentiating work.

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 guidance on when to use this versus docker_remove_image (targeted deletion) or docker_system_prune (broader cleanup), and no prerequisites or exclusions. The agent must infer the use case 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.