Skip to main content
Glama

تبدیل متن به گفتار (Text to speech)

text_to_speech

Turn up to 2000 characters of text (Persian or English) into spoken audio, returned as an MCP audio block (base64, MP3 by default). Default model gpt-4o-mini-tts. Paid from the Gisoo credit of this key like POST /audio/speech; the USD cost is in the text. متن را به فایل صوتی تبدیل می‌کند؛ هزینه از اعتبار گیسو کم می‌شود.

Input Schema

NameRequiredDescriptionDefault
inputYesThe text to read aloud.
modelNoSpeech model id. Default: gpt-4o-mini-tts.
voiceNoVoice name, e.g. alloy, nova (OpenAI) or Kore, Puck (Gemini). Optional.
instructionsNoHow to read it, e.g. "calm, slow". Models that support it only.
response_formatNomp3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond annotations, the description discloses that the call is paid from the Gisoo credit of the key, comparable to POST /audio/speech, and that the USD cost is included in the text. It also explains the output shape (MCP audio block, base64, MP3 by default), which is important behavioral context for a paid generation tool.

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 English portion is front-loaded and efficient, covering limits, output type, model default, and cost. The Persian sentence largely repeats the conversion and credit-deduction points, adding slight redundancy but remaining short.

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 no output schema, the description usefully explains that audio is returned as an MCP audio block and notes the default format. It also covers payment and cost transparency. Minor gaps remain around voice/instructions behavior, but the core invocation context is complete.

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 80%, so the schema already documents most parameters. The description reinforces the 2000-character limit, default model, and MP3 default, and adds that input may be Persian or English, but it does not add much beyond what the schema already conveys.

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 states a specific verb and resource: converting up to 2000 characters of Persian or English text into spoken audio. It also specifies the return format (MCP audio block, base64, MP3 by default) and default model, making the tool's function immediately clear and distinguishable from sibling generation tools.

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?

It gives clear usage context: text-to-speech for up to 2000 characters, with Persian/English support and default model behavior. It does not explicitly compare against alternatives like generate_music or ask_model, but the generation context is clear enough for an agent to select it.

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.

Resources