Skip to main content
Glama

ai_speech

Read-only

Text to speech (GET) — Turn text into spoken MP3 audio with one GET: text= (max 1500 characters), optional lang= en | es | fr | zh | ja | ko (default en). Returns the audio/mpeg body directly - save it or play it. Same engine as POST /v1/audio/speech (MeloTTS). Price: $0.008 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "ai_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesYour order has shipped and will arrive on Tuesday.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, and the description still adds real value: the response is a raw audio/mpeg body (not JSON), the input length ceiling, and a concrete cost of $0.008 USDC paid via x402 on Base. What is missing is failure behavior — what happens on oversize input or unpaid requests.

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?

It is a single dense paragraph, front-loaded with purpose, then limits, then return type, then billing — a sensible information order with no filler sentences. The em-dash-and-colon compression ('one GET: text= ...') makes it slightly telegraphic, but nothing is wasted.

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 one-parameter, read-only tool with no output schema, the description covers what an agent needs: input shape, size limit, language set, and the fact that the response is binary audio rather than a formatted payload. The only real gap is the schema/description divergence on the 'lang' argument and unstated error behavior.

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 the baseline is 3, and the description earns an increment by adding a meaningful constraint the schema omits (max 1500 characters) and defaulting rules for the language. However, it advertises an optional 'lang' parameter with an enum that does not exist in the supplied schema, which creates a mismatch an agent could act on incorrectly.

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 opens with a specific verb and resource ('Text to speech (GET) — Turn text into spoken MP3 audio') and explicitly contrasts itself with the POST variant ('Same engine as POST /v1/audio/speech'), so an agent can tell which sibling to pick from the text alone.

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 states a clear operating context: a single GET call with a hard 1500-character input cap, and it points at the POST endpoint as the alternate path. It stops short of stating when to prefer POST over GET (e.g., longer text or body-based input), so the routing rule 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