Skip to main content
Glama

debug_runner

Run commands, tests, or scripts and analyze failures with error types, stack traces, and suggested fixes. Automatically detects runtime for scripts in multiple languages, deterministic without LLM.

Instructions

Run command/script/test and analyze failures: 14 error types, 4-language stack traces, suggested actions. script mode auto-picks runtime (js/py/go/rs/sh). Deterministic, zero LLM.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoOptional working directory relative to workspace_dir (e.g. "0FTYcloud"). Scripts that must run in a subdirectory no longer need cd workarounds.
testNoTest command to run in workspace_dir (e.g. "npm test", "pytest")
scriptNoScript path relative to workspace_dir to run + auto-analyze (js/mjs/py/go/rs/sh by extension). Pass exactly one of command/script/test; script wins over command
commandNoShell command to run (e.g. "node src/main.js")
timeoutNoTimeout in ms (default: 30000, min 1000)
workspace_dirYesREQUIRED: absolute path of the project root to run in

Schema Changelog

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

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden. It adds meaningful behavior details: 'Deterministic, zero LLM', script-mode auto-runtime selection, and 14 error types with 4-language stack traces. However, it does not mention potential side effects of running arbitrary commands (e.g., file modifications, network access), which would be important for a command 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?

The description is three concise sentences with no fluff. The first sentence fronts the primary purpose and outputs, while the second adds a key behavioral detail (script mode runtime selection) and the third states determinism. Every sentence contributes value.

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

Completeness4/5

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

Given no output schema, the description compensates by detailing the analysis output (14 error types, 4-language stack traces, suggested actions) and key behavior (deterministic, zero LLM). It lacks a bit on success-handling or side effects, but the core context is covered, especially with rich parameter descriptions in the schema.

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%, and the schema already documents each parameter thoroughly (e.g., script auto-picks runtime, pass exactly one of command/script/test). The description does not add significant parameter-level meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

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 runs a command/script/test and analyzes failures, with specific features like 14 error types and 4-language stack traces. This verb+resource combination distinguishes it from sibling tools (e.g., test_bridge, tsc_check) by emphasizing execution plus automated failure analysis.

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 explicit guidance on when to use this tool versus alternatives such as test_bridge or find_tests. The description implies general debugging use but does not provide exclusions or compare against sibling tools, leaving the agent to infer applicability.

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

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/wulun811/LiuHe'

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