Root cause
root_causeIdentify the first failing service by comparing errors, traffic and latency to a baseline, detecting deploys/restarts, and returning a ranked incident verdict with timeline and evidence.
Instructions
Find which service broke first and why. Compares every service's errors, traffic and latency with a baseline, pins the first error of each to the millisecond, detects deploys/restarts/host rollouts from the logs, infers the call graph from traces, and returns a ranked verdict with a timeline and evidence. Start here for 'what is causing this incident?'. view='changes': only the deploys and restarts found in the logs (new version-field values, host rollouts, start/stop lines). view='service_map': only which service calls which, from sampled traces, with traffic, error rate and p50/p95 latency per edge.
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": "root_cause"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | What to return; 'verdict' by default | verdict |
| query | No | Optional Lucene filter for scope, e.g. 'env:prod' | |
| range | No | Window to analyse (the incident): '30m', '1h'; 6h for changes, else 1h | |
| sample | No | service_map: number of traces to sample (200) | |
| streams | No | Stream titles or ids; default the repository's focus, else all. ['*'] for everything | |
| to_time | No | Absolute end; default now | |
| baseline | No | verdict: length of the normal period right before the window; same as the window | |
| instance | No | Instance from describe, e.g. 'payment/prod'; the default when omitted | |
| from_time | No | Absolute start, overrides range: ISO 8601 or 'YYYY-MM-DD HH:MM' |