Skip to main content
Glama

docker_buildx_prune

Destructive

Remove Docker Buildx build cache to reclaim disk space, optionally targeting a specific builder or including internal/frontend images.

Instructions

Prune the Docker Buildx 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_buildx_prune"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoInclude internal/frontend images
builderNoBuilder instance to prune

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered structurally. The description adds nothing beyond that: it does not say what exactly is deleted, whether the action is irreversible, how builder selection scopes the deletion, or whether the default 'all' widens the blast radius. For a destructive tool this is a meaningful gap.

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 short sentence with no wasted words and the resource named up front. It is efficient, though it borders on under-specification rather than tight conciseness.

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?

With an output schema, full parameter coverage, and annotations carrying the destructive/idempotency profile, the structured fields do most of the work. Still, for a destructive cache-wiping operation the description omits what gets removed and how the builder/all parameters narrow or widen it, which is more than a minor omission.

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 schema already documents 'all' (include internal/frontend images) and 'builder' (builder instance to prune). The description adds no interpretation of either parameter, leaving the baseline score appropriate.

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 and resource: 'Prune the Docker Buildx build cache.' This distinguishes it from sibling prune tools (docker_image_prune, docker_system_prune) and from read-only Buildx siblings like docker_buildx_du and docker_buildx_history. It does not explicitly name a sibling or contrast scope, so it falls short of a 5.

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 when-to-use guidance is given. The description does not say when to prefer this over docker_buildx_du (inspect usage) or docker_system_prune (broader cleanup), nor does it mention prerequisites such as a running builder or required permissions. Usage is only inferable from the verb 'prune.'

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