Skip to main content
Glama
smallest-inc

Smallest MCP Server

Official
by smallest-inc

text_to_speech

Convert text to speech audio and save it to a file using Smallest AI's Lightning TTS. Supports multiple languages, voices, and output formats.

Instructions

Convert text to speech audio using Smallest AI's Lightning TTS. Saves the audio file to the specified path. IMPORTANT: Always ask the user where to save the file before calling. Suggest ~/Desktop/.wav as default. Do NOT retry if successful — the file is saved even if inline audio rendering fails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to synthesize into speech
modelNoTTS model. lightning_v3.1 (default) or lightning_v3.1_pro (Lightning V3.1 Pro — higher quality, curated voices). Default: lightning_v3.1lightning_v3.1
speedNoSpeech speed multiplier (0.5-2.0). Default: 1.0
languageNoLanguage code (e.g. en, hi, ta, es). Default: en.en
voice_idNoVoice ID to use (e.g. emily, daniel, rachel, yuvika). Use get_voices to see available voices.emily
output_pathYesFile path to save the audio to (e.g. ~/Desktop/output.wav). Ask the user where to save.
sample_rateNoAudio sample rate in Hz (8000, 16000, 24000, 44100). Default: 24000
output_formatNoOutput audio format. Default: wavwav
Behavior4/5

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

Discloses key behaviors: saves file, uses specific TTS engine, and that file is saved even if inline rendering fails. No annotations provided, but description covers main aspects. Could mention error handling or rate limits.

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?

Three focused sentences with front-loaded purpose. Imperative notes are concise and actionable. No extraneous text.

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?

With 8 parameters and no output schema or annotations, description provides core functionality and usage guidance. Could elaborate on error scenarios, but overall sufficient.

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

Parameters4/5

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

Schema coverage is 100%, so parameters are already well-documented. Description adds value by referencing get_voices for voice_id and emphasizing the save path behavior. Mild bonus.

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 converts text to speech using Smallest AI's Lightning TTS and saves to a file. It uses specific verbs and resources, and is distinct from sibling tools which are unrelated.

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

Usage Guidelines5/5

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

Explicit instructions: always ask user for save path, suggest default ~/Desktop/<name>.wav, and do not retry on success. This guides appropriate use.

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/smallest-inc/mcp-server'

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