Skip to main content
Glama

docker_buildx_du

Read-onlyIdempotent

Show Docker Buildx cache usage per builder, optionally including individual records, to identify disk consumption and manage build cache.

Instructions

Show Docker Buildx cache usage per builder

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

Input Schema

NameRequiredDescriptionDefault
builderNoBuilder instance to query
verboseNoInclude individual cache records

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and a closed-world scope, so safety is covered. The description adds only the framing that results are cache-usage figures scoped per builder; it says nothing about aggregation behavior (per-builder totals vs individual records) beyond what the schema's 'verbose' field implies, and nothing about performance on large caches.

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 front-loaded sentence with zero filler, covering verb, resource, and scope. It is efficient, though its terseness borders on under-specification given the absence of any usage routing.

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?

Both parameters are optional and fully documented in the schema, an output schema exists so return values need no prose, and the read-only annotations remove the need for safety caveats. The only meaningful gap is the lack of differentiation from docker_system_df for an agent choosing between disk-usage tools.

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%, with 'builder' documented as 'Builder instance to query' and 'verbose' as 'Include individual cache records', so the structured fields already carry the parameter meaning. The description's phrase 'per builder' mildly reinforces how the builder parameter scopes results, but adds no format or default behavior beyond the schema; baseline 3 applies.

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?

The description supplies a specific verb ('Show'), resource ('Docker Buildx cache usage'), and scope ('per builder'), and importantly decodes the cryptic 'du' in the tool name into 'cache usage'. It does not distinguish itself from docker_system_df, which is the closest sibling covering disk usage generally, so it stops short of full sibling differentiation.

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 or when-not-to-use guidance, no mention of prerequisites, and no named alternative. An agent must infer that this is the tool for inspecting build cache consumption rather than general disk usage via docker_system_df, and nothing in the text helps make that choice.

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