Skip to main content
Glama

Text to speech

text_to_speech

Convert text to spoken audio with a VoiceHue voice. Returns the audio (MP3 by default, or WAV) and a one-line summary with the voice, number of characters and duration. Up to 3,000 characters per call. Use list_voices first to get a valid voice id.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to speak.
speedNoSpeaking speed, 0.5 to 2.
voiceYesA voice id from list_voices.
formatNoAudio format. MP3 is the default.mp3

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / text / maxLength
      Previous value: -1200New value: +3000
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so safety is partly covered. The description adds genuinely new behavior: the 3,000-character per-call ceiling, the returned payload shape (audio plus a one-line summary with voice, character count and duration), and the default format. It omits auth/quota constraints and whether repeated identical calls produce identical audio, which is why it is not a 5.

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?

Three short sentences, front-loaded with the action, followed by return shape, limit, and the prerequisite. No filler or restated title, and every sentence carries information the agent needs.

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?

No output schema exists, but the description explicitly covers return values (audio file plus a summary line), the size limit, and the required voice-id source. For a simple 4-parameter generation tool with full schema coverage, nothing essential 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 description coverage is 100%, so every parameter is already documented with types, defaults, bounds and an enum. The description reinforces the 3,000-character limit and the MP3/WAV choice but adds no syntax or semantics the schema lacks, so the baseline 3 applies.

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 specific verb and resource ("Convert text to spoken audio") plus the provider scope ("with a VoiceHue voice"), and the sibling list_voices is explicitly referenced, so an agent can distinguish the two tools without opening either 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?

Gives a concrete prerequisite: "Use list_voices first to get a valid voice id", which routes the agent to the sibling before calling this tool. It does not state when NOT to use it or what to do on failure (e.g. invalid voice id), so it stops short of full when/when-not coverage.

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