Skip to main content
Glama

Translate subtitles

translate

Translate existing captions (subtitles or transcriptionJobId) into another language with Workers AI m2m100, keeping cue timing; returns SRT, VTT and JSON. Paid: 2 credits per minute; burn: true also burns the translation into the video (+4 credits/min; needs mediaUrl or fileId and a preset). Word-level highlight timing is not kept. To transcribe, translate and burn in one call use caption_video with translateTo; for a spoken (voice) translation use dub. Saved do-not-translate glossary terms are kept as is. 402 insufficient_balance with checkoutUrl when short; failed jobs refund.

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": "translate"
  }
}

Input Schema

NameRequiredDescriptionDefault
burnNotrue = also burn the translated captions into the video (+4 credits/min; needs mediaUrl or fileId and a preset).
fileIdNoUploaded media to burn into when burn is true.
presetNoPreset for the burn when burn is true.
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.
mediaUrlNoMedia to burn into when burn is true.
faceAvoidNotrue = move captions off faces (samples faces at 2 fps, same price; result.faceAvoid.faceLayout). Shortcut for styleOverrides.faceAvoid.
subtitlesNoExisting captions as SRT, WebVTT or AwesomeVideo JSON text. Skips transcription (no transcription charge).
maxCreditsNoSpending cap for this call in credits (1 credit = 1 cent). If the price is higher the call fails with 422 before charging.
highlightColorNo#RRGGBB for highlightWords. Default #FACC15.
highlightWordsNoShortcut: words or phrases to color in every caption (accent/case-insensitive), e.g. ["AwesomeVideo", "gratis"]. Maps to styleOverrides.wordHighlights rule {id:"custom", words, color}; on highlighter-marker, ghost-keywords and brand-box it fills their keyword list in the preset colors. Same price.
sourceLanguageNoLanguage of the input captions or speech (ISO 639-1, e.g. en). Omit to auto-detect.
styleOverridesNoPer-call style changes deep-merged onto the preset (same fields as get_catalog {kind:'presets'} style; null removes a field), validated with the renderer schema and bundled fonts. Example {"fontSize":72,"maxWordsPerCaption":2,"wordEntrance":"bounce"}. Same price. No need to manage_preset {action:'create', type:'custom'}. Every field with examples: get_catalog {kind:'styles'}.
targetLanguageYesISO 639-1 code such as es, fr, de, pt, it, ja, zh. Unsupported codes return invalid_language.
transcriptionJobIdNoId of a finished transcribe or caption_video job whose transcript to reuse (no new transcription charge).

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. Changed1 schema field changed
    • changedInput schema / properties / highlightWords / description
      Previous value: -"Shortcut: words or phrases to color in every caption (accent/case-insensitive), e.g. [\"AwesomeVideo\", \"gratis\"]. Maps to styleOverrides.wordHighlights rule {id:\"custom\", words, color}. Same price."New value: +"Shortcut: words or phrases to color in every caption (accent/case-insensitive), e.g. [\"AwesomeVideo\", \"gratis\"]. Maps to styleOverrides.wordHighlights rule {id:\"custom\", words, color}; on highlighter-marker, ghost-keywords and brand-box it fills their keyword list in the preset colors. Same price."
  3. Changed2 schema fields changed
    • changedInput schema / properties / styleOverrides / description
      Previous value: -"Per-call style changes deep-merged onto the preset (same fields as list_presets style; null removes a field), validated with the renderer schema and bundled fonts. Example {\"fontSize\":72,\"maxWordsPerCaption\":2,\"wordEntrance\":\"bounce\"}. Same price. No need to save_custom_preset. Every field with examples: get_style_reference."New value: +"Per-call style changes deep-merged onto the preset (same fields as get_catalog {kind:'presets'} style; null removes a field), validated with the renderer schema and bundled fonts. Example {\"fontSize\":72,\"maxWordsPerCaption\":2,\"wordEntrance\":\"bounce\"}. Same price. No need to manage_preset {action:'create', type:'custom'}. Every field with examples: get_catalog {kind:'styles'}."
    • 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"
      +}
  4. Changed8 schema fields changed
    • addedInput schema / properties / burn / description
      Added value: +"true = also burn the translated captions into the video (+4 credits/min; needs mediaUrl or fileId and a preset)."
    • addedInput schema / properties / fileId / description
      Added value: +"Uploaded media to burn into when burn is true."
    • 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: +"Media to burn into when burn is true."
    • addedInput schema / properties / preset / description
      Added value: +"Preset for the burn when burn is true."
    • addedInput schema / properties / sourceLanguage / description
      Added value: +"Language of the input captions or speech (ISO 639-1, e.g. en). Omit to auto-detect."
    • addedInput schema / properties / subtitles / description
      Added value: +"Existing captions as SRT, WebVTT or AwesomeVideo JSON text. Skips transcription (no transcription charge)."
    • addedInput schema / properties / transcriptionJobId / description
      Added value: +"Id of a finished transcribe or caption_video job whose transcript to reuse (no new transcription charge)."
  5. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the safety profile; the description goes well beyond by disclosing pricing (2 credits/min, +4 credits/min for burn), refunds for failed jobs, the 402 insufficient_balance response with checkoutUrl, that word-level highlight timing is dropped, and that glossary do-not-translate terms pass through unchanged. These are exactly the operational facts an agent needs before spending credits.

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 core action and outputs come first, then pricing, then exclusions/alternatives, then failure modes. It is dense but every sentence carries distinct information; nothing is restated from the title or schema.

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, nested-object, credit-charging job tool, the description covers cost, prerequisites, output formats, degraded behavior, sibling routing, and error handling. With an output schema present it correctly does not enumerate response fields.

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; the description still adds cross-parameter meaning by framing subtitles vs transcriptionJobId as alternative input sources and tying burn to mediaUrl/fileId plus a preset. It does not add syntax detail for sourceLanguage or styleOverrides beyond the schema.

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+resource pair (translate existing captions), names the accepted input sources (subtitles text or transcriptionJobId), the engine (Workers AI m2m100), the preserved property (cue timing) and the outputs (SRT, VTT, JSON). It is immediately distinguishable from caption_video and dub, which are explicitly named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: use caption_video with translateTo for transcribe+translate+burn in one call, use dub for spoken translation, and this tool when captions already exist. It also states the prerequisite for the burn path (needs mediaUrl or fileId and a preset).

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