Skip to main content
Glama

generate_text_to_speech

Convert text into speech audio using a chosen voice, with controls for language, speed, and voice stability.

Instructions

Generates audio from text using text-to-speech

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": {
      "voice_id": "<voice_id>",
      "text": "<text>"
    },
    "name": "generate_text_to_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to convert to speech
speedNoSpeech speed multiplier
languageNoLanguage code or 'auto'
model_idNoID of the TTS model to use
voice_idYesID of the voice to use
stabilityNoVoice stability (0-1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and it says nothing beyond the one-line purpose. For a generation tool in a catalog with get_credits and get_generation_status siblings, an agent is left unsure whether the call is synchronous or asynchronous, whether it consumes credits, or what happens with invalid voice IDs.

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?

A single front-loaded sentence with no wasted words. It is lean to the point of under-specification, but nothing in the sentence is redundant or poorly ordered.

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

Completeness2/5

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

With six parameters, no annotations, and no output schema, the description should do real work. It does not cover the return value (audio payload vs URL), credit implications, or async behavior, all of which matter for a media generation tool.

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 all six parameters including voice_id, text, speed, language, model_id and stability are already documented in the input schema. The description adds no extra parameter meaning, which is the baseline expectation when the schema does the work.

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 and resource: 'Generates audio from text using text-to-speech.' An agent can immediately tell it is the TTS tool. However, it offers no differentiation from generative siblings such as generate_video_with_tts or generate_image, so the agent must infer the boundary from the name alone.

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 purpose implies when to use it (converting text into speech audio), which is a mild form of context. There is no explicit when-to-use versus alternatives, no prerequisites, and no exclusions, so the agent gets implied usage only.

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