Skip to main content
Glama

Synthesize Dialogue

beatra.speech.synthesize_dialogue
Idempotent

Synthesize a multi-speaker dialogue from 2 to 50 ordered turns in one audio take (up to 10 unique voices including up to 4 ready cloned voices, up to 2,000 characters total). This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry. Requires voices with capabilities.supports_dialogue=true from beatra.voices.list. Each turn accepts speech markup ({laugh}, {sigh}, {whisper}, {emotion ...}). beatra.speech.validate_dialogue checks the turns and quotes credits without charging.

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": {
      "turns": "<turns>",
      "client_request_id": "<client_request_id>"
    },
    "name": "beatra.speech.synthesize_dialogue"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional deterministic sampling seed (0 to 4294967295)
modelNoOmit unless the user requests a model ('auto', 'elevenlabs-v4-turbo', or 'elevenlabs-v4').auto
turnsYesOrdered list of 2 to 50 dialogue turns (up to 10 unique voices, at most 4 cloned voices)
formatNoOutput audio container format (mp3, wav, opus, or pcm)mp3
languageNoOptional BCP-47 language tag or 'auto'
next_textNoOptional text that comes right after this clip, for example the next line of a dialogue or the next paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its start is used (next_text_head_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning.
stabilityNoOptional dialogue voice stability from 0.0 (expressive) to 1.0 (consistent)
sample_rateNoOptional output sample rate in Hz for mp3, wav, or pcm (omit for opus)
model_optionsNoPer-model-family passthrough options; opaque to the platform, validated per model
previous_textNoOptional text that comes right before this clip, for example the previous line of a dialogue or the previous paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its end is used (previous_text_tail_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning.
subtitle_enableNoGenerate unified JSON, SRT, and VTT speaker-attributed subtitles alongside the audio
similarity_boostNoOptional speaker similarity adherence from 0.0 to 1.0
client_request_idYesStable retry identity for this billable operation. Reuse only for the exact same generation arguments.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
usageNo
statusNo
billingNo
task_idNo
terminalNo
artifactsNo
resolved_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare idempotentHint=true, destructiveHint=false and openWorldHint=true, but say nothing about cost or async behavior. The description fills that gap: it is a billable call consuming Beatra credits, it creates an asynchronous task, and client_request_id must be reused only for an identical retry. That is meaningful disclosure beyond the annotations, though it does not describe failure modes or what the credit charge is on a failed task.

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

Conciseness5/5

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

Front-loaded with the operation and its limits, then cost, then async/retry protocol, then prerequisites, then validation routing. Every sentence carries distinct operational information; nothing is repeated from the schema verbatim for its own sake, and total length is proportionate to a billable async generation tool with 13 parameters.

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?

An output schema exists, so return values need not be explained, and the description covers the remaining burden completely: cost, task lifecycle, polling target, retry identity rules, voice eligibility, and markup support. An agent has everything needed to invoke this correctly on the first attempt.

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, and the description modestly exceeds it by surfacing the constraints that matter at call time: turn count, unique-voice and cloned-voice caps, total character budget, per-turn speech markup support, and the voice capability requirement. It also adds retry semantics for client_request_id beyond the schema's 'Stable retry identity' text. It does not add meaning for lower-level params such as stability, similarity_boost, previous_text/next_text, or model_options, which the schema alone must carry.

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?

States a specific verb and resource ('Synthesize a multi-speaker dialogue') plus the exact shape of the operation: 2-50 ordered turns, one audio take, up to 10 unique voices including 4 cloned, 2,000 character cap. It pairs naturally against the sibling beatra.speech.synthesize (single-voice) by naming 'multi-speaker dialogue' and 'ordered turns', so an agent can distinguish the two without opening either 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 explicit workflow guidance: submit exactly once, poll with beatra.tasks.get, and pre-check with beatra.speech.validate_dialogue which 'checks the turns and quotes credits without charging.' It also states the prerequisite that voices must come from beatra.voices.list with capabilities.supports_dialogue=true. It lacks one exclusion: when to prefer the plain beatra.speech.synthesize over this multi-speaker variant.

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.

Resources