Skip to main content
Glama

Generate Dialogue

generate_dialogue

Make ONE audio file, saved to your library, of two or more people talking to each other, spoken by ElevenLabs v3 (or v4, with model). Give it lines in order, each with the voice who says it (a voice name or a voice id from list_voices) and the words. The speakers react to each other the way people in one room do, which is why this beats making each line on its own and stitching them. Inside any line's text you can write performance tags in square brackets and the model acts them instead of reading them out: [laughs], [laughs harder], [starts laughing], [wheezing], [whispers], [sighs], [exhales], [sarcastic], [curious], [excited], [crying], [snorts], [mischievously]. There are also sound tags such as [gunshot], [applause], [clapping] and [explosion], and experimental ones such as [sings] and [strong French accent]. Use ellipses and ordinary punctuation for pauses; there is no pause tag. As many lines as you like, up to 10 different voices, and up to 2000 characters of speech in total. Billed per 250 characters of everything said. For one person speaking use generate_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": {
      "lines": "<lines>"
    },
    "name": "generate_dialogue"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesThe conversation in order, as many lines as it takes. Example: [{ "voice": "<first voice, from list_voices>", "text": "[whispers] Did you hear that?" }, { "voice": "<second voice, from list_voices>", "text": "[sighs] It is just the wind." }]
modelNoOptional. Always "v4" (Eleven v4); leave it out.
languageNoOptional two-letter language code, for example "es", when the conversation is not in English.
stabilityNoOptional, 0 to 1. Lower is more expressive and the tags land harder, higher is steadier and calmer.
similarityNoOptional, 0 to 1. How closely each read sticks to its own voice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / lines / description
      Previous value: -"The conversation in order, as many lines as it takes. Example: [{ \"voice\": \"Rachel\", \"text\": \"[whispers] Did you hear that?\" }, { \"voice\": \"Adam\", \"text\": \"[sighs] It is just the wind.\" }]"New value: +"The conversation in order, as many lines as it takes. Example: [{ \"voice\": \"<first voice, from list_voices>\", \"text\": \"[whispers] Did you hear that?\" }, { \"voice\": \"<second voice, from list_voices>\", \"text\": \"[sighs] It is just the wind.\" }]"
    • changedInput schema / properties / lines / items / properties / voice / description
      Previous value: -"Who says this line: a voice name such as \"Rachel\", or a voice id."New value: +"Who says this line: a voice name exactly as list_voices gives it, or its voice_id."
  2. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Optional. \"v3\" (the default) or \"v4\". Both speak dialogue."New value: +"Optional. Always \"v4\" (Eleven v4); leave it out."
  3. Changed2 schema fields changed
    • changedInput schema / properties / lines / description
      Previous value: -"The conversation in order, 2 to 20 lines. Example: [{ \"voice\": \"Rachel\", \"text\": \"[whispers] Did you hear that?\" }, { \"voice\": \"Adam\", \"text\": \"[sighs] It is just the wind.\" }]"New value: +"The conversation in order, as many lines as it takes. Example: [{ \"voice\": \"Rachel\", \"text\": \"[whispers] Did you hear that?\" }, { \"voice\": \"Adam\", \"text\": \"[sighs] It is just the wind.\" }]"
    • addedInput schema / properties / model
      Added value: +{
      +  "description": "Optional. \"v3\" (the default) or \"v4\". Both speak dialogue.",
      +  "type": "string"
      +}
  4. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the write/safety profile is covered. The description still adds real value beyond them: the output is persisted to the user's library, billing is metered per 250 characters of all spoken text, and the speakers are synthesized jointly so they react to one another. It does not cover failure modes (invalid voice names, exceeding character limits) or latency, which keeps it at a 3.

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?

Front-loaded with the artifact and the input contract, then limits, then billing, then the alternative tool — a logical order with no filler sentences. The tag enumeration is long (roughly a dozen performance tags plus sound and experimental examples) and could be trimmed to a representative sample with a pointer, but each item maps to an actual invocation decision.

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 a 5-parameter generative tool with no output schema, this covers everything an agent needs: what is produced and where it lands, the ordered line structure, voice referencing via list_voices, tag syntax, size caps, billing basis, and the single-speaker alternative. The absence of a return-value description is acceptable since there is no output schema and the artifact location is stated.

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 baseline is 3, but the description adds genuine meaning for `text`: square-bracket performance tags are acted rather than read aloud, with a concrete vocabulary ([laughs], [whispers], [sarcastic], [gunshot], [sings]), and it tells the agent that pauses must come from punctuation because no pause tag exists. It also clarifies `voice` accepts a name from list_voices or a voice_id, and that `model` should normally be omitted.

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 artifact: 'Make ONE audio file, saved to your library, of two or more people talking to each other,' naming the model (ElevenLabs v3/v4) and the required input shape (ordered lines with voice + words). It explicitly distinguishes itself from generate_speech for single-speaker cases, so an agent can route 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 Guidelines5/5

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

Gives explicit when-to-use ('two or more people talking'), when-not ('For one person speaking use generate_speech'), and the rationale for choosing this over per-line generation plus stitching. It also states hard operating bounds: up to 10 distinct voices and 2000 characters of total speech.

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