Skip to main content
Glama
alvii147
by alvii147

run_code

Execute code in the specified language and receive the output from the Piston remote execution engine.

Instructions

Runs given code in the given language in the Piston remote code execution engine.

Parameters

language: str Programming language to run code in.

code : str Code to run.

Return

str Output of code execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageYes
codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must carry full burden. It states code is run but omits details on side effects, permissions, timeout, or whether stderr is captured. The return is described as 'Output of code execution' without specifics.

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?

Well-structured with a header line and parameter descriptions in a list format. Could be slightly more concise by removing the 'Parameters' and 'Return' headers if not needed, but overall efficient.

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?

The description covers the core function and parameter semantics, but lacks important context like supported languages, error handling, or sandboxing behavior. With an output schema present, return explanation is adequate.

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?

Despite 0% schema description coverage, the description provides clear parameter meanings: 'language' as the programming language and 'code' as the code to run. This adds value beyond the schema's bare titles.

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?

The description clearly states the tool's purpose: running code in a given language using the Piston remote code execution engine. It specifies the verb 'runs' and the resource 'code', making it unambiguous.

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?

No guidance on when to use this tool versus alternatives. With no sibling tools, it still lacks explicit context on prerequisites, safety considerations, or when not to use it.

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/alvii147/piston-mcp'

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