Skip to main content
Glama

Dub a video or audio file

dub_media

Uploads a local file (an absolute path) or a public https link, and starts one dub per target language. Returns as soon as the dubs have started; dubbing takes minutes. Then call wait_for_dub or get_dub.

Instructions

Uploads a local file (an absolute path) or a public https link, and starts one dub per target language. Returns as soon as the dubs have started; dubbing takes minutes. Then call wait_for_dub or get_dub. Languages the plan can't dub into come back under refused with a reason. Live keys use plan minutes, so confirm the languages with the person first. Test keys dub only video files, and only the first 60 seconds.

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": {
      "source": "<source>",
      "source_language": "<source_language>",
      "target_languages": "<target_languages>"
    },
    "name": "dub_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesAn absolute path to a local video or audio file, or a public https:// link to one.
metadataNoYour own labels, returned on the dub and in webhooks.
instructionsNoNotes for the dub, such as names to keep as they are, the tone, or how to address the audience. Followed on paid plans.
num_speakersNoHow many people speak, if known. Leave out to detect it.
voice_cloningNoKeep each speaker's own voice. Leave out for the account's default.
source_languageYesThe language spoken in the original, as a code such as en, fr or yo.
target_languagesYesCodes from list_languages, such as ["fr-FR", "es-ES"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / instructions
      Added value: +{
      +  "description": "Notes for the dub, such as names to keep as they are, the tone, or how to address the audience. Followed on paid plans.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false): it discloses async semantics (returns once started, dubbing takes minutes), partial-failure behavior (`refused` with a reason), billing impact (live keys consume plan minutes), and test-key restrictions (video only, first 60 seconds). These are exactly the traits an agent needs before invoking a long-running, cost-incurring job.

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?

Four tight sentences, front-loaded with the action and the async contract, followed by follow-up routing and then caveats. Each sentence contributes distinct information with no restatement of the schema.

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?

Covers the hard parts of a 7-parameter, nested-object, no-output-schema tool: async behavior, refusal handling, plan and test-key limits. The remaining gap is the response shape — it never says the result carries dub identifiers that must be passed to wait_for_dub/get_dub, which an agent needs to chain calls.

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 coverage is 100%, so every parameter is already documented in the input schema, and the description adds little parameter-level detail beyond confirming `source` accepts an absolute path or https link and tying `target_languages` to plan eligibility. Baseline 3 applies when the schema carries the semantics.

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?

States a specific verb and resource (upload a file/link and start one dub per target language) plus the scope of what it does not do (it does not wait for completion). An agent can distinguish it from wait_for_dub and get_dub from the text alone.

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?

Explicitly routes the agent forward: 'Then call wait_for_dub or get_dub.' It also adds a genuine usage precondition ('confirm the languages with the person first' on live keys) and states what happens when a language is refused. No explicit when-not-to-use case, but the context is clear.

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