Skip to main content
Glama

miragea_text_to_speech

Convert text into a voiceover audio file and save it locally, using a preset voice ID or cloning from a reference audio clip, with controls for model, speed, format, and emotion tags.

Instructions

Generate a voiceover audio file from text (Miragea voice engine) and save it locally. Choose a voice with actor_id (from miragea_list_voices) OR reference_audio_url (public URL to clone from; add its exact transcript in reference_text for the most faithful clone). Optional: model ('expressive' or 'standard'), tags (emotion/style labels from capabilities), speed 0.25-4, format. Returns the saved file path and task_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "miragea_text_to_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNo
textNo
waitNo
modelNo
speedNo
formatNo
actor_idNo
languageNo
text_fileNo
output_pathNo
reference_textNo
idempotency_keyNo
reference_audio_urlNo
wait_timeout_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare non-read-only, open-world, non-destructive, non-idempotent, and the description adds that a file is written locally and that a saved path plus task_id are returned (implying async work). It says nothing about the `wait` flag semantics, how `idempotency_key` changes behavior, or the cost/side effects of an open-world generation call, so beyond-annotation disclosure is partial.

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-loads the core action, then packs voice-selection guidance and option ranges into two tight sentences with zero filler. The nested parenthetical for `reference_audio_url` is slightly dense but still readable.

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 14-parameter tool with zero schema coverage, the description covers the parameters that drive output quality and correctly relies on the output schema for return values. It falls short on the async control surface (`wait`, `wait_timeout_seconds`) and `idempotency_key`, which an agent needs to call this reliably under the non-idempotent annotation.

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 0%, so the description must compensate, and it does add real meaning for `actor_id` vs `reference_audio_url`, `reference_text`, `tags`, `model`, `speed` (0.25-4), and `format`. However six parameters - `wait`, `wait_timeout_seconds`, `output_path`, `text_file`, `language`, `idempotency_key` - receive no explanation at all, leaving a substantial gap at 14 params.

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: "Generate a voiceover audio file from text (Miragea voice engine) and save it locally." That distinguishes it from miragea_transcribe and hints at miragea_script_to_voiceover, though it never names the sibling or explains the boundary between text-driven and script-driven generation.

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 concrete how-to-use guidance: pick a voice via `actor_id` sourced from miragea_list_voices OR `reference_audio_url`, and add `reference_text` for the most faithful clone; tags come from capabilities. It does not state when to prefer this over miragea_script_to_voiceover or when each voice mode is inappropriate, so no exclusions are covered.

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