Skip to main content
Glama

Prune system

docker_prune_system
Destructive

Remove unused Docker system resources such as stopped containers, unused networks, dangling images, and build cache; use all and force options or explicit confirmation for destructive cleanup.

Instructions

Invoke the prune_system operation.

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

Input Schema

NameRequiredDescriptionDefault
allNo
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known from structured data, but the description adds nothing beyond that — not the scope of what is destroyed, not the effect of all=true, not whether it is recoverable. It does not contradict the annotations, but it squanders the chance to add context exactly where it matters most.

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 not concise in any useful sense — it is under-specified rather than tight. There is no front-loaded statement of scope or consequence.

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

Completeness1/5

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

This is a destructive, open-world system-wide prune with four parameters and no output schema; the description supplies none of the information needed to invoke it safely or correctly. Nothing tells the agent which resources are affected or what 'all' broadens.

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 'confirm' and 'context' documented in-schema but 'all' and 'force' undocumented anywhere. The description gives no meaning to any of the four parameters, so it fails to compensate for the coverage gap on a destructive tool.

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?

"Invoke the prune_system operation" only restates the tool name and title in different words. It never says what prune_system actually removes (stopped containers, unused images, networks, volumes, build cache) nor how it differs from sibling tools like docker_prune_images or docker_prune_containers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no warning about scope, and no pointer to the narrower per-resource prune siblings. An agent has no basis in the description for choosing this tool over docker_prune_containers or docker_prune_volumes.

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