Skip to main content
Glama

Deploy changed build output

sandbox_deploy

Deploy added or changed files to a running Windows sandbox, remove extra files, verify SHA256 hashes, and optionally launch or restart the app after staging.

Instructions

Explicit warm-sandbox inner loop: transfer only added/changed files, delete removed files, verify all destination SHA256 hashes. Requires an already running sandbox. Rejects links/reparse points and build output that changes while staging. copy_in still does a full replace.

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": {
      "hostPath": "<hostPath>"
    },
    "name": "sandbox_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNo
launchNoExecutable inside the destination, relative or absolute, to launch after verification.
restartNoStop processes whose image path is under the destination before applying; requires launch.
hostPathYesHost build output directory (must be under SANDBOX_MCP_ALLOWED_ROOTS when set).
sandboxPathNoExclusive deployment directory; extra guest files are removed. Default C:\apps\<name>.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly delivers: it discloses destructive deletion of removed files, hash verification, link/reparse-point rejection, and refusal when build output mutates during staging. It stops short of stating atomicity/rollback on partial failure or what a successful verification response looks like, which matters for an unannotated mutation tool.

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, front-loaded with the core behavior and ending with the sibling disambiguation. Every clause carries information — nothing restates the name or title.

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?

Given no annotations and no output schema, the description covers preconditions, destructive effects, and failure modes well. The remaining gap is the result of the call — what verification returns or how failures are surfaced — which an agent would want before relying on it in an inner loop.

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 coverage is 80%, so the baseline is 3. The description reinforces the exclusive-destination/removal semantics that sandboxPath encodes, but adds no meaning for args (undocumented in both places) and says nothing about launch or restart beyond what the schema already states.

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 action and resource — an incremental deploy of build output into a warm sandbox — and pins the semantics down (only added/changed transferred, removed files deleted, SHA256 verified). It also contrasts explicitly with the sibling that does the naive version: 'copy_in still does a full replace.' An agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives the precondition ('Requires an already running sandbox') and names the alternative with the condition that selects it (copy_in for full replace). The phrase 'Explicit warm-sandbox inner loop' frames the intended iteration workflow. Nothing about tool selection is left to inference.

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