Skip to main content
Glama

docker_buildx_build

Destructive

Builds Docker images with Buildx from a context path or URL, supporting tags, target stages, multi-platform builds, caching, and optional push or local load.

Instructions

Build an image with Docker Buildx

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "context": "<context>"
    },
    "name": "docker_buildx_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
loadNoLoad the result into the local image store
pushNoPush the result to the registry
tagsNoImage tags
targetNoTarget build stage
builderNoBuilder instance to use
contextYesBuild context path or URL
cache_toNoCache export destinations
no_cacheNoDo not use cache
platformNoTarget platforms
build_argsNoBuild arguments
cache_fromNoExternal cache sources
dockerfileNoPath to the Dockerfile
timeout_secondsNoMaximum build time in seconds (1-3600)

Output Schema

NameRequiredDescriptionDefault

No arguments

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, idempotentHint=false, and openWorldHint=false, so the risky profile is partly conveyed. The description adds nothing beyond the verb: it never mentions that existing tags may be overwritten, that results are discarded unless load or push is set, how long the 600-second default timeout blocks, or that the build consumes significant resources. For a destructive build tool, that is a real gap.

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

Conciseness3/5

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

The single sentence contains no waste and its core content is front-loaded, but it is severely undersized for a tool with 13 parameters and a destructive profile. Brevity here reads as under-specification rather than discipline.

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?

The output schema exists and the input schema is fully documented, so the agent can recover most operational detail from the structured fields. What remains missing is routing (Buildx versus the plain build sibling) and the load/push semantics of the result, which the description could have supplied in one extra sentence.

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% and every one of the 13 parameters carries its own description, so the schema already does the explanatory work. The description contributes no additional meaning, no examples of tag formats, platform strings, or cache destinations, so the baseline of 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 gives a specific verb and resource: 'Build an image', scoped to Docker Buildx. It is clear what the tool does, but it does not distinguish itself from the close sibling docker_build_image, leaving the agent to infer that Buildx is the advanced path (multi-platform, cache export) rather than the default.

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 guidance at all: nothing says when to prefer this over docker_build_image, when to set push versus load, or what prerequisites exist (a configured builder instance). The agent must read the 13-parameter schema and guess at the workflow.

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