Skip to main content
Glama

codeSandbox

codeSandbox

Run JavaScript or Python for computations, data transformations, and custom programs, with generated files saved as persistent artifacts for later reading or reuse.

Instructions

Run JavaScript (Node.js ESM .mjs; use import) or Python for computations, data transformations and custom programs. For ordinary PDF/Word/Excel/PPT reading, prefer file: download a remote document URL, then readContent with its artifactId (or read an upload by attachmentId). Do not install document parsers merely to duplicate file extraction; use code for explicit programming requests or concrete unsupported processing needs. Files written under outputs/ or listed in outputFiles are saved as persistent artifacts with URLs. readFile reads sandbox output bytes; it is not a PDF/Office text parser. inputFiles mounts saved artifacts for subsequent code. Read Skill system-code-sandbox-runtime before use. Keep stdout compact; files use a separate export channel.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.10

TDQS

A4.5/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it discloses several non-obvious traits: files under outputs/ or in outputFiles become persistent artifacts with URLs, stdout is separate from the file export channel and gets truncated, inputFiles mounts prior artifacts, and readFile reads bytes rather than parsing documents. It stops short of sandbox isolation, network access, failure/timeout behavior, or resource limits, which leaves real gaps for a code-execution tool.

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?

Purpose is front-loaded and every sentence carries information, but the body is a single dense paragraph mixing routing guidance, persistence semantics, readFile caveats, a skill prerequisite, and stdout hygiene. Slight redundancy between "saved as persistent artifacts with URLs" and "files use a separate export channel" could be tightened, yet nothing is padding.

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 two-mode execution tool with no annotations and no output schema, the description covers the essentials an agent needs: when to use it, when to defer to file, how artifacts persist, how to mount inputs, and that readFile is a byte reader. Missing are the execution environment's constraints (network, filesystem scope, timeout consequences) and what a failed run returns.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: inputFiles mounts saved artifacts "for subsequent code," outputFiles is a persistence channel distinct from stdout, and stdout budget is clamped and truncated rather than used for transfer. It reinforces the schema rather than merely restating it, though it does not clarify timeoutMs or the readFile offset/limit paging flow.

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?

Opens with a specific verb plus runtime detail: "Run JavaScript (Node.js ESM .mjs; use import) or Python for computations, data transformations and custom programs." It also explicitly demarcates itself from the sibling `file` tool's extraction path, so an agent can route document reading versus programming tasks without opening any schema.

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?

Gives an explicit when-not and a named alternative: "For ordinary PDF/Word/Excel/PPT reading, prefer file: download a remote document URL, then readContent...". It adds the inverse rule, "Do not install document parsers merely to duplicate file extraction; use code for explicit programming requests or concrete unsupported processing needs," plus a prerequisite ("Read Skill system-code-sandbox-runtime before use"). Both the positive and negative selection conditions are stated.

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