Skip to main content
Glama

text_to_speech

Convert text into spoken audio and save it as a WAV file, with support for 130+ languages, selectable voices, speaking styles, and multi-speaker dialogue.

Instructions

Read text aloud and save a WAV (130+ languages).

text: exact text. For multi-speaker, each line is "Name: text". voice: prebuilt voice (Kore, Puck, Charon, Fenrir, Aoede, Leda, Orus, Zephyr...; see list_voices) or a custom voice id (voice_...). style: delivery direction, e.g. "warm, reassuring, unhurried". language: BCP-47 code (e.g. en-US, tr-TR); auto-detected if empty. speakers: [{"speaker": "Ana", "voice": "Kore"}, {"speaker": "Ben", "voice": "Puck"}].

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": "text_to_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
modelNo
styleNo
voiceNoKore
filenameNo
languageNo
speakersNo
force_newNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the key side effect that a WAV file is written to disk, which is the most important behavior for this tool. However it is silent on whether an existing file is overwritten, what filename or force_new actually do, where the file lands, and any cost or latency implications.

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 one-liner followed by a compact per-parameter list; every line is scannable and there is no filler. It leans toward a schema paraphrase in places, but the formatting guidance and speakers example earn their space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with no annotations and no output schema, the definition covers input formatting well but omits what the call returns (file path? URL?) and the overwrite/caching semantics. An agent would still need to guess how to retrieve or reference the generated audio.

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 coverage is 0%, so the description must compensate, and it does explain five of eight parameters, including useful formatting guidance ('Name: text' per line) and a concrete speakers structure example. It leaves model, filename and force_new completely undefined, and force_new in particular is behaviorally significant for an agent that may re-run generation.

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 opening line gives a specific verb and resource ('Read text aloud and save a WAV') plus a scale hint (130+ languages), which distinguishes it immediately from generate_music, transcribe_audio and list_voices. An agent can decide this is the TTS tool 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 Guidelines3/5

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

There is a useful pointer to the sibling tool list_voices for voice names, and it says language is auto-detected when empty. But there is no explicit when-to-use/when-not guidance versus siblings like generate_music or transcribe_audio beyond what the name implies, so usage is mostly inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.