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

mcp-root-cause-detective

by tarihte1110

correlate_with_git_changes

Read-onlyIdempotent

Matches Git commits to an incident timeline to find likely faulty changes; if the timestamp is omitted, uses the error time from the current analysis session.

Instructions

Son Git commit'lerini olay zamanıyla eşleştirerek olası hatalı değişiklikleri bulur.

incident_timestamp boş bırakılırsa en son analiz oturumundaki en erken hata zamanı kullanılır.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "correlate_with_git_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathNo.
max_commitsNo
lookback_hoursNo
incident_timestampNo

Output Schema

NameRequiredDescriptionDefault
errorNo
commitsNo
repo_pathYes
lookback_hoursYes
commits_analyzedNo
incident_timestampNo
suspect_commits_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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 needs no restating. The description adds genuinely new behavior: an omitted `incident_timestamp` silently resolves to the earliest error time from the most recent analysis session. It does not explain how commits are matched to the event time or how results are bounded, which leaves meaningful gaps.

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 short sentences with no filler, and the primary purpose is front-loaded before the parameter fallback note. Nothing could be cut without losing meaning, though the second sentence is narrow enough that it could be tightened further.

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

Completeness3/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, and the read-only annotations cover safety. What remains thin is the mechanics an agent would want before calling: how wide the correlation window is, whether `repo_path` must be a valid Git repository, and what happens when no commits fall in range.

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 carries the full burden for four parameters. It explains only `incident_timestamp` and its fallback semantics; `repo_path`, `max_commits` and `lookback_hours` are left entirely to their self-descriptive names and schema defaults, with no explanation of whether the lookback window is measured from the incident timestamp or from now.

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: it correlates recent Git commits with incident event times to identify suspicious changes. That is clearly distinguishable from siblings like analyze_log_files or trace_request_flow. It stops short of explicitly naming when a sibling tool is the better choice, so it is clear but not fully differentiated.

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?

The implied use case — after an incident, to hunt for a faulty change — comes through, and the fallback rule for a missing `incident_timestamp` is spelled out. There is no explicit statement of preconditions (e.g. must the repo path already exist and be a valid Git repo?) or of alternatives when commit correlation is not the right approach.

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