Skip to main content
Glama

Generate Speech

generate_speech

Speak written words out loud in an ElevenLabs voice and save the audio to your library. Give it the words and the voice (a voice name, or a voice id from list_voices). Every take speaks on Eleven v4 or Eleven v4 Turbo. Choose with quality: "fast" (the default, v4 Turbo, quick and cheap) or "best" (v4, the richest, most emotional read), or name one with model: v4 or turbo. v4 holds 10,000 letters a take and turbo has no stated limit. Both take stability and similarity (0 to 1) only. The price is checked before generation and the result includes its billing receipt. The answer carries the time in seconds that every single word starts and ends, which is what you use to cut on the beat, place captions or time a picture to a word. For a sound effect use generate_sound_effect; for two or more people talking in one file use generate_dialogue.

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": {
      "text": "<text>",
      "voice": "<voice>"
    },
    "name": "generate_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe words to speak, exactly as they should be said. How long one take can be is set by the model you pick. Write numbers and dates the way you want them read out.
modelNoOptional. v4 (richest) or turbo (quick, the default). Leave it out and quality decides.
speedNoNot used: Eleven v4 has no speed dial, so this is ignored.
styleNoNot used: Eleven v4 has no style dial, so this is ignored.
voiceYesWhich voice speaks: a voice name exactly as list_voices gives it, or its voice_id. Call list_voices first: a name that is not on that list fails.
qualityNoOptional. "best" picks the richest model, "fast" the quick one. Default fast.
languageNoOptional two-letter language code, for example "es" or "fr", when the words are not in English.
stabilityNoOptional, 0 to 1. Lower is more expressive and varied, higher is steadier and more even.
request_idNoOnly reuse a request_id explicitly returned by an enabled durable recovery workflow; an attempt_id or saved-file recovery receipt does not authorize this replay.
similarityNoOptional, 0 to 1. How closely the read sticks to the original voice.
timestampsNoOptional, default true. Word-by-word times come back with the audio. Set false if you do not need them.
speaker_boostNoNot used: Eleven v4 has no speaker boost, so this is ignored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / voice / description
      Previous value: -"Which voice speaks: a voice name such as \"Rachel\", or a voice id. Call list_voices to see the voices on this account."New value: +"Which voice speaks: a voice name exactly as list_voices gives it, or its voice_id. Call list_voices first: a name that is not on that list fails."
  2. Changed1 schema field changed
    • addedInput schema / properties / request_id
      Added value: +{
      +  "description": "Only reuse a request_id explicitly returned by an enabled durable recovery workflow; an attempt_id or saved-file recovery receipt does not authorize this replay.",
      +  "type": "string"
      +}
  3. Changed4 schema fields changed
    • changedInput schema / properties / model / description
      Previous value: -"Optional. v4 (richest), turbo (quick, the default), v3, conversational, multilingual or flash. Leave it out and quality decides."New value: +"Optional. v4 (richest) or turbo (quick, the default). Leave it out and quality decides."
    • changedInput schema / properties / speaker_boost / description
      Previous value: -"Optional. Holds the voice closer to the speaker it was made from. Every model except v4 and v4 turbo."New value: +"Not used: Eleven v4 has no speaker boost, so this is ignored."
    • changedInput schema / properties / speed / description
      Previous value: -"Optional, 0.7 to 1.2. Under 1 is slower, over 1 is faster. Every model except v4 and v4 turbo."New value: +"Not used: Eleven v4 has no speed dial, so this is ignored."
    • changedInput schema / properties / style / description
      Previous value: -"Optional, 0 to 1. Extra performance. Every model except v4 and v4 turbo."New value: +"Not used: Eleven v4 has no style dial, so this is ignored."
  4. Changed5 schema fields changed
    • changedInput schema / properties / model / description
      Previous value: -"Optional. v4 (richest), turbo (quick, the default), v3, multilingual or flash. Leave it out and quality decides."New value: +"Optional. v4 (richest), turbo (quick, the default), v3, conversational, multilingual or flash. Leave it out and quality decides."
    • changedInput schema / properties / speaker_boost / description
      Previous value: -"Optional. Holds the voice closer to the speaker it was made from. Multilingual and flash only."New value: +"Optional. Holds the voice closer to the speaker it was made from. Every model except v4 and v4 turbo."
    • changedInput schema / properties / speed / description
      Previous value: -"Optional, 0.7 to 1.2. Under 1 is slower, over 1 is faster. Multilingual and flash only."New value: +"Optional, 0.7 to 1.2. Under 1 is slower, over 1 is faster. Every model except v4 and v4 turbo."
    • changedInput schema / properties / style / description
      Previous value: -"Optional, 0 to 1. Extra performance. Multilingual and flash only."New value: +"Optional, 0 to 1. Extra performance. Every model except v4 and v4 turbo."
    • changedInput schema / properties / text / description
      Previous value: -"The words to speak, exactly as they should be said, under 5000 characters. Write numbers and dates the way you want them read out."New value: +"The words to speak, exactly as they should be said. How long one take can be is set by the model you pick. Write numbers and dates the way you want them read out."
  5. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only cover readOnlyHint=false, destructiveHint=false, openWorldHint=false, so the description must carry the rest, and it does: per-model input limits (10,000 characters for v4 vs no stated limit for turbo), a pre-generation price check, a billing receipt in the result, and word-level start/end timestamps by default. The mention of saving audio to the library is consistent with the non-readOnly annotation rather than contradicting it.

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?

It is front-loaded with the action and output, then routes to alternatives, then covers model/quality selection and limits — a logical order with no filler sentences. It is somewhat long and the quality/model explanation is stated twice in overlapping terms, which costs a point but does not obscure the core instruction.

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 a 12-parameter, non-readOnly tool with no output schema, the description covers inputs, defaults, limits, cost signaling, and the shape of the returned audio-plus-timestamps payload. The only gap is that the four inert parameters are documented only in the schema, but the line "Both take stability and similarity (0 to 1) only" gestures at that.

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; the description exceeds it by mapping quality to model behavior, stating defaults (fast, timestamps true), explaining what stability and similarity mean in perceptual terms, and noting which parameters are inert on v4. It stops short of explaining how voice name resolution interacts with the list_voices output format, but that is already in the schema.

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 gives a specific verb and resource ("Speak written words out loud in an ElevenLabs voice and save the audio to your library") and immediately distinguishes this tool from siblings by naming generate_sound_effect and generate_dialogue as the tools for different outputs. An agent can tell this is text-to-speech rather than SFX or multi-speaker dialogue without opening a 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?

It explicitly states when to use other tools ("For a sound effect use generate_sound_effect; for two or more people talking in one file use generate_dialogue") and gives a prerequisite workflow ("Call list_voices first: a name that is not on that list fails"). It also tells the agent which quality setting to choose and why, leaving nothing to inference.

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