Skip to main content
Glama
squallydev-admin

squally-mcp

Official

List flaky tests

squally-list-flaky-tests
Read-onlyIdempotent

Find and rank flaky and broken tests by time lost, flake rate, or stable-branch impact to prioritize fixes.

Instructions

The project's flaky and broken tests, ranked, with the time each has cost (timeLostMs). Expensive - one engine pass over the project's recent runs. For a single test use squally-get-test-status instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo1-based page number. A page past the end answers the last page.
sortNoRanking: time lost (default), flake rate, or impact on the stable branch.timeLost
searchNoCase-insensitive substring of the test name or its file.
statusNoOnly tests with this verdict.
perPageNoRows per page.
projectIdYesA project id from GET /projects.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
sortYes
testsYes
projectYes
windowDaysYesThe engine's fixed window in days. The flaky list takes no other period.
gatheringDataCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds a non-obvious behavioral trait: 'Expensive - one engine pass over the project's recent runs', which is valuable cost/performance context beyond the annotations. It also mentions the output field timeLostMs, but that's partially covered by the output schema. No contradiction.

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 with zero fluff. The primary purpose is front-loaded, followed by a cost warning and an alternative tool reference. Every sentence earns its place.

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?

For a tool with 6 parameters, an output schema, and rich annotations, the description is complete. It covers purpose, cost, and routing to the right sibling. Pagination, filtering, and sorting are documented in the schema; return format is in the output schema. Nothing an agent needs to call it correctly is missing.

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%, so all parameters are already documented with descriptions. The description adds minimal parameter-specific meaning—it mentions timeLostMs as an output field, but doesn't clarify any parameter semantics beyond the schema. Baseline 3 is appropriate since the schema carries the load.

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 states a specific verb ('list') and resource ('the project's flaky and broken tests'), and clarifies it is ranked with time cost. It explicitly distinguishes from the sibling squally-get-test-status by saying 'For a single test use squally-get-test-status instead', so an agent can tell them apart without opening schemas.

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

Usage Guidelines5/5

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

It gives explicit context: this is for listing flaky/broken tests across a project, and warns it is expensive. It names the alternative for single-test queries and implies when not to use it. Clear exclusions and context are provided.

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