Skip to main content
Glama

preview_voice

Generate a short TTS preview. Hosted mode returns a download URL.

    Args:
        voice_id: Voice id from `list_voices`.
        output_path: Output filename hint (hosted) or WAV path (stdio).
        language_code: Optional locale.
        text: Optional preview line (max 200 chars).
    

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

Input Schema

NameRequiredDescriptionDefault
textNoOptional preview line (max 200 chars).
voice_idYesVoice id from `list_voices`.
output_pathNoOutput filename hint (hosted) or WAV path (stdio).preview.wav
language_codeNoOptional locale.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / language_code / description
      Added value: +"Optional locale."
    • addedInput schema / properties / output_path / description
      Added value: +"Output filename hint (hosted) or WAV path (stdio)."
    • addedInput schema / properties / text / description
      Added value: +"Optional preview line (max 200 chars)."
    • addedInput schema / properties / voice_id / description
      Added value: +"Voice id from `list_voices`."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does deliver one genuinely useful behavior: hosted mode returns a download URL while stdio mode writes a WAV to `output_path`. Beyond that it says nothing about authorization, rate limits, file overwrite behavior on an existing `output_path`, or audio format/duration limits in hosted mode.

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 opening two sentences are well front-loaded and earn their place. The Args block, however, repeats the schema field-by-field with near-identical wording, so roughly half the text adds no information an agent could not get from the schema.

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?

An output schema exists, so return values needn't be explained, and the description correctly flags the one non-obvious output divergence between hosted and stdio modes. For a simple four-parameter preview tool this is close to sufficient; the only real gap is unspecified overwrite/error behavior on `output_path`.

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 description coverage is 100%, so the schema already documents all four parameters and the baseline of 3 applies. The description's Args block does clarify the mode-dependent meaning of `output_path` (filename hint in hosted mode vs. WAV path in stdio) and restates the 200-char text cap, adding modest value — but it is largely a verbatim copy of the schema descriptions.

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?

States a specific verb and resource: "Generate a short TTS preview", plus an output-mode distinction (hosted returns a download URL). It ties itself to the sibling `list_voices` for obtaining `voice_id`, which helps place it in the workflow, though it does not contrast itself with any other preview/voice tool.

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?

Usage is only implied: an agent can infer this is the way to audition a voice before clone/create, and the `voice_id` reference points at the prerequisite step. There is no explicit when-to-use/when-not statement, no mention of cost, quota, or whether a preview is required before cloning.

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.