Skip to main content
Glama

Generate speech

generate_speech

Turn a script into a ready-to-use voiceover: speaks the text in a Lazybird voice and returns a link to the MP3, which the user can play, download or put in a video, podcast, ad or course. Uses one character from the user's balance per character of text. Up to 5000 characters per call; split longer scripts into parts.

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

Input Schema

NameRequiredDescriptionDefault
textYesWhat to say
speedNoSpeaking rate, 1 is normal
effectNoA sound effect on the speech: echo is a large hall, radio a walkie-talkie, phone a phone call
localeNoLocale to speak in, with its region, e.g. "fr-FR". Any voice can take one
voiceIdYesA voice id from search_voices
instructionNoHow to act the text, in a few words, e.g. "whispering, nervous"; never spoken

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / effect
      Added value: +{
      +  "description": "A sound effect on the speech: echo is a large hall, radio a walkie-talkie, phone a phone call",
      +  "enum": [
      +    "robot",
      +    "deep",
      +    "monster",
      +    "echo",
      +    "radio",
      +    "phone"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / instruction
      Added value: +{
      +  "description": "How to act the text, in a few words, e.g. \"whispering, nervous\"; never spoken",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations declare the call is non-read-only and non-idempotent but say nothing about consequences; the description fills exactly that gap by disclosing that each call consumes balance at one credit per character and that the output is a downloadable MP3 link. These are the highest-value facts an agent needs before invoking a billed, non-idempotent generation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences that front-load the core action and output artifact, then append the cost and size constraints. No filler, and the most decision-relevant information comes first.

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?

With six parameters, no output schema, and no annotation detail, the description correctly picks up the burden of describing the return value, the billing model, and the input ceiling. Remaining gaps are link persistence or expiry and the async nature of generation, which an agent would still want to know.

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 every parameter is already documented, and the description re-states the 5000-character ceiling that maxLength already enforces. It adds only the operational strategy of splitting longer scripts into parts, which is marginal over the schema.

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 description states a specific verb and resource ('Turn a script into a ready-to-use voiceover') and goes further by naming the returned artifact — a link to the MP3 — plus the use cases it enables. An agent can immediately tell this apart from design_voice, save_voice, and search_voices.

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?

It gives practical operating rules: up to 5000 characters per call, split longer scripts, and the balance cost per character. What it lacks is an explicit pointer to the prerequisite step of obtaining a voiceId via search_voices (that reference lives only in the schema, not the description) and any statement of when not to use it.

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.