Skip to main content
Glama
AIops-tools

proxy-aiops

error_rate_rca

Rank services by 5xx error share vs fleet baseline, flag anomalies, and map dominant error codes to root causes and actions.

Instructions

[READ] Rank services by 5xx share vs the fleet baseline, cause + action.

The flagship error RCA: reads per-service status-code counters (traefik /metrics, haproxy stats), flags services whose 5xx rate crosses the threshold with enough traffic, and maps the dominant code to a cause (503 no-upstream / 502 conn-fail / 504 timeout / 500 app error). Every entry carries its numbers and its multiple vs the fleet baseline. Pass 'counters' for pure analysis. caddy targets return the support matrix's teaching note (no per-route counters).

Args: error_rate_pct: 5xx %% at/above which a service is flagged (default 5.0). min_requests: Minimum requests before a service can be flagged (default 30). counters: Injected rows {service, total, codes:{...}} and/or classes:{"5xx": n}; skips the live pull. target: Proxy target name from config; omit for the default.

Returns dict: {servicesEvaluated, flaggedCount, fleetErrorRatePct, thresholds, flagged:[{service, requestsTotal, errors5xx, errorRatePct, dominantCode, vsBaselineX, severity, cause, action}], note}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
countersNo
min_requestsNo
error_rate_pctNo
Behavior5/5

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

No annotations are provided, so the description fully discloses behavior. It explains the data sources (traefik/metrics, haproxy stats), the threshold logic, the cause mapping for different status codes, and the impact of passing 'counters' to skip live pulls. It also notes the specific behavior for caddy targets, providing rich behavioral context beyond a simple operation.

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 well-structured with a summary line, detailed behavior, argument explanations, and return schema. It is appropriately sized for a complex tool; every sentence adds value, and it front-loads the core purpose before diving into specifics.

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?

Given the tool's complexity and the absence of an output schema, the description is exceptionally complete. It explains the return dict structure with all fields, covers edge cases (caddy, counters mode), and describes the algorithm. There is no significant missing information that would leave an agent uncertain about invocation or interpretation of results.

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

Parameters5/5

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

The schema has 0% description coverage, and the description compensates fully with an 'Args' section that explains each parameter's meaning, default values, and usage. For example, it defines error_rate_pct as the threshold for flagging, min_requests as the minimum traffic, counters as injected rows, and target as the proxy name. This adds substantial meaning beyond the schema's bare property names.

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 tool's function: ranks services by 5xx share vs the fleet baseline, identifies causes, and suggests actions. It uses specific verbs like 'rank', 'flags', and 'maps', and distinguishes itself from siblings such as error_counters by emphasizing it is the 'flagship error RCA' and providing detailed cause mapping.

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 context on when to use the tool by explaining its core function and noting special modes like passing 'counters' for pure analysis or handling caddy targets differently. However, it does not explicitly compare itself to alternatives such as backend_health_rca or error_counters, so it lacks explicit when-not guidance, placing it slightly below a perfect score.

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/AIops-tools/Proxy-AIops'

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