Skip to main content
Glama

docker_system_prune

Destructive

Prune unused Docker containers, networks, images, and build cache to free disk space; optionally remove anonymous volumes and all unused images.

Instructions

Prune unused Docker containers, networks, images and build cache

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

Input Schema

NameRequiredDescriptionDefault
allNoRemove all unused images and build cache, not just dangling ones
volumesNoAlso prune anonymous volumes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, so the description's main added value is enumerating what gets removed (containers, networks, images, build cache). It omits that removal is irreversible and that volumes are excluded by default, which would matter for a destructive operation.

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?

A single front-loaded sentence with no filler; the resource enumeration is the most useful information and appears immediately.

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?

With an output schema and annotations covering the safety profile, the definition covers the essentials. The remaining gap is the default exclusion of volumes and the irreversibility of the prune, which the description leaves to the schema and annotations.

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 the 'all' and 'volumes' parameters are already fully documented in the schema. The description adds nothing about them; its listing of pruned resources implicitly aligns with the volumes=false default but never states it.

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 enumerates the four resources affected: containers, networks, images, and build cache. This clearly distinguishes it from the narrower single-resource prune siblings, though it does not name them explicitly.

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?

No guidance on when to use this system-wide prune versus the individual docker_container_prune, docker_image_prune, or docker_volume_prune tools. The only implied usage is the word 'unused', leaving the agent to infer the when-to-use conditions.

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