get_trace_details
Retrieve a distributed trace as a flat, tree-ordered span list with depths, totals, and unattached errors to diagnose request flow and performance issues. Searches the last 90 days.
Instructions
Get a distributed trace as a compact, flat list of spans/transactions (id, parent id, op, description, transaction, project, duration ms, start time, linked errors) in tree order with depth, plus totals and errors not attached to any span. Searches the last 90 days. Requires performance/tracing data.
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": {
"trace_id": "<trace_id>"
},
"name": "get_trace_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trace_id | Yes | Trace ID (32-character hex string). | |
| max_spans | No | Max spans to return (1-500, default: 100). Totals always cover the whole trace. |