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

Find flaky tests

find_flaky_tests
Read-only

Identify flaky tests by detecting inconsistent pass/fail patterns across recent CI runs and excluding regressions that fail once and stay broken.

Instructions

Tests that pass and fail without a consistent pattern. A test that broke once and stayed broken is a regression, not flaky, and is left out. Failing and passing on the same commit is the strongest signal.

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

Input Schema

NameRequiredDescriptionDefault
branchNoGit branch, e.g. main
min_flipsNo
last_n_runsNoHow many recent runs to look at

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, openWorldHint=false), so the description only needed to add analytic context -- and it does, by disclosing the classification rule and the relative weight of signals. It does not mention limits, ordering of results, or tie-breaking, which keeps it short of a 5.

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?

Two sentences, no waste, and the core definition plus the strongest-signal ranking are front-loaded where an agent will read them first.

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?

An output schema exists so return values need no explanation, and annotations carry the safety profile; the remaining burden is explaining the detection model, which the description does well. The unexplained min_flips parameter and the lack of any sibling routing keep it from being complete.

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?

With 67% schema coverage the baseline is 3, and the description indeed says nothing about any of the three parameters. The most costly omission is min_flips, which has no schema description yet is central to the tool's semantics -- the description talks about 'passing and failing' but never connects that to a flip threshold.

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 defines the target population precisely -- tests that pass and fail without a consistent pattern -- and explicitly excludes regressions that broke once and stayed broken. That is a sharper scope statement than a bare verb+resource, though it never states the action (e.g., 'returns a list of') and gives no differentiation against siblings such as test_history or cluster_failures.

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?

It supplies selection criteria (exclude one-time breakage; same-commit flips are the strongest signal), which implicitly tells the agent when this tool is the right lens. However, it never names an alternative tool or a when-not-to-use condition, so the agent must infer routing from sibling names alone.

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