Skip to main content
Glama

runtime_images_build

Build a sandbox image with your dependencies preinstalled, from exactly one of: image (a public or private image such as python:3.12-slim or ghcr.io/you/app:1), dockerfile (any Dockerfile: multi-stage, COPY --from, ARG, heredocs; COPY reads files), or recipe ({base, apt, pip, npm, commands, files, env}). Each build of a name is its next version, tagged latest (or tags). start sets what a sandbox from it runs and when its create answers; a Dockerfile's CMD and HEALTHCHECK fill it in. Returns the image queued; runtime_images action get says when it is ready, and sandboxes start from its id or name:tag. A rebuild reuses unchanged steps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoEnvironment every sandbox from it starts with.
nameNoYour handle for it; each build is its next version.
tagsNoTags it takes when ready; default latest.
buildNo{vcpu?, memoryMiB?, diskMiB?, maxImageMiB?, timeoutSeconds?, cacheMiB?} for the build.
cacheNofalse builds every step afresh.
filesNoThe Dockerfile's context: [{path, content, encoding?: utf8 or base64, mode?}], 1 MiB in all.
imageNoAn image, such as python:3.12-slim.
startNo{command | argv, cwd?, env?, readyPort? | readyCommand?, readyTimeoutSeconds?}: run as a sandbox starts; its create waits until ready.
labelsNo
recipeNo{base?, apt?, pip?, npm?, commands?, files?, env?, workdir?}: packages and steps on Runtime's base or an image.
regionNo
targetNoA stage to build instead of the last.
buildArgsNo
dockerfileNoA Dockerfile, multi-stage allowed; COPY reads files.
dockerignoreNo
idempotencyKeyNoOptional: left out, one is made and returned as idempotencyKey. Send it back only to retry this exact call after a temporary error.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=true; the description adds substantial context beyond that: builds are queued asynchronously, each build of a `name` becomes the next version tagged latest (or `tags`), `start` controls sandbox runtime and readiness, a Dockerfile's CMD/HEALTHCHECK fills it in, and rebuilds reuse unchanged layers unless `cache` is false.

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?

The source-selection constraint and the async/versioning behavior are front-loaded, and every sentence carries information rather than filler. It is a dense block of many clauses in one paragraph, which slightly taxes parseability, but nothing is wasted.

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 16 parameters, nested objects, no output schema and only 75% schema coverage, the description supplies the missing lifecycle context: return value ('returns the image queued'), how to poll readiness, and how sandboxes consume the result by id or name:tag. A handful of auxiliary parameters remain unexplained, but the core workflow is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the schema carries much of the load, but the description adds real meaning for the highest-risk parameters: the semantics of `recipe` fields, that COPY reads `files`, that `start` is what a sandbox runs at launch, and that `tags` defaults to latest. It does not document several declared params (`labels`, `region`, `dockerignore`, `buildArgs`, `build`), so it does not fully compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Build a sandbox image') and immediately enumerates the three mutually exclusive sources (`image`, `dockerfile`, `recipe`) with examples. It also names the related sibling (`runtime_images` action get) that reports readiness, so an agent can distinguish this build tool from the list/manage image tools without opening schemas.

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

Usage Guidelines4/5

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

The 'exactly one of' constraint plus per-source descriptions make it clear which input to pick for a given situation, and it tells the agent where to check readiness afterward. It stops short of explicit when-not-to-use guidance (e.g., when a public image alone suffices and no build is needed), so it is clear context rather than full routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.