Skip to main content
Glama

Debug Error

debug_error
Read-only

Analyze runtime errors, exceptions, or stack traces to identify root causes and receive ranked, code-applicable fixes. Supports Python, JavaScript, TypeScript, Go, and Rust.

Instructions

Analyze a runtime error, exception, or stack trace and return root cause + ranked fixes. Use whenever the user pastes an error, asks "why is this failing", "what does this error mean", "debug this stack trace", "fix this exception", "analyze this traceback", or shows a Traceback / TypeError / ReferenceError / AttributeError. Works for Python, JavaScript, TypeScript, Go, Rust. Returns root cause explanation plus up to 3 ranked fixes with machine-applicable code edits. After applying a fix, report whether it worked via the report_outcome tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathNoAbsolute or relative path to the file that threw the error, if known.
languageNoSource language. Use "auto" to let DebugAI detect from the error.auto
errorTextYesThe full error message, exception, or stack trace text.
codeSnippetNoSurrounding code lines near where the error was thrown, if available.
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description confirms this by stating it only analyzes and returns root cause and fixes. It adds context about the return format (up to 3 fixes with code edits) and supported languages. No contradictions or missing behavioral details that are critical.

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 concise and front-loaded with the core purpose. It uses efficient sentences and a clear list of use cases. Every sentence adds value without redundancy, and the structure guides the agent on how to use the tool in sequence with a sibling.

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

Completeness5/5

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

Given the tool's complexity (4 params, 1 required, no output schema), the description provides sufficient context: it explains the return value (root cause + ranked fixes), supported languages, and instructs the agent on the follow-up action (report_outcome). It is complete for the agent to use correctly.

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 coverage is 100%, so the baseline is 3. The description does not add significant meaning beyond the schema; it mentions auto-detection for language and the need for full error text, but these are already in the schema descriptions. Therefore, it does not exceed baseline.

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 verb ('Analyze') and resource ('runtime error, exception, or stack trace') and distinguishes it from the sibling 'report_outcome' which is for reporting outcomes. It leaves no ambiguity about what the tool does.

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?

The description explicitly lists when to use the tool, including specific user phrasings and error types. It also provides a workflow instruction to report outcomes via the sibling tool. However, it does not explicitly mention when not to use it or list alternatives, keeping the score from being a 5.

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/1shizaan/debugai-mcp'

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