Skip to main content
Glama
BlockRunAI

BlockRun MCP

Official
by BlockRunAI

blockrun_modal

Run isolated code in a disposable remote sandbox with optional GPU acceleration. Provides a clean ephemeral environment for running untrusted code.

Instructions

Run isolated code in a BlockRun-hosted Modal sandbox — disposable remote container, optional GPU.

Use when you need: a clean ephemeral environment, GPU access (T4/L4/A10G/A100/A100-80GB/H100), or a safer place for untrusted code. Prefer local tools for normal repo work.

Common paths (all POST):

  • sandbox/create — body: { image?, timeout?, cpu?, memory?, gpu?, setup_commands? } ($0.01)

  • sandbox/exec — body: { sandbox_id, command: ["python","-c","..."], timeout? } ($0.001)

  • sandbox/status — body: { sandbox_id } ($0.001)

  • sandbox/terminate — body: { sandbox_id } ($0.001)

Full action shapes + GPU type details in the modal skill.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesEndpoint under /v1/modal/, e.g. 'sandbox/create', 'sandbox/exec'
bodyNoJSON body. Sent as POST.
agent_idNoAgent identifier for budget tracking and enforcement.
Behavior4/5

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

Discloses that the environment is disposable, remote, and optionally GPU-enabled, with cost hints. No annotations provided, but the description covers key behavioral aspects well.

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?

Front-loaded with key purpose, uses bullet points for endpoints, and every sentence adds value without unnecessary verbosity.

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?

Completely covers the tool's functionality for a sandbox runner, despite no output schema, by providing endpoints, cost estimates, and referencing a skill for full details.

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%, but the description adds value by listing common paths and typical body fields, plus agent_id for budget tracking, enhancing meaning beyond schema.

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?

Clearly states it runs isolated code in a Modal sandbox with optional GPU, distinguishing it from sibling tools by mentioning disposable remote containers and GPU access.

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?

Explicitly specifies when to use (clean ephemeral environment, GPU access, untrusted code) and when not to (prefer local tools for normal repo work), including common endpoint paths.

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/BlockRunAI/blockrun-mcp'

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