Skip to main content
Glama
alarconcesar

gemini-tts-mcp

by alarconcesar

generate_speech

Generate clear speech audio from text with customizable voice, pitch, and speaking style. Supports multiple languages and automatic model fallback.

Instructions

Generate speech audio from text using Gemini TTS.

Rotates across all configured API keys and falls back between models. Gemini TTS voices are multilingual — any voice speaks the language of the input text automatically.

Args: text: The text content to vocalize. voice_name: Gemini voice (use list_voices to browse). Default: Puck. style_instruction: Optional speaking-style hint prepended to text, e.g. "speak softly", "cheerfully", "in a calm tone". pitch_factor: Pitch adjustment. 1.0 = no change, >1 = higher, <1 = lower. model: Model override. Default: gemini-3.1-flash-tts-preview, falls back to gemini-2.5-flash-preview-tts. output_path: Optional custom output path for the WAV file.

Returns: Absolute path to the generated WAV file, or error description.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
modelNo
voice_nameNoPuck
output_pathNo
pitch_factorNo
style_instructionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses key behaviors: multilingual support, API key rotation, model fallback, style instruction prepending, pitch adjustment, and error return. It does not mention destructive nature or auth requirements, but for a TTS tool, this is sufficient.

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?

The description is concise and well-structured: a brief intro, then a bullet-style Args list, then a Returns line. Every sentence adds value with no redundancy.

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?

Given the tool's moderate complexity (6 params, 1 required) and the presence of an output schema, the description covers all necessary information: functionality, parameter details, and return type. It is fully self-contained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, but the description's Args section explains every parameter (text, voice_name, style_instruction, pitch_factor, model, output_path) with defaults and usage details, fully compensating for the schema's lack of descriptions.

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 clearly states the tool generates speech audio from text using Gemini TTS. It mentions the key parameters and distinguishes itself from siblings (list_voices, etc.) by focusing on generation, not listing or management.

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?

The description explains the tool's behavior (rotates API keys, falls back between models) and implicitly tells when to use it (for generating speech). It cross-references list_voices for browsing voices, but does not explicitly state 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.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alarconcesar/gemini-tts-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server