Skip to main content
Glama
Leeroo-AI

Leeroopedia MCP Server

Official
by Leeroo-AI

diagnose_failure

Analyze symptoms and logs against known failure patterns to identify root causes, then return diagnosis, fix steps, and prevention advice.

Instructions

Diagnose errors, failures, or unexpected behavior using knowledge base documentation.

Checks your symptoms and logs against known failure patterns, common misconfigurations, and documented environment issues — finding root causes faster.

Use this tool when you need:

  • Root cause analysis of errors, crashes, or unexpected behavior

  • Debugging configuration issues or dependency problems

  • Understanding why a framework behaves differently than expected

Returns: diagnosis, fix steps, and prevention advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logsYesRelevant log output, error messages, or stack traces
symptomsYesDescription of the failure symptoms or unexpected behavior

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.9

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose the operating model (knowledge-base pattern matching) and the shape of the result (diagnosis, fix steps, prevention advice), which implies a non-destructive read. However, it never explicitly states read-only/non-mutating behavior, whether logs are persisted, or any auth or rate-limit constraints.

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?

Front-loaded with the core action, then a short bullet list of use cases and a returns line. Mostly tight, though the three usage bullets overlap substantially (root cause analysis vs debugging vs understanding behavior), so it is efficient but not maximally compressed.

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 two-parameter, no-output-schema tool, the description usefully explains what is returned (diagnosis, fix steps, prevention advice), compensating for the absent output schema. The remaining gap is the unaddressed safety/read-only profile in the absence of annotations.

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%, with both required parameters ('symptoms', 'logs') clearly documented in the schema itself. The description only loosely restates them ('checks your symptoms and logs') without adding format, size, or content guidance, so the baseline of 3 applies.

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 opens with a specific verb+resource ('Diagnose errors, failures, or unexpected behavior using knowledge base documentation') and clarifies the mechanism (matching symptoms/logs against known failure patterns). It does not, however, differentiate itself from the sibling 'search_knowledge', which also operates over a knowledge base — an agent could reasonably confuse the two.

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 explicit 'Use this tool when you need' contexts: root cause analysis, debugging config/dependency problems, explaining unexpected framework behavior. That is clear when-to-use guidance, but it names no exclusions and does not route the agent away from 'search_knowledge' or toward 'verify_code_math' for adjacent tasks.

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