Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MIRAGEA_API_KEYYesYour Miragea API key from https://miragea.ai/workspace/api. Required for tool calls.
MIRAGEA_BASE_URLNoMiragea API root URL including /v1, for private deployments.https://miragea.ai/v1
MIRAGEA_OUTPUT_DIRNoDirectory where relative output paths and default file names are written. Absolute paths are used as given.~/Miragea
MIRAGEA_HTTP_TIMEOUTNoPer-request HTTP timeout in seconds.60
MIRAGEA_WAIT_TIMEOUTNoMaximum seconds a tool waits for a job before returning its task_id.600

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Voiceover & captions tools for AI agents: turn text into voiceover audio files and audio/video into subtitles (SRT, VTT, TXT, JSON). Miragea is the voiceover and voice-cloning engine behind them. Workflow:

  1. Call miragea_get_capabilities first: it returns the live models (expressive / standard), emotion tags, formats, speed range and text-length limit for this account.

  2. Pick a voice: an existing voice from miragea_list_voices (actor_id), or a public reference audio URL (reference_audio_url, ideally with its exact transcript in reference_text).

  3. For a video voiceover with captions use miragea_script_to_voiceover; for audio only use miragea_text_to_speech; for subtitles of an existing file use miragea_transcribe. Do not resubmit a job after a timeout (that would create a duplicate job); resume it with miragea_get_task.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
miragea_get_capabilitiesA

Get the live voice-engine capabilities for this API key: voice models (expressive, standard), emotion/style tags per model, voice sources, audio formats, speed range, max characters per request, and subtitle formats and upload limits. Read-only. Call this first.

miragea_list_voicesA

List the voices (actors) saved in the user's Miragea account, with actor_id, name and language. Use search to find a voice by name across pages. Pass the actor_id to the voiceover tools. Read-only.

miragea_text_to_speechA

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.

miragea_transcribeC

Create subtitles from a local audio or video file (mp3, wav, m4a, mp4, mov, ...) with Miragea speech recognition. Saves SRT by default; also VTT, TXT or JSON (text, language, timed segments). max_caption_chars splits long cues for short-form video (e.g. 32-42).

miragea_script_to_voiceoverA

One shot for video creators: turn a script into a voiceover audio file PLUS matching captions (SRT and VTT by default) ready for CapCut, Premiere, DaVinci Resolve, YouTube or Shorts/TikTok/Reels. Generates speech with Miragea, then times captions by running Miragea recognition on the new audio. caption_text='script' (default) keeps your exact script wording (brand names spelled right) on the recognized timing. Set captions=false for audio only.

miragea_get_taskA

Check a Miragea task by task_id and optionally wait for it and save its output (audio file, or subtitles in srt/vtt/txt/json). Use this to resume after a timeout instead of resubmitting.

miragea_list_tasksB

List recent Miragea tasks (voiceovers and subtitle jobs) for this account, newest first.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct action: capability discovery, voice listing, TTS generation, transcription, task polling, and task listing. The only real overlap is between miragea_text_to_speech and miragea_script_to_voiceover, but the descriptions clearly frame the latter as a one-shot composite (audio + captions) for video creators.

Naming Consistency3/5

All names share the miragea_ prefix and snake_case, but the patterns vary: get_capabilities/list_voices/get_task/list_tasks are verb_noun, while text_to_speech and script_to_voiceover are noun phrases and transcribe is a bare verb. Readable, but not a predictable single convention.

Tool Count5/5

Seven tools is well-scoped for a TTS/subtitling server: discovery, voices, two generation paths, transcription, and task management. No tool feels redundant or padded.

Completeness4/5

Core lifecycle is covered: capabilities, voice listing, generation, transcription, async task polling and recovery, and task history. Minor gaps exist (no task cancel/delete, no explicit subtitle upload despite capabilities advertising upload limits), but agents can work around these.

Maintenance

ActivityNo data
ResponsivenessOutdated data