Skip to main content
Glama

synthesize_audio

Generate billed localized TTS (and optional dubbed video). Hosted mode returns download URLs.

    Args:
        language: Target language name (e.g. "French").
        language_code: Target language code (e.g. "fr").
        voice_id: Voice id from `list_voices`.
        segments: JSON array of {text, start_ms, end_ms, original?} objects.
        output_path: Output filename hint (hosted) or WAV path (stdio).
        keep_same_length: Stretch/compress speech to source timings.
        keep_background_music: Mix transcribed music bed when stem_id is set.
        stem_id: Optional bed stem from `transcribe_audio`.
        source_duration_ms: Original duration.
        source_transcript: Optional original transcript.
        video_id: Optional id from transcribe/register to mux MP4.
        video_output_path: Optional path for dubbed MP4 when video_id is set.
    

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": {
      "language": "<language>",
      "language_code": "<language_code>",
      "voice_id": "<voice_id>",
      "segments": "<segments>"
    },
    "name": "synthesize_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
stem_idNoOptional bed stem from `transcribe_audio`.
languageYesTarget language name (e.g. "French").
segmentsYesJSON array of {text, start_ms, end_ms, original?} objects.
video_idNoOptional id from transcribe/register to mux MP4.
voice_idYesVoice id from `list_voices`.
output_pathNoOutput filename hint (hosted) or WAV path (stdio).dubbed.wav
language_codeYesTarget language code (e.g. "fr").
keep_same_lengthNoStretch/compress speech to source timings.
source_transcriptNoOptional original transcript.
video_output_pathNoOptional path for dubbed MP4 when video_id is set.
source_duration_msNoOriginal duration.
keep_background_musicNoMix transcribed music bed when stem_id is set.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / keep_background_music / description
      Added value: +"Mix transcribed music bed when stem_id is set."
    • addedInput schema / properties / keep_same_length / description
      Added value: +"Stretch/compress speech to source timings."
    • addedInput schema / properties / language / description
      Added value: +"Target language name (e.g. \"French\")."
    • addedInput schema / properties / language_code / description
      Added value: +"Target language code (e.g. \"fr\")."
    • addedInput schema / properties / output_path / description
      Added value: +"Output filename hint (hosted) or WAV path (stdio)."
    • addedInput schema / properties / segments / description
      Added value: +"JSON array of {text, start_ms, end_ms, original?} objects."
    • addedInput schema / properties / source_duration_ms / description
      Added value: +"Original duration."
    • addedInput schema / properties / source_transcript / description
      Added value: +"Optional original transcript."
    • addedInput schema / properties / stem_id / description
      Added value: +"Optional bed stem from `transcribe_audio`."
    • addedInput schema / properties / video_id / description
      Added value: +"Optional id from transcribe/register to mux MP4."
    • addedInput schema / properties / video_output_path / description
      Added value: +"Optional path for dubbed MP4 when video_id is set."
    • addedInput schema / properties / voice_id / description
      Added value: +"Voice id from `list_voices`."
  2. First observed

TDQS

B3.3/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 load. It usefully discloses that the call is billed, that output form differs by mode (download URLs in hosted, WAV path in stdio), and conditional dependencies (keep_background_music needs stem_id, video_output_path needs video_id). It says nothing about permissions/auth, whether output_path is overwritten, idempotency, or limits — significant omissions for a billed write operation.

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 two opening sentences are dense and correctly front-loaded. However, the following Args block repeats twelve parameter descriptions already present in the schema word-for-word, adding bulk without information.

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 not be explained, and the mode-dependent output behavior is covered. For a 12-parameter billed tool with a near-identical sibling (synthesize_audio_advanced), the lack of any selection guidance leaves a real gap an agent must resolve by guesswork.

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 description coverage is 100%, so the schema already documents every parameter. The Args block is essentially a verbatim restatement of the schema descriptions and adds no new meaning such as format constraints, units, or interactions between parameters. Baseline 3 applies.

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?

A specific verb and resource are stated ("Generate billed localized TTS" with optional dubbed video), plus a concrete output behavior ("Hosted mode returns download URLs"). It stops short of differentiating from the sibling synthesize_audio_advanced, so an agent cannot tell which of the two variants to pick from the description alone.

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 context is only implied through prerequisite references: voice_id must come from `list_voices`, stem_id from `transcribe_audio`, video_id from transcribe/register. There is no explicit statement of when to use this versus synthesize_audio_advanced, nor any preconditions or exclusions.

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.