Skip to main content
Glama

flaky_tests

Read-onlyIdempotent

Lists tests that failed then passed on re-runs of the same commit at least a configured number of times, so agents can triage unreliable CI results.

Instructions

Tests that failed and then passed on a re-run of the same commit at least min_flakes times.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
min_flakesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and a closed-world scope, so the safety profile is covered. The description adds the substantive behavioral definition of what counts as flaky (fail-then-pass on a re-run of the same commit, meeting a threshold), which is genuinely useful. It says nothing about result ordering, how far back it looks, or cost of scanning history.

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?

A single compact sentence with no filler, and the core criterion is stated up front. It reads as a fragment rather than a declarative statement of what the tool does, which weakens the front-loading slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only query tool with an output schema, the description covers the key domain concept but omits the purpose of 'limit' and any sense of time range or ordering. An agent could call it, but only with guesswork on one parameter.

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 description coverage is 0%, so the description must carry parameter meaning; it does explain min_flakes as an 'at least N times' threshold tied to re-runs of the same commit. The 'limit' parameter is left completely undefined, so half the parameters remain unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a precise criterion for flakiness (failed then passed on a re-run of the same commit) but is a bare noun phrase with no verb, so it never states that the tool lists or returns those tests. It also doesn't distinguish itself from the sibling 'failure', which plausibly covers failed tests.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool rather than 'failure', 'summary', or 'triage_job', nor any note on scope, prerequisites, or exclusions. The agent must infer the use case entirely from the phrase 'flaky tests'.

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

Deploy Server

Other Tools