slowest_spans
Identify the slowest spans in a trace or across all runs to diagnose why an execution was slow. Set k for top results and omit trace_id to search every run.
Instructions
Top-k slowest spans. Use for 'why was this run slow?'. Omit trace_id to search all runs.
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": "slowest_spans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| trace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |