Skip to main content
Glama

Test an app in a fresh sandbox

sandbox_run

Boots a disposable Windows sandbox, runs your app, captures screenshots and crashes, optionally runs a PowerShell test, collects output, and reports clean-machine build results.

Instructions

One shot: boot a fresh sandbox, copy the app folder in, run it, screenshot it, check for crashes, optionally run a PowerShell test script inside, copy files out, destroy the sandbox and write report.md. Use this for "does my build work on a clean Windows machine?". Fails if a sandbox is already running.

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": {
      "app": "<app>"
    },
    "name": "sandbox_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesHost path to an .exe, app folder, .msix, .msixbundle, .appx or .appxbundle.
exeNoExe name when app is a folder with more than one .exe.
argsNo
certNoHost .cer to trust in the disposable guest TrustedPeople store only.
depsNoHost folder of dependency packages. Defaults to a deps folder beside the package.
keepNoLeave the sandbox running afterwards for more poking.
testNoHost path to a .ps1 run inside after launch. Gets $env:SBX_APP_PID, SBX_APP_DIR, SBX_APP_EXE, SBX_OUT. Non-zero exit = fail.
appIdNoManifest Application Id; required when the package has multiple applications.
recordNoRecord desktop evidence at 2 fps for up to 120 seconds; report links HTML and optional MP4.
windowNo
collectNoSandbox paths to copy back to the host afterwards (logs, output files).
consoleNoConsole app: run to completion and capture stdout instead of launching a window.
networkNoon (default): normal internet. firewall: guest firewall blocks outbound (code running as admin could undo it). off: no network adapter at all (strongest isolation; the agent talks over shared folders, a bit slower).
waitSecNoGUI apps: seconds to let the app settle before observing (default 5).
memoryMBNo
provisionNoExplicit opt-in: auto or comma-separated runtime list (e.g. desktop:10.0:x64,vcredist:x64). Host downloads and verifies installers; guest can stay offline. Marks this run PROVISIONED, never a clean-machine pass. Omit for a true clean-machine test.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and largely meets it: it discloses side effects (destroys the sandbox, writes report.md), the blocking precondition of an already-running sandbox, and the tainting behavior of `provision` ("never a clean-machine pass"). It omits how long a run takes, what privileges are needed, and what the call itself returns (report contents are only alluded to).

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 opening sentence is a dense but front-loaded sequence of the actual steps, followed by a use-case trigger and a precondition. Every clause carries information, though the step list is long enough to be slightly run-on.

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

Completeness3/5

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

For a 16-parameter, no-annotation, no-output-schema tool, the description covers the workflow and preconditions but never says what the call returns or how results are surfaced beyond a report.md file. An agent still has to guess the response shape and runtime characteristics.

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 already 81%, so the schema documents nearly all 16 parameters with useful semantics (enums for network/window, ranges for waitSec/memoryMB). The description adds only light framing for `test` and `keep`, staying at the baseline for a schema-driven tool.

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 names the specific resource (a fresh, disposable sandbox) and enumerates the concrete pipeline: boot, copy in, run, screenshot, crash-check, optional test script, copy out, destroy, write report.md. This clearly distinguishes it from granular siblings like sandbox_start, sandbox_launch and sandbox_exec by framing it as "One shot".

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 gives a concrete selecting question ("does my build work on a clean Windows machine?") and a precondition that blocks invocation ("Fails if a sandbox is already running"). It does not explicitly name the step-by-step sibling workflow as the alternative when one-shot is wrong, so it falls short of full when/when-not guidance.

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