Skip to main content
Glama

get_flaky_tests

Analyze recent test runs to detect flaky tests based on pass/fail patterns. Identify tests that fail intermittently to improve CI stability.

Instructions

Detect flaky tests by analyzing pass/fail patterns across recent runs. Returns tests that fail intermittently (e.g., "failed 3 of 10 runs"). Killer feature for CI stability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days to analyze (default: 7)
job_nameYesJob name to analyze (e.g., "Test (Blacksmith/Self-Hosted)")
min_runsNoMinimum number of runs a test must appear in to be considered (default: 3)
thresholdNoFlakiness threshold 0-1, e.g., 0.2 means test failed 20%+ of runs (default: 0.1)
Behavior3/5

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

With no annotations, the description carries the burden. It discloses it returns flaky tests with an example pattern but lacks details on edge cases, default behavior, or response format. Adequate but not comprehensive.

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 concise sentences: first states purpose, second adds example and value. No redundant words, front-loaded with key information.

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?

Given moderate complexity, no output schema, but parameters are well-documented. The description covers core behavior and provides a concrete example of output, making it mostly 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?

All four parameters are fully described in the schema (100% coverage). The description adds no extra meaning beyond the schema definitions, so baseline 3 applies.

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 clearly states the tool detects flaky tests by analyzing pass/fail patterns. It uses specific verb 'detect' and resource 'flaky tests', and distinguishes from siblings like get_failed_tests and get_slow_tests by focusing on intermittent 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?

Implied usage for CI stability monitoring, but no explicit when-to-use or when-not-to-use conditions. No alternatives or exclusions mentioned, leaving the agent to infer from context.

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/grahamnotgrant/blacksmith-mcp'

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