Skip to main content
Glama

Text to speech (TTS): turn text into an audio file

ai_speech
Read-only

Turn up to 1,000 characters of text into natural speech as an audio file (base64, with its content type), in English, Spanish, French, Chinese, Japanese or Korean, with MeloTTS. Use for voice replies, audio notes, accessibility and phone or chat bots. Example: text=Your payment was received. Thank you!. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
langNoLanguage: en, es, fr, zh, ja or ko (default en)
textYesText to speak, up to 1,000 characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses cost ($0.01/call, 25 free, failed calls free), the payment paths (x402 USDC or card key via /credits), the return shape (base64 audio plus content type), and warns that repeats are charged because the tool is not idempotent. That directly reinforces the idempotentHint=false and readOnlyHint=true annotations with actionable context.

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?

Purpose and limits are front-loaded, then use cases, then pricing. It is dense but nearly every clause carries new information; the pricing/payment sentence is long but justified given there is no other place to learn the cost.

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?

With no output schema, the description correctly compensates by stating the return is base64 audio with its content type, alongside input limits, language support, and billing behavior. Nothing material for a correct call is missing.

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 coverage is 100%, so the enum for lang and the 1,000-character limit on text are already documented in the schema; the description mainly restates the character cap and the language list. Baseline 3 is appropriate since the description adds no format or syntax detail the schema lacks.

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 concrete verb and resource ('turn text into natural speech as an audio file') plus the engine (MeloTTS) and supported languages, which cleanly separates it from siblings like transcribe (the inverse) and ai_translate. An agent can route here without opening 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 Guidelines4/5

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

Names concrete use cases (voice replies, audio notes, accessibility, phone/chat bots) and provides a worked example. It gives no explicit exclusions or 'use X instead' routing against siblings such as transcribe or ai_chat, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.