Skip to main content
Glama

merjax_list_flaky_tests

Read-only

List a repository's flaky tests. A test is flaky only with a forensic repro: when it failed, CI re-ran just that test in the same order, alone, with the clock shifted +137 ms and +1 s, in TZ=Pacific/Chatham and in a fixed random order, and a variable flipped its verdict N times in a row on the same git tree. Each entry has the test, file, state (active / expired / resolved, or unexplained = flipped with no repro, NOT flaky), label (clock-dependent, order-dependent, concurrency-dependent), the variable, the exact repro command, owner, expiry, issue number, flip rate and evidence runs. Information only — flaky tests are never skipped or quarantined; one targeted retry, and the merge gate excuses a failure only when that retry passed in the same run and the label is active.

Input Schema

NameRequiredDescriptionDefault
repoYes
limitNoMax tests (default 25, max 100)
ownerYes
window_daysNoFlip evidence from this many days back (default and max 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and destructiveHint=false, yet the description adds real behavioral context: the forensic repro criteria that define flaky, the exact per-entry fields returned, and the important caveat that flaky tests are never skipped or quarantined (information only). It does not cover auth needs, rate limits, ordering, or pagination, keeping it off 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.

Conciseness4/5

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

The purpose is front-loaded in the first sentence, and the dense definitional material about the repro and entry fields is mostly load-bearing because 'flaky' would otherwise be ambiguous. The closing sentence about retry and merge-gate excusal is somewhat tangential to a listing tool and stretches the length.

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?

With no output schema, the enumeration of returned fields (test, file, state, label, variable, repro command, owner, expiry, issue, flip rate, evidence runs) is exactly what an agent needs, and the state semantics including 'unexplained = NOT flaky' prevent misreading. Gaps remain around pagination, ordering, and the owner/repo parameter expectations.

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

Parameters2/5

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

Schema coverage is only 50% — limit and window_days are described in the schema, but owner and repo are bare strings with no format guidance. The description compensates by naming none of the four parameters: it never links window_days to the flip-evidence window or explains limit/pagination, so the undocumented half stays unexplained.

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 first sentence gives a specific verb and resource ('List a repository's flaky tests') and the rest of the description sharply scopes what counts as flaky, which separates it from generic failure tools like explain_failure or get_workflow_logs. It never names an alternative sibling explicitly, so it stops short of the top mark.

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?

Usage is implied rather than stated: the descriptions of 'unexplained = NOT flaky', the single targeted retry, and the merge-gate excuse suggest this is the tool to consult when judging whether a CI failure is trustworthy. There is no explicit 'use this when / not when' or named alternative (e.g. explain_failure for root-cause analysis).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources