Skip to main content
Glama
jariy17

tjariy-code-interpreter-mcp-server

by jariy17

execute_code

Run Python, JavaScript, or TypeScript code securely in a sandboxed environment. Execute code snippets with isolated resources for safe testing.

Instructions

Execute code in a secure sandboxed environment. Supports Python, JavaScript, and TypeScript.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe code to execute
languageNoProgramming languagepython

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions a 'secure sandboxed environment,' which is useful, but it does not describe output handling, state persistence, timeouts, filesystem or network access, or side effects. This is a significant gap for a code execution tool.

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?

Two short sentences, front-loaded with the core purpose and followed by the language support. No wasted words, and every sentence contributes to understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema and no annotations, so the description should explain what the agent can expect after execution, such as return values or output format. It also lacks details about sandbox constraints and error behavior, making it incomplete for safe and correct invocation.

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%; both 'code' and 'language' already have descriptions and the language enum is fully specified. The description's mention of supported languages duplicates the enum and adds no new meaning beyond the schema.

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 states a clear verb and resource: 'Execute code in a secure sandboxed environment,' and lists the supported languages. It is not a tautology, but it does not explicitly differentiate itself from the sibling 'execute_command,' so the distinction is left to inference.

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 like execute_command, or how it relates to sessions. The description implies code execution but does not provide any context for tool selection.

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