Skip to main content
Glama

Run Script

run_script

Runs a Python script without debugging and returns exit code, stdout, and stderr so you can confirm failures and verify fixes.

Instructions

Corre un script Python normal (sin debugger) y devuelve su codigo de salida, stdout y stderr. Usar para comprobar si el script falla y, despues de aplicar un fix, para verificar si ya quedo corregido.

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": {
      "path": "<path>"
    },
    "name": "run_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
timeoutNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden; it does disclose the non-debugger execution mode and the returned streams, which is useful. However it says nothing about execution safety (arbitrary code runs), permissions, blocking behavior, or what happens on timeout, which are material 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with what the tool does and followed by the usage scenario; no filler. It could be tightened only marginally, and the parameter gap is an omission rather than wasted wording.

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 the description does not need to explain return values, and it correctly focuses on purpose and usage. But with zero schema description coverage and no annotations on a script-execution tool, the timeout semantics and execution side effects are left undocumented, leaving an agent guessing on non-trivial aspects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description adds no meaning for either parameter. It does not explain that path is the script to execute or clarify the units/enforcement of the timeout (default 10), so the agent must infer both from parameter names alone.

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?

States a specific verb and resource (run a normal Python script) and explicitly scopes it apart from the debugger, which is exactly what separates it from the sibling debug_run. It also names what comes back (exit code, stdout, stderr), so an agent can identify the tool without opening the schema.

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

Usage Guidelines4/5

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

Gives concrete when-to-use conditions: check whether the script fails, and after applying a fix verify it is corrected. It never explicitly names an alternative tool such as debug_run and says when to prefer it, so it stops short of full routing guidance.

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