Skip to main content
Glama

Generate Voice

generate_voice

Synthesize speech from text. Returns { audioUrl, modelId, costCents, billingMode } (costCents is the Varosity charge; 0 on the user's own key, where billingMode is "byok"). Pass voiceId for the provider's voice. Optionally set modelId to a Varosity voice model (elevenlabs-tts, openai-tts-1, deepgram-aura-2, heygen-voice); defaults to ElevenLabs. Scope required: generate:voice.

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_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to speak (1–5000 characters). Charged by length.
modelIdNoVoice model id from list_voices (voiceModel). Default elevenlabs-tts, which is also used for ids that aren't Varosity models.
voiceIdNoVoice id for the chosen model, from list_voices (ids are per provider). Omit for the default voice; if the id fails, the default voice is used (heygen-voice and heygen-voice-turbo refuse an id that is not a preset instead).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / modelId / description
      Added value: +"Voice model id from list_voices (voiceModel). Default elevenlabs-tts, which is also used for ids that aren't Varosity models."
    • addedInput schema / properties / text / description
      Added value: +"Text to speak (1–5000 characters). Charged by length."
    • addedInput schema / properties / voiceId / description
      Added value: +"Voice id for the chosen model, from list_voices (ids are per provider). Omit for the default voice; if the id fails, the default voice is used (heygen-voice and heygen-voice-turbo refuse an id that is not a preset instead)."
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

When to use this versus alternatives is only implied. The description never states when to reach for generate_voice instead of list_voices (to discover ids) or clone_voice/design_voice (to create voices), and it does not flag that this is a billable generation call beyond the scope note.

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 with the action and the return shape, then parameters, then the required scope. Dense but waste-free; the parenthetical billing explanation is slightly compressed but still readable.

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?

With no output schema, the description supplies the return fields (audioUrl, modelId, costCents, billingMode) and their billing semantics, plus the required scope and default/fallback model behavior. Nothing an agent needs to call this correctly appears to be missing.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real value: it names the four concrete Varosity model ids, states the ElevenLabs default and the fallback behavior for unknown ids. That goes beyond the schema text, which only points at list_voices.

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 ('Synthesize speech from text'), which is unambiguously distinct from sibling tools like clone_voice, design_voice, and voice_changer. The enumerated model options further pin down exactly what operation is being performed.

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 explains how to call it (voiceId, optional modelId, defaults) and what scope is needed, but never says when to prefer it over neighbors such as list_voices (for discovering ids) or clone_voice. Usage is implied by the purpose rather than explicitly 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.