Skip to main content
Glama

List Digital Test Runs

listDigitalTestRuns
Read-onlyIdempotent

List digital (chat) test runs in your workspace, newest first: each has an id, targetRef (the bot), kind, sector, status (pending, running, completed, failed, cancelled), outcome, how many samples were requested and judged, passed, failed and transportErrors (chats that never got a verdict), passRate, failureReason, startedAt and completedAt. Takes optional targetRef (exact, e.g. acme/billing-bot: only that bot's runs), limit (1 to 200, default 50) and cursor (nextCursor from the previous page; absent on the last page). Use when: the user asks how a chat bot's tests went, or for the latest digital runs. outcome and transportErrors are separate on purpose: a bot that answers well but drops chats has a delivery problem, not a behaviour one. For one run's transcript and judge reasoning use getDigitalTestRun. Voice runs are in listTestRuns, not here. Read-only. Needs digital:read.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRejected with 400 outside 1-200 rather than silently clamped.
cursorNoOpaque base64 pagination cursor from `nextCursor` in a previous response.
targetRefNoRestrict to one target (the chat analogue of a phone number).

Output Schema

NameRequiredDescriptionDefault
runsYes
nextCursorNoOpaque base64 cursor. Present ONLY when another page exists, and OMITTED (not null) on the last page, so a generated `while (res.nextCursor)` paginator terminates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / runs / items / properties / target / discriminator / mapping / direct-line
      Added value: +"#/components/schemas/DirectLineTarget"
    • addedOutput schema / properties / runs / items / properties / target / discriminator / mapping / lex-v2
      Added value: +"#/components/schemas/LexV2Target"
    • changedOutput schema / properties / runs / items / properties / target / oneOf
      Previous value: -[
      -  {
      -    "description": "Amazon Connect chat via StartChatContact plus the participant websocket.",
      -    "properties": {
      -      "assumeRoleArn": {
      -        "description": "Optional cross-account role. Absent means ambient credentials.",
      -        "type": "string"
      -      },
      -      "attributes": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "description": "Contact attributes set at StartChatContact.",
      -        "type": "object"
      -      },
      -      "contactFlowId": {
      -        "example": "<contact-flow-id>",
      -        "type": "string"
      -      },
      -      "instanceId": {
      -        "example": "<connect-instance-id>",
      -        "type": "string"
      -      },
      -      "region": {
      -        "default": "us-east-1",
      -        "type": "string"
      -      },
      -      "transport": {
      -        "enum": [
      -          "connect-chat"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "transport",
      -      "instanceId",
      -      "contactFlowId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Generic REST chat endpoint, including OpenAI-compatible shapes.",
      -    "properties": {
      -      "authRef": {
      -        "type": "string"
      -      },
      -      "endpoint": {
      -        "example": "https://bot.example.com/v1/chat",
      -        "type": "string"
      -      },
      -      "openaiCompatible": {
      -        "type": "boolean"
      -      },
      -      "transport": {
      -        "enum": [
      -          "http-json"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "transport",
      -      "endpoint"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Browser-automated embedded chat widget, for targets with no API at all.",
      -    "properties": {
      -      "selectorProfile": {
      -        "type": "string"
      -      },
      -      "transport": {
      -        "enum": [
      -          "web-widget"
      -        ],
      -        "type": "string"
      -      },
      -      "url": {
      -        "example": "https://example.com/support",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "transport",
      -      "url"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Amazon Connect chat via StartChatContact plus the participant websocket.",
      +    "properties": {
      +      "assumeRoleArn": {
      +        "description": "Optional cross-account role. Absent means ambient credentials.",
      +        "type": "string"
      +      },
      +      "attributes": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Contact attributes set at StartChatContact.",
      +        "type": "object"
      +      },
      +      "contactFlowId": {
      +        "example": "<contact-flow-id>",
      +        "type": "string"
      +      },
      +      "instanceId": {
      +        "example": "<connect-instance-id>",
      +        "type": "string"
      +      },
      +      "region": {
      +        "default": "us-east-1",
      +        "type": "string"
      +      },
      +      "transport": {
      +        "enum": [
      +          "connect-chat"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "transport",
      +      "instanceId",
      +      "contactFlowId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Generic REST chat endpoint, including OpenAI-compatible shapes.",
      +    "properties": {
      +      "authRef": {
      +        "type": "string"
      +      },
      +      "endpoint": {
      +        "example": "https://bot.example.com/v1/chat",
      +        "type": "string"
      +      },
      +      "openaiCompatible": {
      +        "type": "boolean"
      +      },
      +      "transport": {
      +        "enum": [
      +          "http-json"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "transport",
      +      "endpoint"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Browser-automated embedded chat widget, for targets with no API at all.",
      +    "properties": {
      +      "selectorProfile": {
      +        "type": "string"
      +      },
      +      "transport": {
      +        "enum": [
      +          "web-widget"
      +        ],
      +        "type": "string"
      +      },
      +      "url": {
      +        "example": "https://example.com/support",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "transport",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Amazon Lex V2 via RecognizeText. Plain request and response, no websocket.",
      +    "properties": {
      +      "assumeRoleArn": {
      +        "description": "Optional cross-account role. Absent means ambient credentials.",
      +        "type": "string"
      +      },
      +      "botAliasId": {
      +        "example": "<lex-bot-alias-id>",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "botId": {
      +        "example": "<lex-bot-id>",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "localeId": {
      +        "default": "en_US",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "region": {
      +        "default": "us-east-1",
      +        "type": "string"
      +      },
      +      "transport": {
      +        "enum": [
      +          "lex-v2"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "transport",
      +      "botId",
      +      "botAliasId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Microsoft Bot Framework Direct Line 3.0: Copilot Studio agents and Azure Bot\nService bots. Holds a token endpoint URL, never a Direct Line secret.\n",
      +    "properties": {
      +      "directLineDomain": {
      +        "description": "The Direct Line host, for example `https://europe.directline.botframework.com`.\nWhen absent it is discovered (Copilot Studio) or the global host is used.\n",
      +        "type": "string"
      +      },
      +      "locale": {
      +        "default": "en-US",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "skipStartEvent": {
      +        "default": false,
      +        "description": "A `startConversation` event is sent when the conversation opens, which is what\nmakes a Copilot Studio agent greet. Set true for a bot that greets on its own.\n",
      +        "type": "boolean"
      +      },
      +      "tokenEndpoint": {
      +        "description": "An https endpoint that returns a Direct Line token. Copilot Studio serves one;\nfor Azure Bot Service it is an endpoint the customer hosts that exchanges their\nsecret for a token.\n",
      +        "example": "https://bot.example.com/directline/token",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "transport": {
      +        "enum": [
      +          "direct-line"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "transport",
      +      "tokenEndpoint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered and the description's "Read-only" restates it. What it adds beyond annotations is real: the required `digital:read` scope, newest-first ordering, the explicit note that outcome and transportErrors are distinct signals (delivery vs. behaviour), and cursor semantics including absence on the last page. Rate limits and result-size ceilings are not mentioned, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose, trigger, alternatives and constraints are well front-loaded, and the outcome-vs-transportErrors clarification earns its sentence. However, the long middle enumeration of every returned field (id, kind, sector, samples, passRate, timestamps) is largely redundant against the output schema and bloats an otherwise tight definition.

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 read-only filtered list tool with a full output schema, annotations covering the safety profile, and 100% schema coverage, the description supplies everything an agent still needs: what is returned at a glance, ordering, the exact scope, pagination behaviour, auth scope, and both sibling alternatives. Nothing required for a correct call 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 description coverage is 100%, so all three parameters are already documented, and the baseline is 3. The description adds some genuine meaning the schema lacks — that `targetRef` is an exact match with a concrete format example (acme/billing-bot) and that `cursor` comes from `nextCursor` and is absent on the last page — but it largely echoes the schema's own bounds and defaults for `limit`.

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 opens with a specific verb and resource plus ordering ("List digital (chat) test runs in your workspace, newest first") and immediately scopes itself away from siblings: voice runs live in listTestRuns and a single run's detail lives in getDigitalTestRun. An agent can route without opening any 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?

It states an explicit trigger ("Use when: the user asks how a chat bot's tests went, or for the latest digital runs") and names two alternatives with the condition that selects each: getDigitalTestRun for transcript/judge reasoning, listTestRuns for voice. That is the full when/when-not/alternative triad.

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.