Skip to main content
Glama

Preview a voice

preview_voice
Destructive

Render one bounded, rate-limited voice preview for the authenticated workspace. A text-to-speech voice speaks the caller's text (at most 200 characters); a conversation-engine voice (GPT-Live 1.1, Gemini Live, Eleven Realtime) auditions the text in a bounded native session and may rephrase it. Custom text/audio are not shared or cached; empty text keeps Skysay's sample behavior. For Eleven Realtime send only the voice fields: it refuses a non-empty agent_id, credential_id or delivery; GPT-Live 1.1 and Gemini Live refuse a non-blank credential_id. This may contact a managed provider or validate BYOK and can write preview-rate and exact voice-availability state; it is not a read-only or free preview. Returned audio is bounded in-memory WAV data, always the whole clip: a GPT-Live 1.1 or Gemini Live preview of a long sentence takes as long as the voice needs, with its first audio within 10 seconds and the whole session within 30 seconds, and fails with voice_preview_timed_out past either or voice_preview_too_large past the 1 MiB audio ceiling rather than returning a cut clip. An Eleven Realtime preview keeps its own limit: 9 seconds from when its platform slot is reserved to prepare, connect and receive the reply; past that, or past its audio size limit, it fails with voice_preview_rejected, and a reply whose start is not audible fails with voice_preview_no_speech.

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": {
      "project_id": "<project_id>",
      "provider": "<provider>",
      "model": "<model>",
      "voice_id": "<voice_id>",
      "language": "<language>"
    },
    "name": "preview_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoOptional audition text, at most 200 characters. TTS speaks it; a native conversational engine may rephrase. Custom text/audio are not persisted or shared. Empty text uses Skysay's sample.
modelYes
agent_idNoOptional saved hosted agent id in this workspace, at most 512 characters after trimming surrounding whitespace, for an exact pinned managed TTS voice retry. Eleven Realtime refuses a non-empty value; GPT-Live 1.1 and Gemini Live ignore it.
deliveryNoOptional delivery profile; for a TTS voice the preview applies exactly the provider settings a call with the same voice_polish.delivery would use. GPT-Live 1.1 and Gemini Live ignore a valid profile; Eleven Realtime refuses one.
languageYes
providerYes
voice_idYes
project_idYes
credential_idNoOptional customer-owned TTS credential id; the platform credential is never a fallback. Conversation-engine voices refuse it: Eleven Realtime any non-empty value, GPT-Live 1.1 and Gemini Live a non-blank one.
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.
audio_environmentNoOptional selected ambience mixed only into this preview. For a text-to-speech voice, text must then be non-blank and explicit; a conversation-engine voice accepts custom text or uses its default sample, with ambience mixed for this request only. The language and text are never replaced.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional saved hosted agent id in this workspace, at most 512 characters after trimming surrounding whitespace, for an exact pinned managed TTS voice retry. Eleven Realtime refuses a non-empty value; GPT-Live-1 and Gemini Live ignore it."New value: +"Optional saved hosted agent id in this workspace, at most 512 characters after trimming surrounding whitespace, for an exact pinned managed TTS voice retry. Eleven Realtime refuses a non-empty value; GPT-Live 1.1 and Gemini Live ignore it."
    • changedInput schema / properties / credential_id / description
      Previous value: -"Optional customer-owned TTS credential id; the platform credential is never a fallback. Conversation-engine voices refuse it: Eleven Realtime any non-empty value, GPT-Live-1 and Gemini Live a non-blank one."New value: +"Optional customer-owned TTS credential id; the platform credential is never a fallback. Conversation-engine voices refuse it: Eleven Realtime any non-empty value, GPT-Live 1.1 and Gemini Live a non-blank one."
    • changedInput schema / properties / delivery / description
      Previous value: -"Optional delivery profile; for a TTS voice the preview applies exactly the provider settings a call with the same voice_polish.delivery would use. GPT-Live-1 and Gemini Live ignore a valid profile; Eleven Realtime refuses one."New value: +"Optional delivery profile; for a TTS voice the preview applies exactly the provider settings a call with the same voice_polish.delivery would use. GPT-Live 1.1 and Gemini Live ignore a valid profile; Eleven Realtime refuses one."
  2. Changed3 schema fields changed
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional saved hosted agent id for an exact pinned managed voice retry."New value: +"Optional saved hosted agent id in this workspace, at most 512 characters after trimming surrounding whitespace, for an exact pinned managed TTS voice retry. Eleven Realtime refuses a non-empty value; GPT-Live-1 and Gemini Live ignore it."
    • changedInput schema / properties / credential_id / description
      Previous value: -"Optional customer-owned TTS credential id; the platform credential is never a fallback."New value: +"Optional customer-owned TTS credential id; the platform credential is never a fallback. Conversation-engine voices refuse it: Eleven Realtime any non-empty value, GPT-Live-1 and Gemini Live a non-blank one."
    • changedInput schema / properties / delivery / description
      Previous value: -"Optional delivery profile; the preview applies exactly the provider settings a call with the same voice_polish.delivery would use."New value: +"Optional delivery profile; for a TTS voice the preview applies exactly the provider settings a call with the same voice_polish.delivery would use. GPT-Live-1 and Gemini Live ignore a valid profile; Eleven Realtime refuses one."
  3. Changed2 schema fields changed
    • changedInput schema / properties / audio_environment / description
      Previous value: -"Optional selected ambience mixed only into this preview. For a text-to-speech voice, text must then be non-blank and explicit; a conversation-engine voice needs no text and the ambience is mixed over its fixed sample. The language and text are never replaced."New value: +"Optional selected ambience mixed only into this preview. For a text-to-speech voice, text must then be non-blank and explicit; a conversation-engine voice accepts custom text or uses its default sample, with ambience mixed for this request only. The language and text are never replaced."
    • changedInput schema / properties / text / description
      Previous value: -"Optional bounded caller sentence for a text-to-speech voice. It is synthesized but not persisted or echoed. A conversation-engine voice refuses it (voice_preview_fixed_sample) and plays Skysay's fixed sample."New value: +"Optional audition text, at most 200 characters. TTS speaks it; a native conversational engine may rephrase. Custom text/audio are not persisted or shared. Empty text uses Skysay's sample."
  4. Changed2 schema fields changed
    • changedInput schema / properties / audio_environment / description
      Previous value: -"Optional selected ambience mixed only into this preview. When present, text must be non-blank and explicit; the language and text are never replaced."New value: +"Optional selected ambience mixed only into this preview. For a text-to-speech voice, text must then be non-blank and explicit; a conversation-engine voice needs no text and the ambience is mixed over its fixed sample. The language and text are never replaced."
    • changedInput schema / properties / text / description
      Previous value: -"Optional bounded caller sentence. It is synthesized but not persisted or echoed."New value: +"Optional bounded caller sentence for a text-to-speech voice. It is synthesized but not persisted or echoed. A conversation-engine voice refuses it (voice_preview_fixed_sample) and plays Skysay's fixed sample."
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the call contacts a managed provider, validates BYOK, and writes preview-rate and voice-availability state — directly reconciling with readOnlyHint=false and destructiveHint=true — plus explicit timeout budgets (10s first audio / 30s session, 9s Eleven Realtime slot), the 1 MiB audio ceiling, and named failure codes (voice_preview_timed_out, voice_preview_too_large, voice_preview_rejected, voice_preview_no_speech).

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?

The scoping and side-effect statement is front-loaded correctly, but the text runs to three very long sentences with dense embedded conditionals and repeated timing/limit phrasing, making it harder to scan than necessary for a tool description.

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 an 11-parameter, nested-object, no-output-schema tool, the description covers side effects, per-provider constraints, ambience handling, return format (bounded in-memory WAV, always the whole clip), latency budgets and error codes — an agent has everything needed to call it correctly and interpret failures.

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 only 55%, and the description compensates for the riskiest parameters by stating provider-specific rejection rules for agent_id, credential_id and delivery, and restating the 200-character limit and empty-text sample fallback. It adds little for language, provider, model, voice_id and project_id, which remain undocumented in both places, so it falls short of full coverage.

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 ('Render one bounded, rate-limited voice preview for the authenticated workspace') and then splits the behavior by voice type (TTS vs. conversation-engine voices such as GPT-Live 1.1, Gemini Live, Eleven Realtime), so an agent can tell exactly what this does and which mode applies without opening the 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?

Gives concrete calling conditions: Eleven Realtime must receive only the voice fields, GPT-Live 1.1/Gemini Live refuse a non-blank credential_id, and empty text falls back to the sample. It never names a sibling tool or states when to use this instead of preview_simulation_run or get_agent_voice_stack, so the alternative-selection guidance is implied rather than explicit.

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.