Skip to main content
Glama

Generate speech

generate_speech
Destructive

Speak a line in a named voice and return a run id. Poll get_run_status for the audio URL — it also returns words, the start and end second of every word, and duration_seconds. Use those to cut to the voice or build word-accurate captions instead of running speech-to-text over audio you just made.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe line to speak. Plain text.
modelNoOmit for the default (eleven-turbo-v2.5).
voice_idYesVoice id from list_voices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag the write/async profile (readOnlyHint=false, destructiveHint=true, idempotentHint=false, openWorldHint=true), and the description adds the lifecycle detail those annotations cannot convey: the call is asynchronous and returns a run id that must be polled. It also discloses what get_run_status yields (audio URL, per-word start/end seconds, duration_seconds), which is genuinely new information. It stops short of noting credit cost, which matters given destructiveHint=true.

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?

Three sentences, zero waste, front-loaded with the action and return value before moving to the polling step and the reuse hint. Every clause carries information an agent needs.

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?

The tool has no output schema, and the description compensates by describing both the immediate return (run id) and the eventual return (audio URL plus word timings and duration) via the polling sibling. Nothing an agent needs to invoke and consume the result correctly is missing.

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 text, voice_id, and model are already documented in the schema, including the default model value and the pointer to list_voices. The description adds no syntax, format, or constraint detail beyond that, so the baseline of 3 applies.

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 ('Speak a line in a named voice') plus the immediate return value ('return a run id'), which distinguishes it from generate_sound and generate_image among the siblings. An agent knows this is the text-to-speech entry point without opening the 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 clear operating context: call this, then poll get_run_status to obtain the audio URL, and use the returned word timings rather than re-running speech-to-text on the audio. It names the follow-up sibling explicitly, though it does not state when to prefer this over generate_sound.

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