Skip to main content
Glama

Speak a line in a voice

generate_speech
Idempotent

A line spoken in a voice, as an MP3, with the start and end of every word in seconds (output.words, a JSON file) for lip sync and captions. Costs credits: eleven-v4 1 per 50 characters, eleven-v3 1 per 50 characters. A character keeps its voice by voice id: give every line of one character the same voice. Voices (name: ElevenLabs' label): Eldrin (Crisp British baritone), Darian (Warm, grounded storyteller), Kaelen (Amateur warrior), Sawyer (Midnight storyteller), Wyatt (Seasoned mentor), Callum (Husky trickster), Baxter (Dry, calm Australian), Warren (Effortless and cool), Eddie (Natural and helpful), Caleb (Trusted guide), Lawrence (Bright and informative), Finley (Articulate anchor), Talia (Warm, soft guide), Florence (Atmospheric storyteller), Elara (Crisp professional narrator), Elowen (Upbeat modern narrator), Alicia (Polished global anchor), Maisie (Friendly, casual neighbour), Jade (Upbeat and natural); any ElevenLabs voice_id works too. eleven-v4 reads audio tags such as [whispering], [shouting], [laughs]. Waits about 45 s, then returns job_id for get_job.

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

Input Schema

NameRequiredDescriptionDefault
textYesWhat to say, up to 5,000 characters: "Hold the gate! The dragon is coming."
modelNoeleven-v4
voiceNoA voice by name or id. Default Eldrin.
languageNoISO 639-1 code (en, de, ja), when it should not be guessed.
stabilityNoLower is more expressive, higher steadier across lines (0.5 default).
max_creditsNo
wait_secondsNo
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault
idNo
errorNo
outputNo
statusNo
creditsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare that this is a non-destructive, idempotent, open-world write. The description adds the traits an agent actually needs to plan around: the credit cost model per model tier, the ~45 s wait before a job_id comes back (so it is asynchronous and must be polled via get_job), and that eleven-v4 interprets inline audio tags like [whispering]. This is substantive disclosure beyond the structured fields.

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 purpose, output format, cost, and async handoff are front-loaded, which is good. But the 19-entry voice catalog with parenthetical labels dominates the text and the per-model pricing is stated twice in near-identical form. Useful information, yet bulky and not tightly compressed.

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 an 8-parameter generation tool with an output schema, this covers purpose, cost, latency, async follow-up, voice selection, and model trade-offs, so an agent can call it correctly. Gaps remain around max_credits as a spend guard, language override behavior, and idempotency_key semantics, which matter for an open-world paid call.

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?

With 50% schema coverage the description has to compensate, and it does for the highest-stakes parameters: it enumerates the voice catalog with descriptive labels, notes that any ElevenLabs voice_id also works, gives the default (Eldrin), and ties model choice to both pricing and audio-tag support. It leaves stability, language, max_credits, and idempotency_key to the schema, so it is not complete, but the consequential choices are covered.

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 states a concrete verb+resource (a line of text rendered as spoken audio) and pins down the output artifacts: an MP3 plus output.words, a JSON file with start/end times per word. That output signature alone separates it from generate_music, generate_sound_effect, and generate_texture without needing to open any 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?

It gives real usage context: the word timings are for lip sync and captions, and a character keeps its voice by reusing one voice id across all its lines. It also routes the agent onward, saying it returns a job_id for get_job after roughly 45 s. There are no explicit when-not-to-use rules, but the guidance is clear.

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