Skip to main content
Glama

Memoreal — Deterministic AI Memory & Code Intelligence MCP

Find Error Root Cause Candidates

root_cause
Read-onlyIdempotent

Match stack trace frames and error messages against indexed symbols and high-salience architectural memories. Use when diagnosing runtime exceptions, crash logs, and failing tests to isolate bugs.

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>"
    },
    "name": "root_cause"
  }
}

Input Schema

NameRequiredDescriptionDefault
errorNoError message or exception text.
queryNoDiagnostic keywords.
stackNoFull stack trace string.
namespaceYesLogical workspace namespace.

Output Schema

NameRequiredDescriptionDefault
namespaceYes
suspect_filesYes
suspect_symbolsYes
related_memoriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is fully covered. The description adds one useful non-obvious fact, that matching happens against indexed symbols and high-salience architectural memories, but says nothing about ranking, result limits, or what happens when no frames match.

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?

Two sentences, no filler: the matching mechanism leads and the use case follows. Every clause carries information the agent can act on.

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 an output schema, full schema coverage, and rich annotations, the description only needs to convey the matching model and the diagnostic scenario, and it does both. The remaining gap is the relationship to the closely named sibling 'explain_error', which the agent must resolve on its own.

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%, so all four parameters (error, query, stack, namespace) are already documented and the baseline of 3 applies. The description adds no guidance on how the parameters combine, for example whether stack and error should be supplied together or whether query alone is a valid diagnostic path.

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 mechanism: matching stack trace frames and error text against indexed symbols and architectural memories, which is more than a restatement of the name. It does not, however, distinguish this from the sibling 'explain_error' or 'search_code', leaving the agent to infer whether this returns candidates or an explanation.

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?

It gives concrete triggering contexts: runtime exceptions, crash logs, and failing tests, with the goal of isolating bugs. It stops short of exclusions or naming an alternative, so the agent knows when to reach for it but not when to prefer 'explain_error' instead.

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.