Skip to main content
Glama
qa-triage-mcp
by mnawaz6935

Cluster failures by root cause

cluster_failures
Read-only

Groups a run's failures by normalized error signature so many red tests with one cause appear as one cluster, and reports how many earlier runs had the error to separate new from recurring problems.

Instructions

Group a run's failures by normalised error signature, so 30 red tests with one cause show as one cluster. Also says how many earlier runs had the same error, which separates new problems from old ones.

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

Input Schema

NameRequiredDescriptionDefault
run_idNoRun id from list_runs. Leave empty for the latest run.

Output Schema

NameRequiredDescriptionDefault
run_idYes
clustersYes
total_failuresYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already establish this is a safe read (readOnlyHint=true, openWorldHint=false), and an output schema documents the return shape. What the description usefully adds is the normalisation behaviour of the grouping key and the existence of an earlier-run occurrence count, but it omits how normalisation works and whether clusters are ordered or bounded.

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, front-loaded with the core operation and followed by the differentiating detail. No filler; the only slight cost is that the second sentence is framed around a return value rather than usage guidance.

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?

For a single-optional-parameter read tool with a full output schema, the definition covers what the tool produces conceptually (clusters keyed by normalized signature plus historical occurrence counts). Nothing essential to correct invocation is missing, though guidance on choosing it over get_run_failures would close the remaining gap.

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?

The description never mentions run_id or the 'leave empty for latest run' fallback, so it adds no parameter meaning. However, schema description coverage is 100% with a single optional parameter fully documented in the schema, so the baseline of 3 applies.

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?

Names a specific verb and resource ('Group a run's failures by normalised error signature') and makes the output shape concrete with the '30 red tests with one cause show as one cluster' image, which effectively separates it from a raw-per-test tool like get_run_failures. It stops short of naming that sibling explicitly, so the differentiation is inferred rather than stated.

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?

The clustering rationale implies when this is useful (many failures with a shared cause), but there is no explicit when-to-use versus get_run_failures or compare_runs, and no prerequisites or exclusions. The agent must infer the choice from the scenario wording alone.

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