Skip to main content
Glama

MCP Server By TestMu AI

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as TestMu AI (formerly LambdaTest). If you published it, claim ownership there.

Get Flaky Tests

analytics_list_flaky_tests
Read-onlyIdempotent

Lists tests that TestMu AI Test Intelligence marks as flaky in a date range, with each test's flake rate, build and environment. Test Intelligence flags a test as flaky from its status changing across runs of the same test name (or, when the org chose that setting, from failing with different errors across consecutive runs), and needs at least 10 runs of that test. flake_rate is a ratio from 0 to 1 of flaky runs to all runs (0.4 means 40%). Returns only flaky tests, plus how many tests were scanned. Flakiness is only computed for about the last 7 days of tests; the response says how many tests in the range had it.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum flaky tests to return, 1 to 200. Defaults to 50.
toDateNoEnd date, YYYY-MM-DD (UTC), included. Defaults to today.
fromDateNoStart date, YYYY-MM-DD (UTC), no earlier than 59 days before today (older results are not served). Defaults to 30 days before toDate.

Output Schema

NameRequiredDescriptionDefault
toDateYes
fromDateYes
truncatedYesTrue when tests_in_range is larger than tests_scanned.
flaky_countYes
flaky_testsYes
tests_scannedYesTests read and counted (at most 5000).
insights_errorNo
tests_in_rangeYesTests the API holds for the range.
tests_with_insightsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Most of the description's behavior detail restates what the response already carries: it says the tool returns only flaky tests plus a scanned count, and explains flake_rate as a 0–1 ratio, all of which the output schema supplies. It does add real, non-schema behavior context, though: the 10-run minimum and the roughly 7-day computation window are limits an agent cannot see in the schema.

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 description leads with purpose and keeps the key caveats (10-run minimum, 7-day window) up front, so an agent can skim it quickly. A few clauses, such as the parenthetical about org-configured error-based detection and the flake_rate ratio example, are useful for interpreting results, but they make the description read as a dense block rather than a tight unit.

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?

The description tells the agent everything that matters before calling: what qualifies as flaky, the minimum run count, the retention and computation windows, and the meaning of flake_rate. With annotations covering the safety profile and an output schema covering the response shape, no material gap remains.

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?

Schema coverage is 100% and all three parameters are already documented with defaults and bounds, so the description carries little extra weight. It only says the results fall in a date range, while the specifics (UTC, 59-day floor, 1–200 limit, defaults) stay in the schema. That makes the baseline 3 the right score.

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 opens with a specific verb and resource — 'Lists tests that TestMu AI Test Intelligence marks as flaky' — plus scope (date range) and per-row payload (flake rate, build, environment). That level of specificity is enough for an agent to separate it from generic analytics siblings like analytics_get_summary or analytics_get_errors without reading the schema.

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?

It gives clear applicability conditions: a test needs at least 10 runs of the same name, flakiness is only computed for roughly the last 7 days, and older dates are noted in the schema. It never names an alternative tool or says explicitly when not to use this one, so it falls just short of a 5.

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