Skip to main content
Glama

Copy file out of sandbox

box_copy_out
Idempotent

Copies files or folders from a running Windows sandbox to the host output folder, overwriting same-name items, so results persist before stopping or resetting the sandbox.

Instructions

Copy a file or folder from inside the sandbox to the host run folder (\mail\out<name>), overwriting an existing item of the same name. Returns the host path. Use before box_stop/box_reset to keep results. Requires a running 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": {
      "guest_path": "<guest_path>"
    },
    "name": "box_copy_out"
  }
}

Input Schema

NameRequiredDescriptionDefault
guest_pathYesAbsolute Windows path inside the sandbox, e.g. C:\Users\WDAGUtilityAccount\AppData\Local\app\log.txt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the destination path template, the overwrite behavior ("overwriting an existing item of the same name"), the return value ("Returns the host path"), and the sandbox-must-be-running prerequisite. The overwrite disclosure sits in slight tension with destructiveHint=false, but that is resolved by the fact that the only clobbered item is a file in the designated out folder, and the definition surfaces the behavior rather than hiding it.

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?

Three dense clauses, front-loaded with the operation and destination, then requirements, then the motivating use case. No filler and nothing an agent needs to skip past.

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 low-complexity one-parameter copy with no output schema, the definition covers destination, overwrite semantics, return value, and prerequisite. What is absent is failure behavior — e.g., what happens if guest_path does not exist or names an already-running file — which would help an agent recover from errors.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With one parameter at 100% schema coverage, the baseline is 3, but the description adds meaning the schema does not: "file or folder" tells the agent guest_path may be a directory, and the destination template explains how the output name is derived. Only the actual path syntax is left to the schema's example.

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 directional resource transfer ("Copy a file or folder from inside the sandbox to the host run folder") plus the exact destination pattern (<run>\mail\out\<name>). The inward/outward direction makes it trivially distinguishable from box_copy_in 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 Guidelines4/5

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

Gives explicit timing guidance ("Use before box_stop/box_reset to keep results") and a hard prerequisite ("Requires a running sandbox"). It stops short of naming box_copy_in as the reverse alternative, but the stated direction makes the choice self-evident.

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