Skip to main content
Glama

Text to speech

text_to_speech

Synthesize spoken audio from text using a catalog voice that supportsDirectToolExecution. Returns toolExecutionId on hosted clients; poll get_tool_execution for status and results containing the audio fileId, downloadUrl, and file metadata. Local calls wait for a status snapshot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesWords to synthesize as spoken audio.
speedNoSpeech-rate multiplier relative to the voice's normal speed (1).
voiceIdYesCatalog display name (e.g. Matilda) or voice id from list_tts_voices.
languageNoISO-639-1 pronunciation language hint, such as en or es. Omit or pass null to leave pronunciation language selection automatic.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError details when status is failed; otherwise null.
statusNoJob status: pending, running, succeeded, failed, or cancelled.
resultsNoGenerated results with download URLs when succeeded.
toolTypeNoTool name (e.g. GENERATE_IMAGE).
attemptIndexNoCurrent or latest attempt index.
toolExecutionIdYesTool execution id (vg_tool_...).
progressPercentageNoCompletion progress 0-100 (present after polling).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / language / description
      Previous value: -"ISO-639-1 pronunciation language hint."New value: +"ISO-639-1 pronunciation language hint, such as en or es. Omit or pass null to leave pronunciation language selection automatic."
    • changedInput schema / properties / speed / description
      Previous value: -"Speech-rate multiplier."New value: +"Speech-rate multiplier relative to the voice's normal speed (1)."
    • changedInput schema / properties / text / description
      Previous value: -"Text to speak."New value: +"Words to synthesize as spoken audio."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only cover the safety profile (not read-only, non-destructive, non-idempotent); the description adds genuinely new behavior: async execution returning toolExecutionId, the need to poll, and the synchronous short-circuit for local calls. It also introduces the 'supportsDirectToolExecution' voice constraint, which is meaningful context. Missing error/timeout behavior keeps it from a 5.

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?

Three compact sentences, front-loaded with what the tool produces, followed by the async contract. Minor redundancy in restating return fields covered by the output schema, but no filler.

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?

An output schema exists, so listing fileId/downloadUrl/file metadata is somewhat redundant, but the description correctly covers the async polling lifecycle and the local synchronous path. No required parameter is left unexplained.

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 the schema already documents text, speed, voiceId, and language with format and bounds. The description only adds a quality constraint on voiceId (must support DirectToolExecution). Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (synthesize) and resource (spoken audio from text) and ties it to a catalog voice, which cleanly separates it from generate_music and generate_sound_effect siblings. It does not explicitly address the closest alternate, voiceover_to_video, so it falls just short of full sibling differentiation.

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?

The description gives a real usage instruction – poll get_tool_execution for status/results on hosted clients – and names list_tts_voices as the source of voiceId. However, it never states when to prefer this over the adjacent audio-generation siblings, so usage is implied rather than fully guided.

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.