Skip to main content
Glama

370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation

text_to_speech

Convert text to spoken audio. Billed per input character on your key.

Args:
    text:  the text to speak.
    voice: voice id. The OpenAI voice names (alloy / echo / fable / onyx / nova / shimmer) are
           accepted, but on the default model they are all mapped to the same default voice, so
           they sound identical. To pick a different voice, pass a voice id supported by the model
           (for the default model, e.g. Cherry or Ethan).
Returns a short status line plus the generated audio as an audio content block
(mimeType as returned by the gateway, e.g. audio/mpeg).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
voiceNoalloy

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "text_to_speechOutput",
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the cost model ('billed per input character'), the non-obvious default-model voice aliasing gotcha, and the return shape (status line plus audio content block with gateway mimeType). It does not mention auth requirements or rate limits, but the key behavioral surprises are covered.

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?

Front-loaded purpose sentence, then structured Args/Returns sections. The voice paragraph is the longest block but every clause is actionable (accepted names, aliasing behavior, workaround), so it earns its space.

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 supplies the return format itself, plus cost and parameter guidance. For a two-parameter tool this is close to complete; only error/failure behavior and auth expectations are absent.

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 description coverage is 0%, so the description must compensate, and it does: it defines 'text' and gives substantial meaning for 'voice' beyond the schema — which named values are accepted, why they collapse to one voice on the default model, and concrete alternatives (Cherry/Ethan). This is real added value 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?

Opens with a specific verb+resource ('Convert text to spoken audio') that is immediately distinguishable from siblings chat, generate_image, and list_models. No ambiguity about what the tool produces.

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?

Provides practical context — billing is per input character, and the voice paragraph tells the caller how to actually get a distinct voice. However, it never states when to use this tool versus the siblings (e.g. for audio output vs text), so the when-to-use dimension is only implied.

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