Skip to main content
Glama

Run Python

Run Python

chat

Run Python code from natural language prompts, with optional PyPI package install

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idNoContinue an existing conversation. Omit to start a new one; the reply includes the id.
messageYesThe message to send to the agent.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does state that the tool runs Python code and may install packages, which are real side-effecting actions, but it does not mention execution environment, result returns, potential security implications, or conversation-continuation behavior. The disclosure is accurate but too thin for a code-execution tool with no annotation safety hints.

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?

The description is a single concise sentence that front-loads the core behavior first and then mentions the optional package-install capability. Every word earns its place, with no filler or redundant restatement.

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?

For a two-parameter tool with full schema coverage and no output schema, the description is minimally sufficient: an agent knows what to send and what the tool does. Still, it lacks important context like whether chat_id is needed for continuation, what the reply contains, and what side effects executing arbitrary Python may have. These gaps prevent it from being fully complete.

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 chat_id and message are already documented in the input schema. The description adds no parameter-specific meaning beyond indicating that message may include package install requests. Since the schema carries the parameter semantics, the baseline 3 is appropriate.

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 identifies a concrete action—'Run Python code from natural language prompts'—and adds 'optional PyPI package install,' which clarifies the scope. The tool name 'chat' could be misleading, but the title and description together resolve the ambiguity. Since there are no siblings, there is no alternative to differentiate from.

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?

The description implies this tool should be used when an agent needs to run Python code or install packages, so usage context is somewhat clear. However, there are no explicit when-to-use or when-not-to-use instructions and no alternatives mentioned. It relies on the reader to infer the appropriate invocation context.

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.