Skip to main content
Glama

Cloudflare Edge Compute (Browser Run, Sandboxes & Vectorize RAG)

edge_sandbox_exec

Run isolated Python, JavaScript, or shell code in an ephemeral Cloudflare Sandbox container with bounded CPU/timeout and signed execution receipt. ($0.05 via Base USDC _meta["x402/payment"] or Atlas spend_key)

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

Input Schema

NameRequiredDescriptionDefault
codeYes
languageYes
spend_keyNoOptional Atlas prepaid spend key (sbk_*).
timeout_msNo
payment_signatureNoOptional x402 v2 Base USDC PAYMENT-SIGNATURE.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses genuinely useful behavior: ephemeral container, bounded CPU/timeout, a signed execution receipt, and an explicit $0.05 charge payable via x402 Base USDC or an Atlas spend_key. However, it omits network access policy, output/size limits, timeout defaults and maximums, and failure semantics, so an agent still cannot predict the execution envelope precisely.

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 tightly packed sentences with zero filler; the capability statement leads and the pricing/payment note trails, which is the right order for an agent deciding whether to call. The parenthetical pricing syntax is dense but information-bearing.

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 paid code-execution tool with no annotations and no output schema, the definition should say more about what comes back (stdout/stderr, exit code, receipt format) and about timeout behavior. The payment mechanics are well covered, but result handling and resource bounds are left to inference.

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 only 40%, but the description compensates for the important gaps: it maps the language enum values to plain names (python, javascript, shell) and explains that timeout_ms is bounded and that payment_signature/spend_key are the two payment routes. It adds nothing about the required `code` parameter's handling (size limits, whether stdout is captured) or about timeout bounds, so the low-coverage params remain only partly covered.

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?

States a specific verb (Run) plus the exact resource: isolated Python, JavaScript, or shell code executed in an ephemeral Cloudflare Sandbox container. The isolation model, bounded CPU/timeout, and signed receipt distinguish it immediately from the browser and search siblings, which do extraction rather than arbitrary code execution.

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?

Explains what the tool does but never says when to prefer it over alternatives such as edge_compute_preview, nor any when-not conditions (e.g., trusted vs untrusted code, long-running jobs). The agent must infer the usage boundary from the tool name and sibling names 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