Skip to main content
Glama
ar-blues

ScratchRun MCP Server

scratchrun_exec

Execute Python, Node, or bash in a hardened MicroVM sandbox that is purged after each run. Capture charts, CSVs, or files as base64 output and inject secrets via environment variables.

Instructions

Execute code in an ephemeral, MicroVM-isolated sandbox. The VM is hard-purged after execution — no state, no files, nothing persists between calls. Full internet egress (RFC 1918 + cloud metadata always blocked). Use return_files to capture output artifacts (charts, CSVs, data files) as base64. Keep secrets out of code strings — pass them via env instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envNoEnvironment variables injected into the sandbox. Use for secrets and config.
codeYesCode to execute.
filesNoFiles to write before execution. Keys are absolute paths, values are file contents.
runtimeYesRuntime. python3.12 includes numpy, pandas, matplotlib, requests, and more.
memory_mbNoMemory limit in MB.
timeout_msNoExecution timeout in milliseconds. Exit code 124 signals timeout.
return_filesNoFile paths to capture after execution and return as base64. Use for charts, CSVs, or any output artifact.
Behavior5/5

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

With no annotations provided, the description carries full burden and excels: it discloses hard-purge/no persistence, full internet egress with RFC 1918/cloud metadata blocks, and how to retrieve artifacts. This is rich behavioral context beyond basic function.

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?

The description is compact and front-loaded with the primary purpose. Every sentence adds value—covering security, persistence, file capture, and secrets—without redundancy or filler.

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?

Despite no output schema or annotations, the description provides comprehensive context: execution environment, security boundaries, state persistence, artifact retrieval, and secrets handling. It addresses the tool's complexity and likely pitfalls.

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%, providing baseline 3. The description adds extra meaning by explaining the purpose of return_files (base64-encoded artifacts) and recommending env for secrets, reinforcing and supplementing schema descriptions.

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 clearly states the tool executes code in an ephemeral, MicroVM-isolated sandbox, using a specific verb and resource. It conveys the core function and distinctive characteristics (isolation, ephemerality) without ambiguity.

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?

Provides practical usage guidance such as using return_files to capture output artifacts and passing secrets via env instead of code strings. It implies appropriate contexts (e.g., untrusted code, one-off executions) though it doesn't explicitly contrast with alternatives, as none are listed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ar-blues/scratchrun-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server