Skip to main content
Glama

Sandboxd Code Run

Runs Python, JavaScript or TypeScript code in an isolated one-shot sandbox and r

execute-code

Runs Python, JavaScript or TypeScript code in an isolated one-shot sandbox and returns stdout, stderr, exit code and artifacts (Daytona CodeRunRequest/ExecuteResponse compatible) Price: $0.002 a call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoEnvironment variables; keys must match [A-Za-z_][A-Za-z0-9_]* (Daytona's rule)
argvNoCommand-line arguments for the program (sys.argv[1:] in Python, process.argv.slice(2) in Node)
codeYesThe code to run (up to 1 MB of UTF-8)
filesNoText files written into the work directory next to the program (up to 50, 1 MB each, 4 MB total); the entry point main.py/main.js/main.ts is reserved
outputsNoRelative paths to read back after the run (up to 20); up to 1 MB each comes back base64 in outputFiles, larger in tooLargeOutputs, absent in missingOutputs
timeoutNoRun timeout in seconds, 1-120 (default 60); a timed-out run answers exitCode 124
languageYes"python", "javascript" or "typescript"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses isolation ('isolated one-shot sandbox'), the return payload, and cost ($0.002 a call), which is genuinely helpful context. However, it omits key behavior for a code-execution tool: sandbox limitations (network egress, filesystem persistence), auth/permission needs, and rate limits.

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?

Effectively one front-loaded sentence that names the capability, the return values, and the price without filler. The '(Daytona CodeRunRequest/ExecuteResponse compatible)' fragment is jargon that adds little for an agent, and the title largely repeats the description.

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 7-parameter execution tool with no output schema, the description correctly enumerates the return values so return-format documentation is not needed. It is still incomplete on operational constraints (network, persistence, permissions) and gives no routing signal against execute-command.

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 the schema already documents all 7 parameters in detail (env key rules, argv semantics, file limits, output readback behavior, timeout range). The description adds no parameter-level meaning beyond what the schema provides, making the baseline 3 correct.

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 ('Runs Python, JavaScript or TypeScript code'), names the languages, and says what comes back (stdout, stderr, exit code, artifacts). It does not distinguish itself from the sibling execute-command, so the agent cannot tell the two apart from the description alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no comparison with the sibling execute-command. The phrase 'one-shot sandbox' hints at ephemerality, but the description never states when this tool is preferable to execute-command.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources