Skip to main content
Glama
ThoTischner

observability-mcp

query_traces

Query distributed traces by service and time window to find latency outliers and error spans. Returns ranked summaries with p50/p95 aggregates.

Instructions

Query distributed traces for a service over a given timeframe. Returns ranked trace summaries (duration, span count, error status) with a p50/p95 aggregate across the returned set. When to use: investigate tail-latency outliers, walk call chains across services for a specific time window, or pull traces related to an anomaly that the metric/log tools surfaced first. Prerequisites: get the exact service name from list_services. A Tempo / Jaeger / OTLP connector must be configured. Behavior: read-only. filter accepts the backend's native query language (TraceQL on Tempo, tag query on Jaeger). When errorsOnly=true, only traces with at least one error span are returned. Default limit is 50.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceYesService name (e.g. 'payment-service').
durationNoRolling time window, e.g. '5m', '1h'. Default '15m'.
filterNoBackend-native filter (TraceQL on Tempo, tag query on Jaeger). Optional.
limitNoSoft cap on returned trace summaries. Default 50.
errorsOnlyNoIf true, only traces with at least one error span.
Behavior4/5

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

No annotations are provided, so the description carries full burden. It declares 'Behavior: read-only', explains filter behavior (native query language per backend), errorsOnly effect, and default limit. This sufficiently discloses key behavioral traits.

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

Conciseness5/5

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

The description is a single paragraph that front-loads the main action, then follows with usage guidelines, prerequisites, and behavior details. Every sentence adds value with no redundancy.

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

Completeness4/5

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

Given no output schema and no annotations, the description covers purpose, usage, prerequisites, behavior, and parameter details. It could optionally elaborate on the return format's structure, but it is sufficiently complete for a query tool.

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

Parameters4/5

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

Schema coverage is 100%. The description adds meaning by explaining the service name provenance (from list_services), interpretation of 'filter' (backend-dependent), and that 'limit' is a soft cap. This goes beyond the schema descriptions.

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

Purpose5/5

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

The description clearly states the action 'Query distributed traces' and specifies the resource (traces for a service). It lists the returned outputs (duration, span count, error status, p50/p95 aggregate). The purpose is distinct from sibling tools like query_logs and query_metrics.

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

Usage Guidelines4/5

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

The description provides explicit when-to-use scenarios (tail-latency outliers, call chains, anomaly follow-up) and prerequisites (service name from list_services, configured connector). It does not explicitly state when not to use, but the context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThoTischner/observability-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server