Squally
v0.11.1Query Playwright test analytics from AI assistants: flaky tests, failures, CI time lost to retries.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
squally-list-projects List projects
Lists the projects in your Squally organization. Start here: every other tool needs a projectId, and this is the only tool that produces one.
squally-find-run Find runs
Finds runs of a project, CI and local alike - the latest, or filtered by branch, commit SHA, status or source (all by default; ci or local narrows it, and each run says local). Status is passed, failed, cancelled, incomplete or running; settled is false while the run can still change. One row per logical run: a sharded run is collapsed into a single entry, its counters over all its shards and per Playwright project variant, like Playwright - a test that ran in chromium and firefox counts twice; each job of a CI run that sets a job key is its own run (jobKey). attempt and rerunOf say which atte…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | A project id from GET /projects. |
branch | string | Exact branch name. |
cursor | string | Opaque. Pass nextCursor from the previous answer for the next page of older runs. Without a cursor the newest runs come first. |
days | integer | The period, in days, ending now. Must not exceed the plan's retention (Standard 60, Pro 90 days); a longer period is refused with 400 invalid_period rather than answered with less data. |
sha | string | A commit SHA or a prefix of one (4-40 hex characters). Matches the run's commitSha - the commit the run is reported under: the pushed commit, or for a pull request its head - or its testedRevision, th… |
source | string | Which runs are listed, by where they ran: all - every run (the default); ci - runs a shard reported a CI provider for; local - runs no shard did (each run's local field). Since 1.0.0-beta.14. |
status | string | Only runs with this status - the status field's values. A cancelled run matches cancelled only (since 1.0.0-beta.14; passed and failed were the only values before it, and a cancelled run matched neith… |
squally-get-run Get one run
One run with its per-test result rows, across every shard - one row per Playwright project variant, like Playwright: a test that ran in chromium and firefox is two rows, each named with its project ("chromium > cart.spec.ts > adds"). Use this to find out which test is red in a run; the run list carries only the counters. Its status is cancelled for a cancelled run (cancellation says how and when), and local says it ran without CI. Like squally-find-run it carries settled, jobKey, attempt, rerunOf and ciRunUrl - for a re-run, rerunOf.id is the run it re-ran, to compare with. Each test row is th…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | A project id from GET /projects. |
runId * | string | A run id from GET /projects/{projectId}/runs - or any shard's id of a sharded run. |
squally-debug-failure Debug a failing test
Every attempt of one test in one run - one Playwright project variant, by the name squally-get-run lists, project included - oldest first, each with the error, the stack and the full-context prompt (the same text Squally's Fix panel copies under Fix in your agent, Without MCP), and the test's annotations (an issue link, a skip or fixme reason), its line, worker and start time. This is the tool for 'why did this test fail'. If the test name is ambiguous, pass filePath.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | A project id from GET /projects. |
runId * | string | A run id from GET /projects/{projectId}/runs - or any shard's id of a sharded run. |
testName * | string | The test's name exactly as squally-get-run lists it - with its Playwright project when it has one, for example "chromium > checkout flow > completes payment": one project's variant, the way a run coun… |
filePath | string | The spec file of the test, as stored (e.g. tests/checkout.spec.ts); an empty value means a test with no file. Pass it exactly as shown in Squally; do not URL-encode, the server does. Needed only when… |
squally-get-test-metrics Get one test's metrics
One test's numbers over a period, the test once across its Playwright projects: by its name without the project, as squally-list-tests lists it, every project counts (projects names them, variants carries each project's own numbers); project, or a stored name with its project as squally-get-run lists it, counts that project's variant only. A run counts as failed when the test failed in any project, and as passed only after a retry when it did so in some project and failed in none. runs, stability (runs that passed on the first try / runs), flakyRate (runs that passed only after a retry / runs)…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | A project id from GET /projects. |
testName * | string | The test's name WITHOUT its Playwright project, as squally-list-tests lists it - for example "checkout flow > completes payment" - counts the test across all its projects. A stored name with its proje… |
branch | string | Only runs on this branch, the name exactly. Every branch when absent. |
days | integer | The period, in days, ending now. Must not exceed the plan's retention (Standard 60, Pro 90 days); a longer period is refused with 400 invalid_period rather than answered with less data. |
filePath | string | The spec file of the test, as stored (e.g. tests/checkout.spec.ts); an empty value means a test with no file. Pass it exactly as shown in Squally; do not URL-encode, the server does. Needed only when… |
project | string | Only this Playwright project's variant of the test, exactly (e.g. chromium) - the numbers as they were per variant before 1.0.0-beta.19. Every project of the test when absent. A project the test did n… |
source | string | Which runs count, by where they ran: all - every run (the default since 1.0.0-beta.18; ci before); ci - runs a shard reported a CI provider for; local - runs no shard did. The response's population na… |
squally-list-tests List tests
Every test with a counted run in the period, CI and local (source=ci or source=local narrows it), one row per test across its Playwright projects - testName is the name without the project, projects names them and variants carries each project's own numbers; project (a list) counts only those projects - with the same numbers per test as squally-get-test-metrics - runs, stability, flakyRate, failureRate, time lost, median duration - ranked worst first by the chosen sort (default: lowest stability). There is no verdict and no status - the tool labels no test; you judge the numbers. Moderate - tw…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | A project id from GET /projects. |
branch | string | Only runs on this branch, the name exactly. Every branch when absent. |
days | integer | The period, in days, ending now. Must not exceed the plan's retention (Standard 60, Pro 90 days); a longer period is refused with 400 invalid_period rather than answered with less data. |
page | integer | 1-based page number. A page past the end answers the last page. |
perPage | integer | Rows per page, 1 to 100. |
project | array | Only these Playwright projects, each exactly as named (e.g. ["chromium"] or ["chromium", "firefox"]): each test then counts only those projects' variants. Every project when absent. |
search | string | Case-insensitive substring of the test name or its file. |
sort | string | Ranking, the worst first: stability (the default) lowest first; flakyRate, failureRate, runs and timeLost highest first. Ties go to the most runs (for runs: the lowest stability), then to the test nam… |
source | string | Which runs count, by where they ran: all - every run (the default since 1.0.0-beta.18; ci before); ci - runs a shard reported a CI provider for; local - runs no shard did. The response's population na… |
squally-list-errors List errors
The project's error signatures in a period: failures grouped by fingerprint, with how often and how recently each occurred. Answers 'is this failure one instance of something that keeps happening' - a grouping no agent can compute from the repository alone. Counts finished runs, CI and local, by default (source=ci or source=local for one of them), a sharded run once, mass-failure runs included. Each test counts once across its Playwright projects: testCount and testNames (names without the project) are tests, projects names the projects the error hit. failedRunCount and flakyRunCount say how t…
| Parameter | Type | Description |
|---|---|---|
projectId * | string | A project id from GET /projects. |
days | integer | The period, in days, ending now. Must not exceed the plan's retention (Standard 60, Pro 90 days); a longer period is refused with 400 invalid_period rather than answered with less data. |
page | integer | 1-based page number. A page past the end answers the last page. |
source | string | Which runs count, by where they ran: all - every run (the default since 1.0.0-beta.18; ci before); ci - runs a shard reported a CI provider for; local - runs no shard did. The response's population na… |