Skip to main content
Glama

List Live Survey Tests

listSurveyRuns
Read-onlyIdempotent

List the survey tests that are holding a number now, plus numbers: how many survey numbers the workspace owns and how many are busy and free. Each run has a runId, configId, agentE164 (the nopaque number the survey should be sent to), endUserE164 (the number the survey should come from), state (waiting, in_progress, complete or timed_out), live, channel (sms_chat or phone_call, once the survey arrives), expectedTurns, answersGiven, startedAt, engagedAt and expiresAt (epoch seconds). Takes no parameters. Use when: the user asks whether a survey test is waiting or under way, or why a new one cannot start (each test occupies one number for its whole window, so no free numbers means it is refused). Finished tests drop off this list: for what happened in them use listSurveyResults. Read-only. Needs testing: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": "listSurveyRuns"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
runsYes
numbersYesConcurrency, made visible. A run occupies a number for its window, so this is what to check before starting another test.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive, and the description reinforces that while adding genuinely new context: the required `testing:read` scope and the number-occupancy/refusal semantics that explain observable behavior. It loses a point only because the long field enumeration overlaps what the declared output schema likely carries.

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 core purpose and the numbers summary before the usage clause, with no filler sentences. The list of every run field is somewhat long given an output schema exists, which is the main thing keeping it from a 5.

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 no-parameter listing tool with annotations and an output schema, this covers what is needed: when to call it, when to call the sibling instead, the auth scope, and the state model behind the results. No relevant gap remains for an agent deciding whether to invoke it.

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?

With zero parameters, the baseline applies, and the description usefully confirms 'Takes no parameters' so an agent will not look for a filter argument. Nothing further is needed or possible here.

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 with scope: survey tests currently holding a number, plus a `numbers` summary of owned/busy/free numbers. It explicitly distinguishes itself from `listSurveyResults` by noting finished tests drop off this list, so an agent can route between the two without opening either 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 when-to-use conditions (user asks whether a test is waiting or under way, or why a new one cannot start) and an explicit alternative for the finished case (`listSurveyResults`). It also explains the underlying rule that each test occupies a number for its window, so no free numbers means refusal.

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.