List Test Runs
listTestRunsList test runs (mission/compliance/standard/param) with rich filters: runType, outcome (PASS/FAIL/ERROR/INCONCLUSIVE), phoneNumber, configId, catalogueTestId, configName / configPhoneNumber (standard and param runs only: case-insensitive substring of the test name or run id, substring of the number it dials), date range (startedAfter/startedBefore), sort (startedAt/completedAt asc/desc), and cursor pagination. Use cases: "last 3 mission failures", "runs against phone +44… this week", "compliance fails in the last 24h", "latest run of the standard test called X" (use configName). There are two kinds of saved test: standard tests (listTestConfigs) and mission tests (listMissionTestConfigs). configId matches the runs of one saved test of either kind. configName never matches a mission test: if it finds nothing, look the test up in listMissionTestConfigs and filter by configId before telling the user a test has no runs. Rows carry ids, not test names: use getTestConfig or getMissionTestConfig to name one. For counts and percentages use aggregateTestRuns instead, never by paging through this list. D-11: Load tests live in a separate table — use listLoadTests; runType=load returns 400 here.
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": "listTestRuns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | Legacy back-compat filter — list runs for a specific test job. | |
| limit | No | Maximum runs to return per page (1-200, default 50). Use `cursor` for the next page. | |
| cursor | No | Opaque base64 pagination cursor from `nextCursor` in a previous response. | |
| sortBy | No | Timestamp field to sort by. Defaults to `startedAt`. | startedAt |
| outcome | No | Filter by outcome. | |
| runType | No | Filter by run type. `load` is rejected (D-11). | |
| sortDir | No | Sort direction. Defaults to `desc` (newest first). | desc |
| configId | No | Filter by saved config UUID. Matches runs of a mission-test config and runs of a standard or param test config. | |
| configName | No | Only standard and param runs whose test name contains this text, or whose run ID does. Case-insensitive. Does not match mission or compliance runs. | |
| phoneNumber | No | E.164 phone number filter. | |
| startedAfter | No | ISO8601 lower bound for startedAt (inclusive). | |
| startedBefore | No | ISO8601 upper bound for startedAt (inclusive). | |
| catalogueTestId | No | Filter by compliance catalogue test ID. | |
| configPhoneNumber | No | Only standard and param runs whose test dials a phone number containing this text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | Yes | ||
| nextCursor | No | Opaque base64 cursor; present only when more pages are available. |