Skip to main content
Glama
This connector has been deprecated

Replaced by rent.dev.

Duplicate listing. rent.dev is listed from the official MCP Registry as dev.rent/rent, and that listing is the maintained one.

Run code in a kernel

rent_run_code
Destructive

Needs a rent.dev account: sign in when your client offers it, or call rent_signup first. Runs code on the Jupyter kernel of a code-interpreter-v1 sandbox and answers its rich results (text, images as base64, …), stdout, stderr and error. State persists between calls in one context_id; a context lives as long as the sandbox. timeout_s defaults to 50. Arguments not listed here go to the REST route as they are, which refuses them by name.

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

Input Schema

NameRequiredDescriptionDefault
envNo
codeYes
languageNoDefault python.
timeout_sNo
context_idNo
sandbox_idYesSandbox id (`lse_…`) from rent_create_sandbox or rent_list_sandboxes. It names the sandbox for its whole life and keeps answering rent_get_sandbox, with the final state, after it ends.

Output Schema

NameRequiredDescriptionDefault
errorYes
stderrYes
stdoutYes
resultsYes
execution_countYes

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?

Annotations already declare non-read-only, destructive, open-world, non-idempotent behavior, so the description only has to add detail; it adds real value by naming the auth requirement, the state-persistence model and context lifetime, and the fact that unknown arguments are rejected by name at the REST layer. It does not say what is actually destroyed or how code execution affects the sandbox's other state, which matters for a `destructiveHint: true` tool. That is enough to justify a 3, not a 4.

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?

Dense and mostly front-loaded: prerequisite first, then what it does, then state, then timeout and argument behavior. Each sentence carries information, with no filler. The trailing note about unlisted arguments going to the REST route is useful but phrased awkwardly and slightly opaque.

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?

An output schema exists, so return-shape explanation is not required, and the description still usefully names the result channels. For a destructive, arbitrary-code execution tool with a 33%-covered 6-parameter schema, though, the missing guidance on how `language` interacts with the kernel, what `env` does, and when to prefer this over the related exec tools leaves it short of fully equipping an agent.

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 coverage is 33%, so the description is expected to fill gaps; it explains `context_id` semantics (state persists, context dies with sandbox) and repeats the `timeout_s` default that the schema already carries. The `env`, `language` (beyond a default), and the interaction between `context_id` and `sandbox_id` remain undocumented in both places. It adds partial meaning, not full compensation, so it sits at the baseline.

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?

States a specific verb and resource: runs code on the Jupyter kernel of a `code-interpreter-v1` sandbox, and describes what comes back (rich results, stdout, stderr, errors). The scope is scoped to a particular sandbox type and an execution context, which an agent can act on. It does not differentiate itself from the sibling `rent_exec`, which appears to be a closely related execution tool, leaving the main ambiguity unresolved.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a real prerequisite: sign in via the client or call `rent_signup` first. It also explains state semantics, in that `context_id` persists state across calls for the life of the sandbox, which implies a usage pattern for multi-step work. However, it gives no guidance on when to choose this tool over `rent_exec` or `rent_start_process`, and no exclusions, so the when-not case is entirely missing.

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