Skip to main content
Glama

Run a Scripted Test

runTest
Destructive

Run a saved scripted test now: nopaque calls the number and checks each step. Takes testConfigId (from createTestConfig or listTestConfigs). Returns the run at once; read the outcome with getRunResults, which is usually ready after a minute or two. This uses the workspace's minutes or credit and cannot be undone; when a person is present, get a yes first. Use when: a scripted test should be run, for example after a change to the phone system has been deployed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "testConfigId": "<testConfigId>"
    },
    "name": "runTest"
  }
}

Input Schema

NameRequiredDescriptionDefault
testConfigIdYesThe ID of the test configuration to execute.

Output Schema

NameRequiredDescriptionDefault
idYes
statusYes
carrierNoBring-your-own-carrier (invite-only): the carrier route this run was dialled through, recorded when the run was dispatched. It still names that route after the config's `carrierRouteId` is changed or removed. Absent when the run was dialled normally. See `GET /testing/carrier-integrations` for the route's name and settings.
outcomeNoUnified run outcome — see MissionTestRun.outcome. Optional/nullable for historical rows pre-backfill.
createdAtNo
lateStartNoLoad-test calls: true when the system under test first spoke later after answer than the test's late-answer threshold (6 s by default), on passed and failed calls alike. Absent when nothing measured it.
startedAtYes
completedAtNo
phoneNumberNo
verdictNoteNoPassed with note: why a call (or step) that failed on its hold check counts as passed. `hold_unconfirmed`: the call reached hold and the line had sound on it, but the live check could not confirm music (set by the tester, `by: live`). `hold_music_rechecked`: after the run, the hold detector heard music in the call's recording (`by: recheck`). `outcome` is `PASS` and `originalOutcome` keeps the outcome before the note. Absent on calls and steps without a note.
workspaceIdYes
testConfigIdNo
callTelemetryNoCall-level telemetry captured during an IVR test call, nested onto `TestRun.callTelemetry`. Populated for standard, mission and compliance runs by the tester / mission-tester containers. nopaque's own carrier cost is internal and is never returned.
carrierDetailNoTelnyx's record of this call, fetched once a few minutes after the call ends and stored on the run (absent until then). `status` is `not_found` when Telnyx had no record after three tries. Give `sipCallId` to your carrier or SBC team to find this exact call in their logs.
carrierEventsNoWhat the carrier's event log and the call recording say about this call, derived once a few minutes after the call ends and stored on the run (absent until then). Times named `...Secs` are seconds after the call was answered. `status` is `not_found` when the carrier had no events for the call after three tries, `error` when they could not be read. A source that could not be read is named in `errors`; the others are still filled.
failurePatternNoLoad-test calls that did not pass: why the call failed, as a named pattern with an owner and the values that put it there (`evidence`). Absent on passed calls, and on calls not yet classified. `rulesVersion` says which version of the rules produced it.
originalOutcomeNoPassed with note: the call's outcome before a `verdictNote` changed it to `PASS`. Absent unless a note changed the outcome.
callDurationSecsNoReal call duration in seconds (post-answer → last node), surfaced from `callMetadata.callDurationSecs`. Preferred over the wall-clock diff (`completedAt − startedAt`), which inflates by 100–150s+ from queue wait, container start, ringing and post-call stashing. Same field billing meters on. Rows with no tester duration (mission runs) report the container's computed call length here instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, and the description adds context the annotations cannot: it consumes workspace minutes or credit, cannot be undone, and should be confirmed with a person when one is present. It also sets expectations on result latency ('usually ready after a minute or two') rather than implying synchronous completion.

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

Conciseness5/5

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

Five short clauses, each carrying distinct information: action, mechanism, parameter source, result handling with timing, cost/irreversibility/confirmation, and usage trigger. No repetition of the annotations or padding.

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?

An output schema exists so return values need not be described, and the description still tells the agent where to fetch results and roughly how long to wait. For a single-parameter irreversible action with real cost, nothing needed to call it correctly or safely 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% and the single parameter is documented there, so the baseline would be 3. The description adds provenance the schema lacks by naming createTestConfig and listTestConfigs as sources for testConfigId, which is genuinely useful for constructing the call.

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?

Opens with a specific verb and resource (run a saved scripted test) and immediately explains the mechanism: nopaque calls the number and checks each step. That distinguishes it from the sibling get/list/cancel tools without the agent needing to inspect a 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 an explicit 'Use when' clause with a concrete example (after a phone-system change is deployed), states that the id comes from createTestConfig or listTestConfigs, and routes outcome reading to getRunResults. When-to-use, prerequisites, and the follow-up alternative are all named.

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.