Skip to main content
Glama

tts_generate

Converts text to a WAV audio file using installed Piper voices, supports French and English, and returns the generated file path for playback or further processing.

Instructions

Synthétise text en WAV sur cette machine et renvoie le chemin du fichier.

lang: "fr" ou "en". voice: nom d'une voix installée (défaut fr_FR-siwis-medium / en_GB-alan-medium). length_scale > 1 ralentit. filename: nom du WAV (défaut horodaté) dans PIPER_OUTPUT_DIR (~/piper-out).

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

Input Schema

NameRequiredDescriptionDefault
langNofr
textYes
voiceNo
filenameNo
length_scaleNo
sentence_silenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 does disclose meaningful behavior: the output is a WAV on the local machine, the path is returned, and files land in PIPER_OUTPUT_DIR (~/piper-out) with a timestamped default name. It omits overwrite behavior, failure modes for uninstalled voices, and any dependency or performance notes.

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 with the action and return value in one sentence, followed by a compact per-parameter block. Dense but every line carries information; the terse formatting is slightly cryptic but not wasteful.

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?

For a 6-parameter tool with no annotations and no output schema, the description covers the action, return value, output directory, and most parameters. Gaps remain around `sentence_silence`, overwrite behavior, and error conditions, which matter for a tool that writes files to disk.

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 0%, so the description must compensate, and it largely does: lang values, voice naming with per-language defaults, the direction of length_scale (>1 slows speech), and filename default/location. Only `sentence_silence` is left undefined, and `text` is self-evident.

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?

States a specific verb and resource: synthesizes `text` into a WAV file on this machine and returns the file path. That is unambiguous and actionable, though it never contrasts itself with tts_phonemes or tts_voices, so sibling differentiation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No statement of when to use this versus the siblings, and no prerequisite such as needing a voice listed via tts_voices before choosing a non-default voice. The parameter hints imply usage but give no routing guidance or exclusions.

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

Deploy Server

Other Tools