Skip to main content
Glama

voice_scenarios

Create, edit, run, and review live duplex-voice acceptance scenarios that place real calls to test agent transcripts, frames, and HTTP checks, with per-run headers for protected flows.

Instructions

Live duplex-voice acceptance scenarios (ai_voice_scenarios) — the portal/MCP surface over admin/voice_scenario_runner.py. action: list | get (slug) | set (slug + agent_kind + steps; upsert — step types: say / expect_transcript / expect_frame / http_check / wait, shapes in the runner's module docstring) | delete (slug) | run (slug; launches a background job that places a REAL call against the engine's own /voice/live — or target ws(s)://; headers are per-invocation HTTP headers forwarded to the WS connection AND merged into each http_check step's own headers — the way to carry a portal login cookie or other secret for a deep protected-flow scenario without ever storing it on the scenario row) | runs (recent results, optional slug filter). Runs need AZURE_SPEECH_KEY on the service (else they land as status=skipped).

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

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
slugNoScenario slug.
limitNoMaximum number of rows to return.
notesNoFree-text notes.
stepsNoOrdered scenario steps (utterances, checks).
titleNoScenario title.
actionNoOperation to run: list | get | set | delete | run | runs. The tool description lists what each action needs.list
localeNoCaller language for the scenario.
targetNows(s):// URL of a remote deployment to call instead of this engine.
enabledNoWhether the scenario is active.
headersNoPer-run HTTP/WS headers (never stored).
ws_pathNoWebSocket path the scenario calls (default /voice/live).
agent_kindNoAgent kind the scenario calls.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: `run` places a REAL call against /voice/live as a background job, requires AZURE_SPEECH_KEY and otherwise degrades to status=skipped, `set` is an upsert, and `headers` are never persisted on the scenario row. It stops short of stating what `delete` destroys (e.g., prior runs), permission requirements for mutating actions, or concurrency/rate limits.

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

Conciseness2/5

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

The content is information-dense, but it is delivered as one giant parenthesized run-on with nested parentheses and pipe-delimited action fragments, making it hard to scan. The action list is buried mid-sentence rather than front-loaded, and an agent must parse several levels of nesting to extract the action-to-parameter mapping.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter, six-action tool with an output schema (so return values need not be explained), the description covers the critical operational facts: the real-call side effect, the speech-key prerequisite and its degraded outcome, upsert semantics, and secret handling. The main remaining gap is the undefined step-object shapes, which are pushed to external documentation.

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; the description earns above that by explaining non-obvious semantics the schema does not: that `headers` are forwarded to the WS connection AND merged into each `http_check` step's headers as a way to carry a login cookie without storing it, that `target` overrides the engine's own /voice/live, and that `slug + agent_kind + steps` are what `set` needs. Step shapes are only deferred to the runner's module docstring rather than described, which caps the score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific resource ("Live duplex-voice acceptance scenarios") and enumerates the exact action set (list | get | set | delete | run | runs) plus the backing runner script, so an agent knows precisely what domain of object this manages. It does not, however, contrast itself with plausible alternatives such as e2e_runs or eval_runs, so it is clear but not sibling-differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Per-action guidance is implied through the action list (set = upsert, run = launch background job, runs = recent results), and the description correctly notes that `target` points at a remote deployment instead of the local engine. It never says when an agent should prefer this over neighboring run/suite tools, nor when an action is inappropriate, leaving usage largely to inference.

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