Skip to main content
Glama
mordor-forge

gemini-media-mcp

by mordor-forge

Generate speech

generate_speech

Turn text into natural WAV speech or a two-speaker dialogue, using voice and style controls for podcasts, voiceovers, narration, and conversations.

Instructions

Turn text into natural speech (WAV) with one voice, or a dialogue between two speakers. Control delivery with style. About $0.01-0.02 per minute of audio. For podcasts, voiceovers, narration and dialogue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoThe exact words to speak (single speaker). Newer models read it verbatim, so put delivery directions in style, not here. Inline tags like <sigh> or <short pause> are allowed.
modelNoModel ID or alias: tts (default, Gemini 3.8 Flash TTS), tts-lite (cheaper). See list_models.
styleNoHow to deliver the lines, e.g. 'warm and enthusiastic', 'whispered urgently', 'slow, calm narrator'.
voiceNoVoice for single-speaker text, e.g. Kore (firm), Puck (upbeat), Charon (informative), Aoede (breezy, default), Zephyr (bright). list_models shows all 30.
formatNowav (default) or pcm (raw 16-bit little-endian).
dialogueNoAlternative to text: a conversation between up to 2 named speakers, one entry per line.
speakersNoVoice per dialogue speaker; unlisted speakers get distinct defaults.
outputNameNoOptional base file name.
languageCodeNoOptional BCP-47 code (e.g. en-US, it-IT). Usually auto-detected from the text.
approvedCostUsdNoOnly needed above the confirmation threshold.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
costYes
fileYes
modelYes
voicesYes
warningsNo
durationSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, destructive=false, openWorld=true, non-idempotent), so the description's job is to add beyond that — and it does, disclosing cost (~$0.01-0.02/minute) and the default output format, which an agent needs for budgeting. It does not say whether generation is synchronous or job-based, which is the main remaining behavioral gap.

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?

Four short sentences, front-loaded with the core capability, then delivery control, then cost, then use cases. Nothing is redundant and no sentence could be dropped without losing decision-relevant information.

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?

For a 10-parameter, zero-required tool with full schema coverage and an output schema, the description supplies the framing an agent needs: two modes, style control, cost, and target use cases. It leaves the approval-threshold mechanics and sync/async behavior to the schema, a minor but real gap.

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 already documents itself with examples (voice names, model aliases, BCP-47 codes, inline tags). The description only restates the text-vs-dialogue and style concepts at a high level, adding little beyond the schema — the correct baseline of 3.

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 ('Turn text into natural speech (WAV)') and immediately disambiguates the two operating modes: single voice vs. two-speaker dialogue. That distinction cleanly separates it from siblings like generate_music and generate_video without opening any schema.

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?

Gives concrete usage contexts ('podcasts, voiceovers, narration and dialogue'), which tells the agent when this is the right tool. It stops short of naming alternatives or exclusions (e.g., when to prefer generate_music for sung/ambient audio), so it is clear context without explicit routing.

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