Skip to main content
Glama

Create a Scripted Test

createTestConfig

Save a scripted phone test: a number to call and an ordered list of steps, each one listening for expected words and optionally pressing keys or speaking. Saves the test and places no call; run it with runTest. The id of a step can be left out; one is generated. If a required value was not given (the phone number, what should be heard, what counts as success), ask for it; do not invent one. Say which optional settings are being left at their defaults. If what should be heard at each step is not known, map the number first (createMapping, startMapping, getMappingTree) and build the steps from the tree. Use when: a repeatable check is wanted that a phone menu says and does specific things.

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": {
      "name": "<name>",
      "phoneNumber": "<phoneNumber>",
      "steps": "<steps>"
    },
    "name": "createTestConfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
typeNostandard
stepsYes
languageNoTranscription language for this config's calls. Omit it (or send `null`) and the config is saved with `en-GB`, so the response always carries a language. Any other value outside the enum is rejected with 400 `Invalid language: <value>` — in particular bare `en`, which is a `CallLanguage`, not a transcription language. The 400 body names the transcription set, lists every valid code and points at `GET /languages`, which adds the labels.
profileIdNo
scheduleIdNoSchedule ID to attach. Use `template:<template-id>` to create from a recurring template.
descriptionNo
phoneNumberYes
carrierRouteIdNoBring-your-own-carrier (invite-only). Dial this config's calls through one of the workspace's carrier routes, over the workspace's own SIP trunk, instead of nopaque's network. Carrier routes are set up with nopaque. A config with a route dials through it or not at all: if the route cannot be dialled when a run starts, the run is refused and the number is never called normally. A refused `POST /testing/runs` returns 409 (or 503); a scheduled run, batch or sweep records a failed run whose `errorMessage` says why; a load test fails before it starts. Carrier calls are metered as `carrier_testing` (load tests: `carrier_load_testing`), not `testing`. The route is checked when the config is saved: 400 if it cannot be dialled, 503 if it could not be looked up. `phoneNumber` is then checked as a destination of that route.
backgroundNoiseNoCaller background noise played under the call. Omit for none.
maxDurationSecsNoWhole-call ceiling in seconds. When omitted the tester applies its own default of 300. Every `hold` step's `durationSecs` must be no longer than this value (or 300 when unset).
patternSettingsNoLoad-test failure-pattern thresholds and re-prompt phrases for this IVR. Omit for the platform defaults.
requiredParametersNo

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
typeNo`standard` runs the steps as-is; `parameterized` requires `requiredParameters` filled at run-time (sweep / batch dispatchers supply them).
stepsYes
versionYesBumped on every update — clients can use for optimistic concurrency.
languageNoTranscription language the config's calls are transcribed in. Resolved to `en-GB` when the config was created without one, so every config created since the field existed carries a value; configs saved before it have none, which also means `en-GB`.
createdAtYes
createdByYesUser ID of the creator.
profileIdNoVoice / data profile for `standard` configs only. Omitted for `parameterized`.
updatedAtYes
scheduleIdNoSchedule that triggers automated runs (use `template:<id>` to create from a built-in template).
descriptionNo
phoneNumberYesE.164-formatted phone number the test calls.
workspaceIdYes
carrierRouteIdNoBring-your-own-carrier (invite-only). Dial this config's calls through one of the workspace's carrier routes, over the workspace's own SIP trunk, instead of nopaque's network. Carrier routes are set up with nopaque. A config with a route dials through it or not at all: if the route cannot be dialled when a run starts, the run is refused and the number is never called normally. A refused `POST /testing/runs` returns 409 (or 503); a scheduled run, batch or sweep records a failed run whose `errorMessage` says why; a load test fails before it starts. Carrier calls are metered as `carrier_testing` (load tests: `carrier_load_testing`), not `testing`. Omitted when the config dials normally.
backgroundNoiseNoCaller background noise played under the call. Omit for none.
maxDurationSecsNoWhole-call ceiling in seconds. When omitted the tester applies its own default of 300. Every `hold` step's `durationSecs` must fit inside it.
patternSettingsNoLoad-test failure-pattern thresholds and re-prompt phrases for this IVR. Omit for the platform defaults.
requiredParametersNoRequired parameter labels for `parameterized` configs only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-destructive, non-idempotent create; the description adds the crucial behavioral fact that saving places no call, plus that step ids are generated when omitted. It does not discuss what happens on duplicate names, whether re-creating overwrites, or validation failures, but it adds real context beyond the annotations.

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?

Purpose and the no-call caveat are front-loaded, followed by id behavior, prerequisite mapping, and a closing 'Use when' line. Every sentence carries information, though the instruction to ask for missing required values and to announce defaults is procedural padding that could be one clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 no explanation, and the description covers the essential create-then-run workflow and the mapping prerequisite. For a 13-parameter tool with under half schema coverage, though, the many optional settings (language, carrier routing, noise, duration ceiling, pattern settings) go unmentioned, so the agent is under-informed about the configuration surface.

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 coverage is only 46% across 13 parameters, so the description should compensate more than it does. It explains the core trio (phoneNumber, steps, and that step ids may be omitted) and the listen/press/speak nature of steps, but says nothing about language, carrierRouteId, backgroundNoise, maxDurationSecs, patternSettings, scheduleId, or requiredParameters, leaving many optionals to the schema alone.

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 ('Save a scripted phone test') and immediately scopes it: a number plus an ordered list of steps that listen for expected words and optionally press keys or speak. It also draws a clean line against runTest ('Saves the test and places no call; run it with runTest'), so an agent can distinguish create from execute 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit 'Use when: a repeatable check is wanted that a phone menu says and does specific things', names runTest as the execution alternative, and prescribes a prerequisite workflow (createMapping, startMapping, getMappingTree) when expected speech is unknown. The only gap is that sibling creators (createDigitalTestConfig, createMissionTestConfig) are never differentiated, so the agent must infer that this one is for phone-menu IVR checks.

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.