Skip to main content
Glama
OpenTelemetry MCP Server

OpenTelemetry MCP Server

by traceloop

Get Llm Slow Traces

get_llm_slow_traces

Find the slowest LLM traces by duration to identify latency bottlenecks and guide performance optimization.

Instructions

Find slowest LLM traces by duration.

Useful for performance optimization and identifying latency bottlenecks.

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": "get_llm_slow_traces"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of traces to return (default: 10)
end_timeNoEnd time in ISO 8601 format
start_timeNoStart time in ISO 8601 format (e.g., 2024-01-01T00:00:00Z)
service_nameNoFilter by service name
min_duration_msNoMinimum duration threshold in milliseconds (only return traces above this)
gen_ai_request_modelNoFilter by requested model name (e.g., "gpt-4")
gen_ai_response_modelNoFilter by actual model used (e.g., "gpt-4-0613")

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure and largely drops it. It never confirms this is a read-only query with no side effects, never says how results are ordered (presumably descending duration), and never explains how limit interacts with the duration threshold or time filters. The one genuinely disclosed behavior is the 'slowest' ranking itself.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the core operation front-loaded, which is the right shape for a telemetry query tool. The second sentence is generic boilerplate that could be tightened, but nothing is actively wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape need not be explained, and all seven parameters are documented in the schema. What is missing relative to the tool's complexity is ordering guarantees and read-only confirmation, which matter for an unannotated performance-analysis query.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each of the seven optional parameters is documented inline, including limit defaults, ISO 8601 time formats, and the semantics of min_duration_ms. The description adds no meaning beyond the schema, but with full coverage the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: find slowest LLM traces by duration, with the ranking criterion ('duration') made explicit. It implicitly distinguishes itself from the sibling get_llm_expensive_traces by ranking on latency rather than cost, but it never names that sibling, so the differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Useful for performance optimization and identifying latency bottlenecks' gives a valid use case, which is more than nothing. However, it offers no when-not guidance and does not point to any alternative tool, so an agent must decide on its own when this beats get_llm_expensive_traces, get_llm_model_stats, or search_traces.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.