Skip to main content
Glama

x402-mcp

isolated_code_sandbox

Executes JavaScript/TypeScript code in an isolated Node.js vm sandbox with memory bounds, timeouts, stripped dangerous globals, and real console output capture. Requires $0.25 USD fee. [Price: $0.25 USD]

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": {
      "code": "<code>"
    },
    "name": "isolated_code_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesJavaScript code to execute in isolated sandbox
timeoutMsNoExecution timeout in ms (default 2000ms, max 10000ms)
paymentProofNox402 payment proof object
environmentVarsNoOptional environment variables available via ENV object

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses sandbox traits (memory bounds, timeouts, stripped dangerous globals, console capture) and the mandatory fee, but omits critical behavior: what happens on timeout or memory exhaustion, whether network/filesystem access is fully blocked, whether the operation has side effects, and how paymentProof must be constructed. For a paid code-execution tool with zero annotation coverage, these gaps are significant.

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?

Two sentences, front-loaded with the core capability before the payment requirement, with no filler. The trailing '[Price: $0.25 USD]' merely repeats the fee already stated in the first sentence, a small redundancy that keeps it from a 5.

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?

With four parameters including two nested objects (paymentProof, environmentVars), no output schema, and no annotations, the definition should say more about the paid-call flow and what the caller receives. The 'real console output capture' phrase hints at the return shape, but timeout/failure semantics and payment proof acquisition are left unexplained.

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 all four parameters (code, timeoutMs, paymentProof, environmentVars) are already documented in the schema, and the baseline is 3. The description adds no syntax, format, or constraint detail beyond the schema — notably it says nothing about how paymentProof is obtained or how ENV values are typed, which would have been genuinely additive.

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?

The description names a specific verb and resource ('Executes JavaScript/TypeScript code') and immediately characterizes the execution environment (isolated Node.js vm sandbox with memory bounds, timeouts, stripped globals). An agent can tell this is a code-execution tool, not a compute-auction or orchestration tool. It stops short of naming a sibling or alternative, so it lands at 4 rather than 5.

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 guidance on when to use this tool versus alternatives, nor any when-not conditions. The only usage-relevant statement is the $0.25 fee, which is a precondition rather than selection guidance. An agent must infer applicability from the purpose sentence alone.

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