Skip to main content
Glama

flaky_test_detector

Analyze test case results across recent runs to identify flaky tests that pass and fail inconsistently, returning a run-by-run trace.

Instructions

Pull this case's result across the last N runs and flag flakiness.

A test is "flaky" if it has BOTH passes and failures in the window AND flips between them at least twice. Returns the run-by-run trace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
case_idYes
project_idNo
last_n_runsNo
Behavior3/5

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

No annotations provided. Description adds flakiness criteria and output format, but doesn't state read-only nature or side effects. Partial transparency.

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 plus definition. Zero waste, front-loaded with action and criteria.

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?

No output schema; description mentions 'run-by-run trace' which provides expected output. Could be more detailed on trace format, but sufficient for a simple tool.

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 0%. Description explains case_id and last_n_runs (N) but does not mention project_id parameter. Adds some value beyond schema but incomplete.

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?

Description clearly states it pulls a test case's result across multiple runs and flags flakiness, with specific definition. Distinguishes from sibling tools like get_results_for_run.

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?

Implied use for flakiness detection, but no explicit when-to-use vs alternatives like get_results_for_run or get_test_case. Missing guidance on prerequisites.

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/Sergey-Bl/testrail-mcp'

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