why
Trace an event ID's causal chain through parent links to its root cause, helping debug unexpected agent actions.
Instructions
Trace the causal chain that led to an event.
Given any event ID, walks back through parent_id links to reconstruct
the full decision tree: user message -> tool call -> result -> response.
Essential for debugging why an agent did something unexpected.
Args:
event_id: The event you want to explain
depth: How many levels back to trace (default 10)
Returns:
Ordered list of events from root cause to the specified event
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": {
"event_id": "<event_id>"
},
"name": "why"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| event_id | Yes |