Skip to main content
Glama

Generate speech

generate_speech

Convert text to speech with a VocalLab voice. Returns the generated audio inline, so you can play or save it without fetching anything — very long clips fall back to a download URL. Up to 2,000 characters per call (less on limited-access accounts; the error names the cap) — each call is one synthesis request; for longer scripts, split the text and call again. Costs points from your balance (API rate: 15 characters per second).

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to speak (max 2,000 characters per request)
modelNoSpeech model (default v-studio: steerable, follows expression instructions, 200+ languages). v-flash: same 200+ languages, ~5x faster, 3/4 points, not steerable. v-pro: highest fidelity in major languages, supports temperature. v-lite: faster, half the points. See list_models.
speedNoSpeaking pace, 0.5–1.5 (1.0 = the voice's normal pace; lower is slower). Works on every model. Defaults to the voice's own preset — 1.0 for cloned and designed voices.
voiceYesA voice id from list_voices
formatNoAudio format (default MP3)
temperatureNoExpressiveness, 0.7–1.5 (higher = more varied). v-pro and v-lite only — v-studio and v-flash ignore it; use `delivery_mode` on v-studio instead.
delivery_modeNoHow much the model varies its performance. v-studio ONLY — sending it with any other model is an error. v-studio ignores `temperature`; this is its equivalent.
pronunciationsNoWords to say differently from how they are written: [{"from": "tendine", "to": "tèndine"}]. Whole-word, case-insensitive. Use it to fix a mispronounced word or name — respell it, or add a written stress accent (very effective in Italian and Spanish). Only the voice hears the replacement; billing and captions keep the original text.
enhance_generationNoDenoise the generated audio. Works on every model. Default false — it can leave a voice sounding over-smoothed, so only enable it when the output actually has background noise.
pronunciation_templateNoName or id of a pronunciation list saved in VocalLab Studio (Pronunciations). Applied together with `pronunciations`; entries passed in the call win.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations only declare the operation is a non-idempotent, open-world write. The description adds substantive behavior beyond that: audio is returned inline with a download-URL fallback for very long clips, the call is a single synthesis request, caps are enforced with the exact cap named in the error, and each call consumes balance at a stated character-per-second rate. That is exactly the kind of mutation/cost/limit context the annotations cannot convey.

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, then return shape, then limits, then cost — a sensible order with no filler. It is dense in em-dashes and parentheticals but each clause carries information (cap, fallback URL, cost rate) 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?

There is no output schema, and the description compensates by explaining the return (inline audio, with a download URL for long clips). Combined with the limit, splitting, and cost notes, an agent has everything needed to decide to call it and to predict what comes back, while the ten parameters are fully documented in the schema.

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%, and the schema already carries rich per-parameter semantics (model tradeoffs, temperature vs delivery_mode exclusivity, pronunciation rules, speed ranges). The description only restates the text cap that maxLength already encodes, so it adds no parameter meaning the schema lacks.

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?

The first sentence names a specific verb and resource: 'Convert text to speech with a VocalLab voice.' The inline-return note ('play or save it without fetching anything') implicitly contrasts with the retrieval sibling get_speech, but no sibling is named outright, so differentiation is inferred rather than stated.

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?

Clear operational conditions are given: one synthesis per call, the 2,000-character cap (lower on limited accounts), and the instruction to split longer scripts and call again. Cost guidance ('Costs points from your balance, API rate 15 characters per second') helps an agent reason about batching. No explicit statement about prerequisites like listing voices first, though the schema's voice parameter covers that.

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