Skip to main content
Glama

synthesize_pair

Generate an MP3 that speaks two texts with a pause between them, pairing native and target-language audio for language learning.

Instructions

Synthesize a pair of texts and stitch them into one MP3.

Creates [text1 audio] [pause] [text2 audio]. Use for language learning pairs like "strong" (English) + "stark" (German).

Args: text1: First text (typically English). With ElevenLabs eleven_v3, embed audio tags like [tired], [excited], [whisper] in text. text2: Second text (typically target language). Same audio tag support as text1. voice1: Voice for text1. Defaults to provider's default voice. If lang1 is provided without voice1, auto-selects. voice2: Voice for text2. Defaults to provider's default voice. If lang2 is provided without voice2, auto-selects. lang1: ISO 639-1 language code for text1 (e.g. 'en'). lang2: ISO 639-1 language code for text2 (e.g. 'de'). rate: Speech rate as percentage. Defaults to 90. pause_ms: Pause between the two texts in milliseconds. Defaults to 500. auto_play: Play the audio after synthesis. Defaults to true. output_path: Full path for the output file. output_dir: Directory for output. Defaults to TTS_OUTPUT_DIR env var or ~/langlearn-audio/. stability: ElevenLabs voice stability (0.0-1.0). similarity: ElevenLabs voice similarity boost (0.0-1.0). style: ElevenLabs voice style/expressiveness (0.0-1.0). speaker_boost: ElevenLabs speaker boost toggle.

Returns: JSON string with path, text, voice, and language fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rateNo
lang1No
lang2No
styleNo
text1Yes
text2Yes
voice1No
voice2No
pause_msNo
auto_playNo
stabilityNo
output_dirNo
similarityNo
output_pathNo
speaker_boostNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.2

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden and does it well: it describes the concatenated audio structure, the pause, voice auto-selection when lang is provided, defaults for rate/pause/auto_play, output directory fallback to TTS_OUTPUT_DIR, and the returned JSON fields. It does not cover overwrite behavior or auth requirements, but the main behavioral traits are disclosed.

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?

The description is front-loaded with a one-sentence purpose, followed by a concrete use example, then a clean Args list covering all parameters, and ends with a Returns line. For a 15-parameter tool, its length is justified and every section earns its place.

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?

Given the high complexity (15 params), no annotations, 0% schema description coverage, and only a summary output schema, the description provides enough detail to invoke the tool correctly: required texts, optional languages/voices/audio settings, output path controls, and return shape. Nothing critical for a correct call is missing.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates fully by documenting every one of the 15 parameters: meanings, defaults, allowed ranges, and relationships such as 'If lang1 is provided without voice1, auto-selects.' This is exactly what an agent needs beyond the bare schema.

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?

The description states a specific verb and resource: 'Synthesize a pair of texts and stitch them into one MP3' and gives the exact output shape '[text1 audio] [pause] [text2 audio]'. This clearly separates it from the single-text synthesize tool, but it does not explicitly contrast with synthesize_pair_batch, so it stops short of full sibling differentiation.

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 gives an explicit intended use case — language learning pairs like 'strong' (English) + 'stark' (German) — which tells an agent when the tool is appropriate. It does not mention when to prefer synthesize_pair_batch or synthesize_batch instead, so exclusions are missing.

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