Skip to main content
Glama

tts_synthesize

Converts up to 300 characters of text into realtime speech audio, returning a saved file path with metadata or base64 audio for direct use.

Instructions

Realtime TTS (sync). Text must be <= 300 characters.

Returns the audio file path + metadata when output_path is given, otherwise base64-encoded audio with its content_type.

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_code": "<voice_code>"
    },
    "name": "tts_synthesize"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
speedNo
bitrateNo
voice_codeYes
output_pathNo
sample_rateNo
output_formatNomp3

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two real traits: the 300-character input limit and the dual return mode (file path + metadata vs. base64 audio with content_type). It omits error behavior for invalid voice_code, unsupported format/sample_rate combinations, latency expectations, and whether files written to output_path overwrite existing data.

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?

Three short lines, front-loaded with the tool's identity and hard constraint, then the return contract. No filler, though the line break mid-sentence in the return description reads slightly fragmented.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the base64-vs-path distinction is bonus rather than necessity, and the 300-character limit is a genuinely important constraint. Still, for a 7-parameter tool with 0% schema coverage and no annotations, the agent lacks guidance on voice selection, format/sample-rate compatibility, and failure modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 7 parameters, so the description must compensate. It only explains output_path (which switches the return mode) and alludes to text via the length limit; speed, bitrate, voice_code, sample_rate, and output_format receive no added meaning, and voice_code's format/source is left entirely undiscovered.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Realtime TTS (sync)" names a concrete verb and resource, and the parenthetical marks the synchronous variant, which implicitly distinguishes it from tts_synthesize_async. It stops short of explicitly naming the sibling or the condition that routes work there, so differentiation is inferred rather than stated.

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?

The 300-character ceiling and the "sync" label imply this is for short, immediate text-to-speech calls, which is useful context for choosing it over tts_synthesize_async. However, no explicit when-to-use/when-not-to-use statement or prerequisite (e.g., obtaining a voice_code via list_voices) is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.