Skip to main content
Glama

generate_speech

Convert text into audio using Gemini 2.5 Flash/Pro TTS, pick a voice, apply natural-language style directions, and optionally save the result as a WAV file.

Instructions

Generate high-quality speech from text using Gemini 2.5 Flash/Pro TTS models.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to convert to speech. You can include performance notes like 'Say cheerfully: ...'
modelNoThe Gemini model to use (default: gemini-2.5-flash-preview-tts).
voiceNoThe prebuilt voice to use (default: Aoede). Use list_voices to see all options.
outputPathNoOptional local path to save the generated audio as a .wav file.

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?

With no annotations and no output schema, the description carries the full disclosure burden but only offers a marketing adjective ('high-quality') and model names. It never says what is returned (inline audio bytes vs. a file on disk), whether outputPath changes the response shape, whether generation is slow or costly, or how long text may be.

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 filler or repetition. It is efficient, though its brevity contributes to the disclosure gaps noted elsewhere.

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?

For a four-parameter generation tool with zero annotations and no output schema, the description is too thin: the return contract (inline audio vs. saved .wav) and any limits on input text are exactly what an agent needs and are absent.

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 text, model, voice, and outputPath are all documented in the schema itself. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 ('Generate') and resource ('speech from text') and names the underlying models, so an agent immediately knows this is a text-to-speech synthesis tool. It does not explicitly contrast itself with the list_voices sibling, but the purpose is unambiguous.

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?

Usage is only implied by the verb+resource; there is no explicit statement of when to pick this tool over alternatives, nor any prerequisites. The only routing hint ('Use list_voices to see all options') lives in the schema, not the description.

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

Deploy Server

Other Tools