Skip to main content
Glama

Text To Speech

text_to_speech
Read-only

Text to natural speech with Deepgram Aura 2: up to 500 characters (about 30 seconds of speech) in one of 40 English voices, returned as an MP3 or WAV file in base64. Costs USD 0.02 per call, paid with x402 (USDC on Base); calls that fail are not charged.

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": "text_to_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesWhat to say, up to 500 characters
voiceNoVoice (default asteria)
formatNoAudio format (default mp3)

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?

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, but the description adds the material behavior an agent actually needs: a hard per-call cost of USD 0.02, the payment rail (x402 / USDC on Base), and the billing guarantee that failed calls are not charged. It also discloses the return shape (base64-encoded audio file) and the input size ceiling, which the annotations do not cover.

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?

One dense sentence that front-loads the capability, then the constraints, then cost. Every clause carries distinct information — limits, voices, formats, price, payment method, failure policy — with no restatement of the title or schema.

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 single-call, three-parameter synthesis tool with no output schema, the definition covers the essentials: input ceiling, voice/format options, deliverable encoding, price, and billing failure behavior. The only gaps are operational details such as rate limits or latency, which are minor at this complexity.

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 all three parameters and both enums are already documented, making 3 the baseline. The description still adds value by quantifying the text limit as roughly 30 seconds of speech and confirming the two output formats, which helps an agent size its input rather than just read a character count.

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 names a specific verb and resource ("Text to natural speech") plus the underlying model (Deepgram Aura 2), its output artifact (MP3/WAV as base64), and its scope (40 English voices, 500 characters). It cannot be confused with the nearest sibling, transcribe_audio, which runs the opposite direction.

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?

Usage context is implied rather than stated: the 500-character cap, the ~30 second approximation, and the per-call price let an agent infer when this tool is appropriate. However, there is no explicit when-to-use/when-not-to-use framing and no named alternative (e.g. transcribe_audio for the inverse task), so routing still requires inference.

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