Skip to main content
Glama

jaeger_detect_anomalies

Read-onlyIdempotent

Detect latency and error-rate anomalies in a service by comparing recent traces against a historical baseline to identify performance issues.

Instructions

Detect latency and error-rate anomalies for a service by comparing recent behavior to historical baseline.

Fetches traces from a historical baseline window and a recent observation window, computes per-operation statistics for both, then identifies statistically significant deviations that may indicate performance issues or reliability problems.

Examples: - Use when: "Are there any new performance issues in order-service?" → service='order-service' (uses default 60-minute baseline, 5-minute current). - Use when: "Be more sensitive to subtle changes" → set sensitivity=1.5 (lower threshold). - Use when: "Check for issues over the last 24 hours against previous week" → baseline_duration_minutes=10080, current_duration_minutes=1440. - Don't use when: You want to compare two specific time periods (use jaeger_compare_windows instead). - Don't use when: You want full span detail for a single trace (use jaeger_get_trace instead).

Returns: AnomalyDetectionOutput with flagged operations and severity scores.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceYesService name to detect anomalies for.
sensitivityNoAnomaly sensitivity threshold (1.0-5.0, default 2.0). Lower = more sensitive.
current_duration_minutesNoCurrent observation window in minutes (1-60, default 5).
baseline_duration_minutesNoHistorical baseline duration in minutes (5-1440, default 60).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceYes
anomaliesYes
current_endYes
sensitivityYes
baseline_endYes
current_startYes
baseline_startYes
total_anomaliesYes
latency_anomaliesYes
error_rate_anomaliesYes
Behavior4/5

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

Annotations already indicate readOnlyHint=true and idempotentHint=true. The description adds how it fetches traces and computes statistics, which is useful context. No contradictions or missing disclosures.

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?

Concise with clear sections: purpose, process, examples with usage, returns. No wasted words; front-loaded with key information.

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

Completeness5/5

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

Covers all necessary aspects: purpose, parameters, examples, alternatives, return type. No unexplained gaps given the tool's complexity and existing annotations.

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 description coverage is 100%, so baseline is 3. The description adds value by providing concrete examples of using parameters (e.g., sensitivity, duration windows) beyond the schema definitions.

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 it detects latency and error-rate anomalies for a service by comparing recent behavior to historical baseline. It uses specific verb 'detect' and resource 'anomalies for a service', and distinguishes from siblings like jaeger_compare_windows and jaeger_get_trace.

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

Usage Guidelines5/5

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

Provides explicit 'Use when' examples with parameter suggestions and 'Don't use when' with alternative tool names, giving clear guidance on when to use this tool versus others.

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/mshegolev/jaeger-mcp'

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