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

mcp-root-cause-detective

by tarihte1110

trace_request_flow

Read-onlyIdempotent

Trace a given trace_id or request_id across all services to map its end-to-end request flow for root cause analysis.

Instructions

Belirli bir trace_id veya request_id değerinin tüm servislerdeki akışını çıkarır.

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": {
      "correlation_id": "<correlation_id>"
    },
    "name": "trace_request_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
analysis_idNo
correlation_idYes

Output Schema

NameRequiredDescriptionDefault
errorNo
stepsNo
analysis_idYes
total_eventsNo
correlation_idYes
services_involvedNo
total_duration_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the meaningful scope detail that the traversal spans all services, but says nothing about depth, time bounds, or what happens when the id is unknown (empty result vs. error). With an output schema present, return shape need not be described.

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. It is efficient, though the brevity contributes to the parameter and usage gaps noted elsewhere.

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?

For a tool with two totally undocumented parameters (0% schema coverage) and no stated call conditions, the definition leaves too much for the agent to infer. Annotations and the output schema cover safety and return shape, but the input contract and selection criteria remain incomplete.

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%, so the description must carry the burden, yet it refers to `trace_id` or `request_id` while the schema's required parameter is named `correlation_id`. The optional `analysis_id` parameter is never mentioned at all, leaving its purpose and relationship to the analysis workflow undocumented.

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 names a specific verb and resource (extract the flow of a given correlation value across all services), which is concrete enough for an agent to act on. It does not differentiate itself from look-alike siblings such as get_timeline_slice or inspect_error_cluster, so sibling disambiguation is left to the reader.

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 guidance on when to reach for this tool versus the other diagnostic tools, and no stated prerequisites (e.g., that an analysis_id or existing trace must already exist). The only implicit cue is 'all services,' which hints at cross-service correlation but does not route the agent explicitly.

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