Skip to main content
Glama

run_python

Execute Python scripts or code directly within the Code Buddy MCP server to test, run, and validate Python programs during development workflows.

Instructions

Run a Python script or code

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoPython code to execute
filepathNoPython file to run (alternative to code)
timeoutNoTimeout in seconds
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral information. It doesn't disclose execution environment (sandboxed?), security implications, output handling (stdout/stderr capture), error behavior, or what happens with the timeout parameter. 'Run' implies execution but lacks critical operational details.

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?

Extremely concise at 5 words with zero wasted text. The description is front-loaded with the core functionality. Every word earns its place, though this conciseness comes at the cost of completeness.

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?

For a code execution tool with 3 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain execution results, error handling, environment context, or safety considerations. The agent lacks sufficient information to use this tool effectively beyond basic parameter passing.

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%, so parameters are fully documented in the schema. The description adds no additional parameter semantics beyond what's in the schema properties. It mentions 'script or code' which aligns with the code/filepath parameters but provides no extra context about their relationship or usage.

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 'Run a Python script or code' clearly states the action (run/execute) and the target (Python script/code). It distinguishes this from non-Python execution tools like 'run_command' or code analysis tools like 'analyze_code', but doesn't explicitly differentiate from all siblings. The purpose is specific but could be more precise about scope.

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 is provided on when to use this tool versus alternatives. The description doesn't mention when to prefer 'code' vs 'filepath', when to use this instead of 'run_command' for Python execution, or any prerequisites like Python installation. Usage context is implied but not stated.

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/Abhi-vish/code-buddy'

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