Skip to main content
Glama

ai_explain_error

Read-only

Explain an error or stack trace + fix steps (AI) — Paste any error message or stack trace (error=, optional context= for language/framework/what you were doing) and get a plain-English explanation, the most likely root cause, ranked likely causes, concrete fix steps, what to check first, severity, a web search query and confidence. Offline pre-parse detects the language (Python, JavaScript/TypeScript, Java, Go, Rust, C#, Ruby, PHP, SQL), the headline error and the top stack frame. Price: $0.006 USDC (Base, via x402).

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": {
      "error": "<error>"
    },
    "name": "ai_explain_error"
  }
}

Input Schema

NameRequiredDescriptionDefault
errorYesTypeError: Cannot read properties of undefined (reading map) at App (src/App.js:12:5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context beyond that: an offline pre-parse stage that detects language/headline error/top stack frame, an enumerated set of returned artifacts, and a paywalled $0.006 USDC x402 price. The price and preprocessing details are the kind of behavioral context only the description can supply.

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?

The lead clause front-loads the verb, resource and output, and the parenthetical lists (return artifacts, detected languages) are dense but purposeful. The whole definition is a single very long sentence, which is heavier than needed but wastes little; every clause carries information an agent would otherwise have to guess.

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?

With one parameter and no output schema, the description carries the full burden of describing return values, and it does so comprehensively: explanation, root cause, ranked causes, fix steps, what to check first, severity, search query, confidence. Annotations and the documented price round out behavior. The only real gap is the phantom context parameter, which weakens completeness.

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% for the single required `error` parameter, so the schema already anchors the input, and the description's "paste any error message or stack trace" reinforces acceptable content. However, it advertises an "optional context=" parameter for language/framework/activity that does not exist in the input schema, which can mislead an agent into attempting a parameter that will be rejected. That mismatch offsets the otherwise adequate semantics, keeping this at the baseline.

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?

States a specific verb and resource: explain an error or stack trace with fix steps, and adds what the tool returns. Clear enough that an agent knows exactly what it yields, but it never distinguishes itself from the close sibling ai_explain_code (explaining code vs. explaining an error), leaving that call to inference.

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?

"Paste any error message or stack trace" gives a clear trigger condition, and it explains that optional context= carries the language/framework/activity to improve results. There are no explicit exclusions or named alternatives, so an agent must infer that ai_explain_code is for source code rather than errors.

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.

Resources