Skip to main content
Glama

Create or update a sandbox

save_sandbox_template

Create a sandbox (omit templateId) or change one. A definition is Dockerfile steps on the platform base (RUN, ENV, ARG, WORKDIR, USER; no FROM). A changed definition or size becomes a new version and is built at once; the response carries that build. Refusals name the line or the size bound.

Input Schema

NameRequiredDescriptionDefault
nameNoRequired when creating
sizeNoA tier, or { vcpu, memoryMib, diskMb } within 1-4 vCPU, >=3072 MiB per vCPU, <=12288 MiB, 8000-20000 MB
starterIdNoCreate from a starter's definition and size
dockerfileNoThe Dockerfile that builds the sandbox image. Give this or starterId to create; it replaces the file on an update
templateIdNoSandbox id (sbt_...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / dockerfile / description
      Added value: +"The Dockerfile that builds the sandbox image. Give this or starterId to create; it replaces the file on an update"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations establish a non-read-only, non-idempotent, non-destructive write, and the description adds substantial context beyond them: that a changed definition or size becomes a new version built immediately, that the response carries that build, and that refusals identify the offending line or size bound. It does not disclose permission/auth requirements or what happens to prior versions on update.

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

Conciseness5/5

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

Four dense sentences, all front-loaded: the create/update distinction comes first, followed by definition constraints, versioning behavior, and error semantics. No filler and every sentence carries information an agent needs.

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?

For a parameterless-required, five-param mutation tool with no output schema, the description covers create vs update, definition constraints, version/build behavior, and error reporting, and even notes the response carries the build. It omits the shape of the returned build object and whether non-dockerfile fields (name, size) are partial updates, leaving minor gaps.

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 five parameters (name, size, starterId, dockerfile, templateId). The description reinforces the create-vs-update role of templateId and the Dockerfile rules, but adds little syntax or format detail the schema lacks; baseline 3 is appropriate.

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?

The description states a specific verb and resource ('Create a sandbox ... or change one') and immediately disambiguates the two modes via the templateId condition. It is clearly distinguishable from siblings like build_sandbox_template, delete_sandbox_template, and save_sandbox_registry without opening any schema.

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?

It explicitly states the discriminator between create and update ('omit templateId'), which is real when-to-use guidance. It does not name alternative tools (e.g., build_sandbox_template or list_sandbox_starters) for related workflows, so it stops short of full routing guidance.

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.