Skip to main content
Glama

Copy out of sandbox

sandbox_copy_out

Copies a file or folder from a Windows Sandbox back to the host run output directory and returns the resulting host path, enabling retrieval of generated artifacts or test results.

Instructions

Copy a file or folder from the sandbox back to the host (into the run outDir/files). Returns the host path.

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": {
      "sandboxPath": "<sandboxPath>"
    },
    "name": "sandbox_copy_out"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the copy under outDir/files (default: source name).
sandboxPathYesPath inside the sandbox.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden; it does disclose the destination ('run outDir/files') and the return value ('the host path'), which is real added context. However it omits overwrite behavior when a file of the same name exists, whether the source is removed from the sandbox, recursion semantics for folders, and failure behavior for invalid paths.

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?

Two short sentences, front-loaded with the action and direction, with the return value last. No filler or redundant restatement of the name.

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?

Complete for a two-parameter copy tool: the action, direction, destination, and return value are all covered, and no output schema exists to make return-value explanation redundant. Hands-on edge cases (overwrite, folder recursion) would be nice but are not required for correct invocation.

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%, so both parameters (sandboxPath and name) are already documented, including name's default. The description adds only destination-folder context, which is a baseline-level contribution given the schema does the heavy lifting.

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

Purpose4/5

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

States a specific verb and resource ('Copy a file or folder') plus an explicit direction ('from the sandbox back to the host'), which is exactly the distinction that separates it from the sibling sandbox_copy_in. It does not name the sibling, but direction alone makes the two tools distinguishable without opening schemas.

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

Usage Guidelines3/5

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

Usage is only implied: the phrasing 'back to the host' suggests retrieving artifacts produced inside the sandbox. There is no explicit statement of when to prefer this over alternatives, and no exclusions (e.g. whether it works for a running vs stopped sandbox).

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