Skip to main content
Glama

Update sandbox

update_sandbox

Modify an existing sandbox's display name, labels, subdomain, or auto-stop TTL. Use it to rename URLs without downtime, replace tags, or extend a running sandbox's life.

Instructions

Update sandbox

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": {
      "sandboxId": "<sandboxId>"
    },
    "name": "update_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew display name. Empty strings are rejected; longer names are truncated to 120 chars by the backend.
labelsNoReplaces all labels of the sandbox. `{}` or `null` removes them. Same rules as `CreateSandboxRequest.labels`.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.
subdomainNoRename the sandbox's stable subdomain (the `<subdomain>.on.boat.dev` label). Lowercase letters, digits and hyphens; no leading/trailing/double hyphens; cannot end in `-desktop` or `-<number>` (reserved for the desktop and hosted-port URLs). Must be globally unique. The base URL, desktop URL and every live `host <port>` URL are re-pointed to the new name with no downtime and their access tokens preserved; the old URLs stop resolving. On a transient routing error the rename is saved but returns 502 `gateway_error` - retry with the same value to finish activating routes.
ttlSecondsNoNew auto-stop TTL. The deadline becomes now + `ttlSeconds`, so calling this again extends a running sandbox's life. `null` disables auto-stop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds no context of its own about partial-update semantics, what happens to omitted fields, or rename side effects such as old URLs ceasing to resolve. All of that lives in the schema, not the description.

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

Conciseness2/5

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

Two words with no structure or front-loading of useful information. This is under-specification rather than genuine conciseness; there is no wasted text, but there is also almost no text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with five parameters and no output schema, a two-word description is inadequate on its own. The annotations cover the safety profile and the schema covers parameter meaning, which keeps this from being a 1, but an agent reading only the description would not know what the tool can modify.

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 the parameter descriptions are unusually rich (subdomain routing behavior, 502 retry note, TTL semantics, label replacement rules). The description contributes nothing beyond the schema, so the baseline 3 applies.

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

Purpose2/5

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

Tautological: description restates name/title.

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, no prerequisites, and no mention of alternatives. Nothing indicates that this is the tool for renaming a subdomain or extending a TTL, nor when an agent should prefer it over create_sandbox or recover_sandbox.

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