Skip to main content
Glama

Memoreal — Deterministic AI Memory & Code Intelligence MCP

Explain Error Diagnostic Context

explain_error
Read-onlyIdempotent

Parse exception class and stack frames to connect the error with indexed symbols and documented bug patterns. Use when troubleshooting error messages to link stack frames with known bug fixes.

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

Input Schema

NameRequiredDescriptionDefault
errorYesError message or exception string.
stackNoOptional stack trace string.
namespaceYesLogical workspace namespace.

Output Schema

NameRequiredDescriptionDefault
namespaceYes
error_typeYes
extracted_framesYes
relevant_symbolsYes
matching_memoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds that the tool links errors to indexed symbols and documented bug patterns, which is useful context about the underlying lookup. It says nothing further about output shape or limitations, but the output schema covers returns, so a 3 is appropriate.

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 tight sentences, with the core action front-loaded before the usage hint. Every sentence earns its place, though the second sentence partly restates the first's linking concept rather than adding new information.

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?

For a 3-parameter read-only diagnostic tool with full schema coverage and an output schema, the description covers what the tool does and when to use it. The only notable gap is explicit routing against sibling diagnostic tools, which is a minor omission rather than a blocker.

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 all three parameters (namespace, error, stack) are already documented in the schema. The description's mention of exception class, stack frames, and error messages roughly mirrors the schema without adding format details such as expected stack syntax. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource: parsing exception class and stack frames to connect an error with indexed symbols and documented bug patterns. That is clearly distinguishable from siblings like explain_code or root_cause. It stops short of explicitly naming how it differs from those diagnostic siblings.

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?

There is a clear trigger statement — 'Use when troubleshooting error messages' — which implies the right context. However, no when-not conditions or alternatives are given, so an agent facing a vague failure has no guidance on choosing this over root_cause or explain_code.

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.