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, Gemini Live, Eleven Realtime) plays Skysay's fixed sample and refuses typed text. 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.

Input Schema

NameRequiredDescriptionDefault
textNoOptional 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.
modelYes
agent_idNoOptional saved hosted agent id for an exact pinned managed voice retry.
deliveryNoOptional delivery profile; the preview applies exactly the provider settings a call with the same voice_polish.delivery would use.
languageYes
providerYes
voice_idYes
project_idYes
credential_idNoOptional customer-owned TTS credential id; the platform credential is never a fallback.
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 needs no text and the ambience is mixed over its fixed sample. The language and text are never replaced.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses rate limiting, that the call may hit a managed provider or validate BYOK, that preview-rate and exact voice-availability state get written, that the preview is neither read-only nor free, and that audio is bounded in-memory WAV. This is exactly the extra context the annotations cannot carry.

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?

Four dense sentences, front-loaded with the core action and the rate/side-effect warning, with no filler. It is packed tightly enough that the voice-type distinction and the side-effect disclosure have to share a sentence, but nothing is wasted.

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 an 11-parameter, nested-object tool with no output schema, the description still covers return format, side effects, and the branching voice behavior. The remaining gap is parameter-level guidance for the five undocumented required fields.

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?

With only 55% schema description coverage, the description still never explains model, provider, voice_id, language, or project_id, and its 200-character note merely repeats the schema's maxLength. The TTS-vs-conversation-engine rule does add real meaning about how text behaves, which lifts it above a pure schema restatement.

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 names a specific verb and resource ('Render one bounded, rate-limited voice preview') and immediately splits behavior by voice type (text-to-speech vs conversation-engine), so an agent knows exactly what the tool produces 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 Guidelines3/5

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

It gives strong conditional guidance inside the tool (text is honored for TTS voices, refused for conversation-engine voices, ambience requires explicit text for TTS), but it never says when to choose this over an alternative such as get_agent_voice_stack or preview_simulation_run.

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.