Skip to main content
Glama

aistudio_tts

Generate Arabic or English studio voiceovers—single-speaker or multi-speaker—with tone and pacing controls, and save ready-to-use WAV audio files.

Instructions

Generate Arabic or English studio voiceover / speech (single-speaker or multi-speaker dialogue) in Google AI Studio.

Saves a ready-to-use WAV/audio file into ~/Downloads/google-ai-studio (or output_path).

Args: text: The script or multi-speaker dialogue to speak (e.g. "Host: Welcome!\nGuest: Thanks!"). voice: Voice name (e.g. 'Kore', 'Puck', 'Charon', 'Zephyr', 'Aoede', 'Fenrir'). Default 'Kore'. style_instructions: Optional tone/pacing/accent direction (e.g. 'Warm Egyptian Arabic narrator, confident commercial pace'). multi_speaker: Optional dict mapping speaker names to voice names (e.g. {"Host": "Kore", "Guest": "Puck"}). model: Optional TTS model name (API mode default: 'gemini-3.8-flash-tts'). output_path: Optional local file path for the saved WAV. use_browser: True (default) drives aistudio.google.com/generate-speech in Chrome; False uses Gemini TTS API.

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": "aistudio_tts"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
modelNo
voiceNoKore
output_pathNo
use_browserNo
multi_speakerNo
style_instructionsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does a reasonable job: it discloses the default save location (~/Downloads/google-ai-studio), that a real audio file is written, and that there are two distinct execution paths (Chrome automation vs. the Gemini TTS API) with differing defaults, including a default model name that differs between modes. It does not mention authentication/browser-session requirements, rate limits, file-overwrite behavior, or latency, which leaves meaningful gaps for an automation tool that drives a logged-in browser.

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?

The purpose and output-location sentences are front-loaded and high value, followed by a compact Args block that earns its space given 0% schema coverage. The structure is easy to scan, though the Args list is slightly repetitive in places (repeating 'Optional' on four consecutive lines) and could be trimmed marginally.

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 seven-parameter tool with no annotations, the description covers purpose, output destination, defaults, and both execution modes, and an output schema exists so return values needn't be described. The remaining gap is prerequisite and side-effect context: whether browser mode requires a prior aistudio_browser_login session and whether an existing WAV at the target path is overwritten.

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?

Schema description coverage is 0%, so the description must compensate entirely, and it does: all seven parameters are documented with meaning, format, and defaults. It gives concrete voice name examples ('Kore', 'Puck', 'Charon'), clarifies the multi_speaker dict shape with a real example ({"Host": "Kore", "Guest": "Puck"}), shows the dialogue line format for text, and explains the mode split for use_browser and the different model default per mode.

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 opens with a specific verb and resource: generating studio voiceover/speech in Google AI Studio. It also states language coverage (Arabic or English), speaker modes (single- or multi-speaker dialogue), and the saved output artifact, which distinguishes it from siblings such as aistudio_generate_music, aistudio_generate_video, and aistudio_transcribe without needing to open the schema.

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 context is implied rather than stated: the agent can infer 'text in, audio out' from the purpose line, and the use_browser arg explains the choice between driving aistudio.google.com/generate-speech in Chrome versus the Gemini TTS API. However, there is no explicit when-to-use statement, no exclusions, and no pointer to the sibling that handles the reverse direction (aistudio_transcribe) or any prerequisite like aistudio_browser_login.

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