Skip to main content
Glama

List Test Runs

listTestRuns
Read-onlyIdempotent

List 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 listLoadTestRuns for their run history (listLoadTests lists the saved load tests); 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

NameRequiredDescriptionDefault
jobIdNoLegacy back-compat filter — list runs for a specific test job.
limitNoMaximum runs to return per page (1-200, default 50). Use `cursor` for the next page.
cursorNoOpaque base64 pagination cursor from `nextCursor` in a previous response.
sortByNoTimestamp field to sort by. Defaults to `startedAt`.startedAt
outcomeNoFilter by outcome.
runTypeNoFilter by run type. `load` is rejected (D-11).
sortDirNoSort direction. Defaults to `desc` (newest first).desc
configIdNoFilter by saved config UUID. Matches runs of a mission-test config and runs of a standard or param test config.
configNameNoOnly standard and param runs whose test name contains this text, or whose run ID does. Case-insensitive. Does not match mission or compliance runs.
phoneNumberNoE.164 phone number filter.
startedAfterNoISO8601 lower bound for startedAt (inclusive).
startedBeforeNoISO8601 upper bound for startedAt (inclusive).
catalogueTestIdNoFilter by compliance catalogue test ID.
configPhoneNumberNoOnly standard and param runs whose test dials a phone number containing this text.

Output Schema

NameRequiredDescriptionDefault
runsYes
nextCursorNoOpaque base64 cursor; present only when more pages are available.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, non-destructive read, and the description adds behavior the annotations cannot: a rejected enum value returns 400, and rows carry ids rather than test names so getTestConfig/getMissionTestConfig must be called to name a run. It also flags the configName false-negative trap before the agent reports "a test has no runs", which is exactly the kind of failure mode worth disclosing.

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?

Front-loaded with the resource and its filters, then use cases, then cross-tool pitfalls — a sensible ordering. It is dense for one paragraph and repeats the load-test exclusion that the schema's runType description already states, so a sentence or two could be trimmed without losing guidance.

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 14-parameter, all-optional list tool with an output schema, the description covers the remaining burden: how filters combine, how paging works, that identifiers in rows need a follow-up lookup, and which sibling to use for aggregates and load runs. 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics on top: configName/configPhoneNumber are case-insensitive substrings scoped to standard and param runs only, configId spans both saved-test kinds, and sort/cursor interact for paging. Minor gap: the outcome list omits the 'pending' value the schema enum allows.

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?

States a specific verb and resource ("List test runs") plus the four run types it covers, and immediately distinguishes itself from siblings by name: aggregateTestRuns for counts, listLoadTestRuns for load history, listTestConfigs/listMissionTestConfigs for saved tests. An agent can route without opening another schema.

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?

Gives explicit use-case phrasings ("last 3 mission failures", "compliance fails in the last 24h") that map to specific filter parameters, plus exclusion rules: use aggregateTestRuns for counts and never page through this list, runType=load returns 400 and belongs to listLoadTestRuns, and configName never matches mission tests so fall back to listMissionTestConfigs. When-not guidance is unusually complete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.