Skip to main content
Glama
mcp-root-cause-detective

mcp-root-cause-detective

by tarihte1110

diagnose_raw_stacktrace

Read-onlyIdempotent

Analyze pasted terminal error logs and stack traces to identify error clusters, timeline context, and likely root causes for debugging.

Instructions

Terminalden yapıştırılan karmaşık hata çıktılarını ve stack trace yığınlarını analiz eder.

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": {
      "raw_log_text": "<raw_log_text>"
    },
    "name": "diagnose_raw_stacktrace"
  }
}

Input Schema

NameRequiredDescriptionDefault
source_nameNoterminal_output
raw_log_textYes
window_secondsNo

Output Schema

NameRequiredDescriptionDefault
errorNo
warningsNo
analysis_idNoAşamalı inceleme (drill-down) araçlarında kullanılacak oturum kimliği.
error_spikesNo
sources_scannedNo
total_errors_foundNo
trace_correlationsNo
stacktrace_insightsNo
timed_entries_countNo
total_lines_scannedNo
root_cause_hypothesesNo
timeline_correlationsNo
unique_error_clustersNo
untimed_entries_countNo
mermaid_sequence_diagramNoÇoklu servis olay akışını görselleştiren Mermaid sequenceDiagram metni.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds almost nothing beyond that: it does not say what the analysis produces, how large the input can be, or what window_seconds controls. The only behavioral nuance offered is that the text is pasted rather than read from disk.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity is appropriate structurally, though it shades into under-specification rather than tightness.

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

Completeness2/5

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

An output schema exists, so return values need not be described, but the input side is thin: two of three parameters are undocumented and there is no routing guidance versus analyze_log_files or inspect_error_cluster. For a diagnostic tool with a window parameter that changes semantics, the description leaves too much for the agent to guess.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must carry the burden and it does not. It hints at raw_log_text but never explains source_name (default 'terminal_output') or window_seconds (default 5), leaving two parameters completely undefined for the caller.

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 sentence names a specific verb (analiz eder) and a specific resource (karmaşık hata çıktıları ve stack trace yığınları) and pins the input source to something pasted from a terminal. It does not differentiate itself from siblings like analyze_log_files or inspect_error_cluster, which likely overlap in scope, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The only implicit signal is that input is raw terminal text rather than a file path, which a caller has to infer from 'Terminalden yapıştırılan'.

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