Skip to main content
Glama

Text to speech

text_to_speech

Convert written text into spoken audio using selectable voices and adjustable speed. Add narration to VideoGen projects by choosing a voice ID and optional language.

Instructions

Convert text into spoken audio using a selectable voice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to speak.
speedNoSpeech-rate multiplier.
voiceIdYesCatalog display name (e.g. Matilda) or voice id from list_tts_voices.
languageNoISO-639-1 pronunciation language hint.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError details when status is failed; otherwise null.
statusNoJob status: pending, running, succeeded, failed, or cancelled.
resultsNoGenerated results with download URLs when succeeded.
toolTypeNoTool name (e.g. GENERATE_IMAGE).
attemptIndexNoCurrent or latest attempt index.
toolExecutionIdYesTool execution id (vg_tool_...).
progressPercentageNoCompletion progress 0-100 (present after polling).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.1

TDQS

B3.2/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=false, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds no behavioral context beyond the basic conversion action, such as generation latency, temporary file handling, or voice availability constraints.

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 a single, front-loaded sentence with no wasted words. It efficiently communicates the core action and one key variable.

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 simple text-to-speech tool with rich structured fields, the description is mostly complete: output schema handles return values, annotations cover safety, and the schema documents all parameters. The main remaining gap is sibling differentiation, but the core invocation requirements are covered.

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 the input schema fully documents all four parameters, including text, speed, voiceId, and language. The description's mention of a 'selectable voice' adds no meaning beyond what the schema already provides, making the baseline score of 3 appropriate.

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?

The description states a specific verb and resource: 'Convert text into spoken audio.' It also mentions a selectable voice, which clarifies scope. However, it does not differentiate this tool from similar siblings such as voiceover_to_video, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no explicit guidance about when to use this tool versus alternatives like voiceover_to_video or when to first call list_tts_voices. Usage is only implied by the tool name and purpose.

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