Skip to main content
Glama

Start sandbox

box_start

Boots a disposable Windows Sandbox VM and acquires the host-wide lock, waiting until the guest agent is ready. Call it first to run commands, copy files, or snapshot an isolated Windows session.

Instructions

Boot a fresh, disposable Windows Sandbox VM and take the host-wide sandbox lock; call this first, then box_exec/box_copy_in/box_snapshot, and box_stop when done (box_trial starts one automatically). Blocks until the in-guest agent is ready (up to 240 s). Fails if this session already has a sandbox (use box_reset), if another agent holds the lock and wait_s runs out, or if a sandbox opened outside winbox is running. A lock left by a dead winbox process is taken over and its leftover sandbox is killed. Returns the boot time and the host run folder.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "box_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerNoLabel shown to other agents waiting on the lock (default: WINBOX_OWNER env var or 'pid <n>').
wait_sNoSeconds to wait (polling every 2 s) if another agent holds the sandbox; 0 = fail immediately.
networkNo'on' = normal networking; 'off' = no network adapter at all (use for running untrusted executables).on
memory_mbNoSandbox RAM in MB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations by disclosing that the call blocks until the in-guest agent is ready (up to 240 s), the three distinct failure conditions (existing sandbox in session, lock contention vs wait_s, externally opened sandbox), the dead-process lock takeover that kills the leftover sandbox, and the returned values. The leftover-sandbox kill is a side effect annotations (destructiveHint=false) do not convey, but it applies to a disposable VM rather than user data, so it is additional disclosure rather than a contradiction.

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?

Front-loaded with purpose and sequencing, and every sentence carries load-bearing information (blocking, failure modes, lock takeover, return values). Slightly dense and semicolon-chained, which costs a point on readability but not on content.

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

Completeness5/5

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

For a blocking, lock-acquiring VM boot with no output schema, the description covers prerequisites, blocking duration, failure branches, recovery paths, and the return values (boot time and host run folder). Nothing an agent needs before calling is missing.

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 100%, so owner, wait_s, network, and memory_mb are already fully documented in the schema, including the enum and default. The description only adds the wait_s failure interaction ('if another agent holds the lock and wait_s runs out'), leaving the baseline 3 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?

States a specific verb and resource: 'Boot a fresh, disposable Windows Sandbox VM and take the host-wide sandbox lock.' It also positions itself in the tool sequence (first, then box_exec/box_copy_in/box_snapshot, box_stop when done), which separates it cleanly from every sibling in the list.

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?

Explicit sequencing guidance ('call this first'), explicit alternatives for the error cases ('use box_reset', 'box_trial starts one automatically'), and explicit teardown ('box_stop when done'). An agent knows both when to call it and what to do when it fails.

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