search_spans
Search OpenTelemetry spans by substring in span names or attributes, like a tool name, file path, or 'denied'; optionally narrow by trace ID.
Instructions
Substring search over span names/attributes, e.g. a tool name, file path, or 'denied'.
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": {
"needle": "<needle>"
},
"name": "search_spans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| needle | Yes | ||
| trace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |