Skip to main content
Glama

Dub video into another language

dub

Dub a video into targetLanguage: transcribes, translates, voices each line fitted to the original timing, and mixes it over the original audio (ducked by default, or muted); returns an MP4 plus target-language SRT/VTT/JSON (audioTrack:true adds an M4A). Price per target language: 5 credits per source minute (voiceTier basic) or 12 (standard), plus transcription 1/min and translation 2/min unless you reuse transcriptionJobId/subtitles and translationJobId/translatedSubtitles. Voices: get_catalog kind voices. Unsupported languages fail before charging. No voice cloning or lip sync.

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": {
      "targetLanguage": "<targetLanguage>"
    },
    "name": "dub"
  }
}

Input Schema

NameRequiredDescriptionDefault
voiceNoVoice id from get_catalog {kind:'voices'} (listen to sampleUrl first). Omit for the default voice of the language and tier.
fileIdNoId of a file already uploaded with upload {action:'start'}, upload {action:'start_multipart'}, upload {action:'inline'} or import_url. Pass this or the media URL.
api_keyNoOnly for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared.
mediaUrlNoPublic https link to the video or audio (direct file, chat attachment URL, Google Drive or Dropbox share link; YouTube is refused). Pass this or fileId.
subtitlesNoSource-language SRT, VTT, or JSON.
voiceTierNoDefaults to the voice's tier, else basic.
audioTrackNoAlso return the dubbed audio as M4A.
maxCreditsNoSpending cap for this call in credits (1 credit = 1 cent). If the price is higher the call fails with 422 before charging.
sourceLanguageNoLanguage of the input captions or speech (ISO 639-1, e.g. en). Omit to auto-detect.
targetLanguageYesISO 639-1: en, es, fr, zh, ja, ko, hi, ar, bn, pt, ru, ur, id, de, tr, it, vi.
translationJobIdNoA translate job into targetLanguage.
keepOriginalAudioNo'duck' (default) keeps the original audio at -18 dB under the dubbed voice; 'mute' removes it.
transcriptionJobIdNoReuses its cues and its stored media.
translatedSubtitlesNoTarget-language SRT, VTT, or JSON.

Output Schema

NameRequiredDescriptionDefault
idNoJob id: pass it to get_job, resume_job, edit_transcript or as transcriptionJobId.
kindNoJob kind (transcribe, burn, caption, clips, shorts, trim, dub, translate, preview, metadata...).
stepNoCurrent pipeline step while running.
errorNoFailure reason when status is failed.
resultNoResult when succeeded: url, files[{name, url}], clips, text...
statusNoqueued, running, succeeded or failed.
progressNoProgress (0-1) and ETA while running.
warningsNoNon-blocking notes.
costCentsNoCredits charged (1 credit = 1 cent).
expiresAtNoWhen the result files are deleted.
refundedCentsNoCredits refunded after a failure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Only for a connection without an Authorization header: the token create_key returned (av_live_...). Pass it on every call to use that key in this same session, no reconnect or config change. Ignored when the connection already sends a key. It works like a password: create a new key if this conversation is shared.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / fileId / description
      Previous value: -"Id of a file already uploaded with create_upload, create_multipart_upload, upload_base64 or import_url. Pass this or the media URL."New value: +"Id of a file already uploaded with upload {action:'start'}, upload {action:'start_multipart'}, upload {action:'inline'} or import_url. Pass this or the media URL."
    • changedInput schema / properties / voice / description
      Previous value: -"Voice id from list_voices (listen to sampleUrl first). Omit for the default voice of the language and tier."New value: +"Voice id from get_catalog {kind:'voices'} (listen to sampleUrl first). Omit for the default voice of the language and tier."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "description": "A job: poll get_job with id until status is succeeded or failed.",
      +  "properties": {
      +    "costCents": {
      +      "description": "Credits charged (1 credit = 1 cent).",
      +      "type": "number"
      +    },
      +    "error": {
      +      "description": "Failure reason when status is failed."
      +    },
      +    "expiresAt": {
      +      "description": "When the result files are deleted."
      +    },
      +    "id": {
      +      "description": "Job id: pass it to get_job, resume_job, edit_transcript or as transcriptionJobId.",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "description": "Job kind (transcribe, burn, caption, clips, shorts, trim, dub, translate, preview, metadata...).",
      +      "type": "string"
      +    },
      +    "progress": {
      +      "description": "Progress (0-1) and ETA while running."
      +    },
      +    "refundedCents": {
      +      "description": "Credits refunded after a failure.",
      +      "type": "number"
      +    },
      +    "result": {
      +      "description": "Result when succeeded: url, files[{name, url}], clips, text..."
      +    },
      +    "status": {
      +      "description": "queued, running, succeeded or failed.",
      +      "type": "string"
      +    },
      +    "step": {
      +      "description": "Current pipeline step while running.",
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "description": "Non-blocking notes.",
      +      "items": {},
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed5 schema fields changed
    • addedInput schema / properties / fileId / description
      Added value: +"Id of a file already uploaded with create_upload, create_multipart_upload, upload_base64 or import_url. Pass this or the media URL."
    • addedInput schema / properties / keepOriginalAudio / description
      Added value: +"'duck' (default) keeps the original audio at -18 dB under the dubbed voice; 'mute' removes it."
    • addedInput schema / properties / maxCredits / description
      Added value: +"Spending cap for this call in credits (1 credit = 1 cent). If the price is higher the call fails with 422 before charging."
    • addedInput schema / properties / mediaUrl / description
      Added value: +"Public https link to the video or audio (direct file, chat attachment URL, Google Drive or Dropbox share link; YouTube is refused). Pass this or fileId."
    • addedInput schema / properties / sourceLanguage / description
      Added value: +"Language of the input captions or speech (ISO 639-1, e.g. en). Omit to auto-detect."
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-idempotent, non-destructive open-world write; the description goes far beyond that with per-minute credit pricing by tier, the fact that unsupported languages fail before charging, maxCredits 422 behavior implied via schema, and default ducking at -18 dB. It also discloses exactly what is returned (MP4 + SRT/VTT/JSON, optional M4A), which annotations cannot convey.

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 purpose, then cost, then reuse, then voice lookup, then failure modes, then exclusions — a logical information hierarchy with no filler. The pricing and reuse clauses are dense to the point of being slightly hard to parse on first read, which keeps it off a 5.

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?

For a 14-parameter job that spends real credits, the description supplies the cost model, the charging-failure guarantee, the reuse path to avoid duplicate spend, and the explicit capability exclusions. With an output schema present, it does not need to restate return shapes, and nothing an agent needs before calling is missing.

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 100%, so the baseline is 3, and the description earns the bump by explaining the cost interaction between the reuse parameters (transcriptionJobId/subtitles vs translationJobId/translatedSubtitles) rather than restating field definitions. It does not add much beyond the schema for the voice, audioTrack, or maxCredits parameters, which the schema already documents well.

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

Purpose5/5

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

Opens with a specific verb and resource ('Dub a video into targetLanguage') and immediately enumerates the internal pipeline (transcribe, translate, voice-fit, mix). It distinguishes itself from siblings like translate, transcribe, and burn_captions by making clear this produces a mixed audio track plus caption files.

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 routing conditions: reuse transcriptionJobId/subtitles and translationJobId/translatedSubtitles to avoid re-paying for work already done by the transcribe/translate tools, and points to get_catalog kind:'voices' for voice ids. It also states limits ('no voice cloning or lip sync') without naming a direct alternative for those needs, so it stops short of a full when-to-use/when-not matrix.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources