Skip to main content
Glama

Add subtitles to a video (one call)

caption_video

PREFER THIS for 'add/burn subtitles to this video'. Needs a key with credits: without one, call create_key first (free; it returns starter welcomeCredits while today's last, or a welcomeChallenge for 10 free welcome credits while the trial runs). First run: sourceUrl https://awesomevideoeditor.com/samples/cc0-interview-es.mp4 (8 s sample, 2 credits). One call: transcribe, optional translate (translateTo), burn; returns the MP4 plus SRT, VTT and JSON transcript. Source: sourceUrl (public link, Drive, Dropbox; not YouTube) or fileId from upload/import_url. Price: 5 credits per audio minute, 7 with translateTo (1 credit = 1 cent); failures refund. Waits up to waitSeconds (max 50), then returns the job to poll with get_job (or use webhookUrl/notifyEmail). review:true sends a reviewUrl and charges the burn only on approval. To edit text yourself: transcribe, edit_transcript, burn_captions.

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

Input Schema

NameRequiredDescriptionDefault
waitNoBlock until done, up to waitSeconds. Default true.
fileIdNoId from upload {action:'start'}, import_url, or upload {action:'inline'}.
presetNoCaption style preset id or name (get_catalog {kind:'presets'}), or your own saved preset as custom:cp_... (manage_preset {action:'create', type:'custom'}). Default Clarity.
reviewNoHuman review first: transcribes now, returns reviewUrl for the person; the burn runs and is charged only when they approve. Not with translateTo.
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.
autoFitNoDefault true: caption size, words per caption (4 on 9:16, 5 on 1:1, 7 on 16:9), and a default safe zone follow the video shape, so text reads the same at 720p and 1080p and stays clear of app UI. Pass false only when the user wants the preset's exact fixed pixel sizes. Same price.
glossaryNoNames and brand terms to spell correctly, e.g. ['AwesomeVideo'].
languageNoSpoken language (BCP-47, e.g. es, en). Omit for auto-detect.
platformNoTarget platform: tiktok, instagram_reels, youtube_shorts, youtube, ... (aliases reels, shorts). Keeps captions clear of the app UI. Same price.
faceAvoidNotrue = move captions off faces (samples faces at 2 fps, same price; result.faceAvoid.faceLayout). Shortcut for styleOverrides.faceAvoid.
sourceUrlNoPublic link to the video/audio. Direct https file, chat attachment URL, Google Drive or Dropbox share link. Not YouTube.
maxCreditsNoRefuse the job if it would cost more than this many credits.
webhookUrlNoPublic https URL, POSTed a signed JSON body when the job finishes.
audioVisualNoAudio-only input (mp3, m4a, wav...): an editorial podcast design plus captions, drawn on the server by the web editor's own code, same price as the burn. {variant: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover), showName (<=60), episode (<=12), speaker (<=60), coverImageUrl (https) or coverFileId (PNG/JPEG/WebP <=5 MB; shown by vinyl, duotone-portrait), background/accent/ink (#hex; ink auto from paper), captionMode integrated (default: the design typesets the captions) | preset (your caption preset draws), contrastGuard (default true), aspect 9:16|16:9|1:1|4:5 or width+height, overlays (<=8)}. Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. On a video input: 422 audio_visual_needs_audio_input, not charged. Catalog: GET /v1/audio-visuals (MCP get_catalog {kind:'audio_visuals'}), free.
notifyEmailNoEmail when the job finishes. Free.
translateToNoBurn subtitles translated to this language (ISO 639-1, e.g. en). Adds 2 credits/min.
waitSecondsNoDefault 45, max 50.
instructionsNoreview only: note shown to the reviewer.
brandPresetIdNoSaved brand preset (font, colors, position, logo).
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.
idempotencyKeyNoSame key returns the same job instead of charging twice.
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'}.
durationSecondsNoMedia length in seconds. Lets the price be computed without fetching media (quoteOnly, quote, plan).

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. Changed7 schema fields changed
    • changedInput schema / properties / audioVisual / description
      Previous value: -"Audio-only input (mp3, m4a, wav...): an editorial podcast design plus captions, drawn on the server by the web editor's own code, same price as the burn. {variant: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover), showName (<=60), episode (<=12), speaker (<=60), coverImageUrl (https) or coverFileId (PNG/JPEG/WebP <=5 MB; shown by vinyl, duotone-portrait), background/accent/ink (#hex; ink auto from paper), captionMode integrated (default: the design typesets the captions) | preset (your caption preset draws), contrastGuard (default true), aspect 9:16|16:9|1:1|4:5 or width+height, overlays (<=8)}. Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. On a video input: 422 audio_visual_needs_audio_input, not charged. Catalog: GET /v1/audio-visuals (MCP list_audio_visuals), free."New value: +"Audio-only input (mp3, m4a, wav...): an editorial podcast design plus captions, drawn on the server by the web editor's own code, same price as the burn. {variant: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover), showName (<=60), episode (<=12), speaker (<=60), coverImageUrl (https) or coverFileId (PNG/JPEG/WebP <=5 MB; shown by vinyl, duotone-portrait), background/accent/ink (#hex; ink auto from paper), captionMode integrated (default: the design typesets the captions) | preset (your caption preset draws), contrastGuard (default true), aspect 9:16|16:9|1:1|4:5 or width+height, overlays (<=8)}. Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. On a video input: 422 audio_visual_needs_audio_input, not charged. Catalog: GET /v1/audio-visuals (MCP get_catalog {kind:'audio_visuals'}), free."
    • changedInput schema / properties / audioVisual / properties / coverFileId / description
      Previous value: -"Same as coverImageUrl but a fileId from create_upload."New value: +"Same as coverImageUrl but a fileId from upload {action:'start'}."
    • changedInput schema / properties / audioVisual / properties / variant / description
      Previous value: -"Design id: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover). Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. list_audio_visuals describes each design."New value: +"Design id: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover). Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. get_catalog {kind:'audio_visuals'} describes each design."
    • changedInput schema / properties / fileId / description
      Previous value: -"Id from create_upload, import_url, or upload_base64."New value: +"Id from upload {action:'start'}, import_url, or upload {action:'inline'}."
    • changedInput schema / properties / preset / description
      Previous value: -"Caption style preset id or name (list_presets), or your own saved preset as custom:cp_... (save_custom_preset). Default Clarity."New value: +"Caption style preset id or name (get_catalog {kind:'presets'}), or your own saved preset as custom:cp_... (manage_preset {action:'create', type:'custom'}). Default Clarity."
    • 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. Changed1 schema field changed
    • addedInput schema / properties / durationSeconds / description
      Added value: +"Media length in seconds. Lets the price be computed without fetching media (quoteOnly, quote, plan)."
  5. Changed16 schema fields changed
    • changedInput schema / properties / audioVisual / description
      Previous value: -"Audio-only input (mp3/m4a/wav...): render the web editor's audio export (visualizer + captions) on the server, same price as the burn. On a video input it returns 422 audio_visual_needs_audio_input (not charged). Omit it on audio to get the default bars."New value: +"Audio-only input (mp3, m4a, wav...): an editorial podcast design plus captions, drawn on the server by the web editor's own code, same price as the burn. {variant: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover), showName (<=60), episode (<=12), speaker (<=60), coverImageUrl (https) or coverFileId (PNG/JPEG/WebP <=5 MB; shown by vinyl, duotone-portrait), background/accent/ink (#hex; ink auto from paper), captionMode integrated (default: the design typesets the captions) | preset (your caption preset draws), contrastGuard (default true), aspect 9:16|16:9|1:1|4:5 or width+height, overlays (<=8)}. Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. On a video input: 422 audio_visual_needs_audio_input, not charged. Catalog: GET /v1/audio-visuals (MCP list_audio_visuals), free."
    • addedInput schema / properties / audioVisual / properties / accent
      Added value: +{
      +  "description": "Accent colour #hex (spoken word, needle, seal...). Default: the design's.",
      +  "type": "string"
      +}
    • changedInput schema / properties / audioVisual / properties / background / description
      Previous value: -"Frame background color #RRGGBB (gradient/blur via config)."New value: +"Paper colour #rgb/#rrggbb (default: the design's). Ink switches automatically for contrast."
    • addedInput schema / properties / audioVisual / properties / captionMode
      Added value: +{
      +  "description": "integrated (default): the design typesets the captions word by word; preset: your caption preset draws them.",
      +  "enum": [
      +    "integrated",
      +    "preset"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / audioVisual / properties / config
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Variant config fields (colors, gradient, blur, bar count, position...). Same names and defaults as list_audio_visuals.",
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / audioVisual / properties / contrastGuard
      Added value: +{
      +  "description": "Preset mode (default true): white text on a light design switches to the design's ink so it stays legible.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / audioVisual / properties / coverFileId
      Added value: +{
      +  "description": "Same as coverImageUrl but a fileId from create_upload.",
      +  "type": "string"
      +}
    • addedInput schema / properties / audioVisual / properties / coverImageUrl
      Added value: +{
      +  "description": "Public https PNG/JPEG/WebP (max 5 MB) for the cover/host image slot (vinyl, duotone-portrait). Fetched before any charge.",
      +  "type": "string"
      +}
    • changedInput schema / properties / audioVisual / properties / enabled / description
      Previous value: -"false: background + captions, no visualizer."New value: +"false: paper + captions, no design."
    • addedInput schema / properties / audioVisual / properties / episode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 12,
      +      "type": "string"
      +    },
      +    {
      +      "type": "number"
      +    }
      +  ],
      +  "description": "Episode label or number (max 12 chars), printed after Nº. Empty: left out."
      +}
    • addedInput schema / properties / audioVisual / properties / ink
      Added value: +{
      +  "description": "Text/line colour #hex. Default: the design's, or auto from the paper.",
      +  "type": "string"
      +}
    • removedInput schema / properties / audioVisual / properties / presetId
      Removed value: -{
      -  "description": "bars only: minimal | neon | bold | spotify.",
      -  "type": "string"
      -}
    • addedInput schema / properties / audioVisual / properties / showName
      Added value: +{
      +  "description": "Show / podcast name (max 60). Empty: left out (mastheads fall back to Podcast).",
      +  "maxLength": 60,
      +  "type": "string"
      +}
    • addedInput schema / properties / audioVisual / properties / speaker
      Added value: +{
      +  "description": "Speaker / host name for bylines (max 60). Empty: left out.",
      +  "maxLength": 60,
      +  "type": "string"
      +}
    • changedInput schema / properties / audioVisual / properties / variant / description
      Previous value: -"Visualizer (default bars). list_audio_visuals shows each one's defaults."New value: +"Design id: swiss-grid | braun-radio | riso | editorial-cover | bauhaus | continuous-line | vinyl | type-wave | duotone-portrait | ma (default editorial-cover). Retired ids still work as aliases with a warning: bars→swiss-grid, ribbon→continuous-line, rings→ma, spectrogram→riso, skyline→bauhaus, silkline→type-wave, ivory→editorial-cover, halo→vinyl, needle→braun-radio, mono→duotone-portrait. list_audio_visuals describes each design."
    • removedInput schema / properties / audioVisual / properties / variant / enum
      Removed value: -[
      -  "bars",
      -  "ribbon",
      -  "rings",
      -  "spectrogram",
      -  "skyline",
      -  "silkline",
      -  "ivory",
      -  "halo",
      -  "needle",
      -  "mono"
      -]
  6. Changed1 schema field changed
    • addedInput schema / properties / audioVisual
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Audio-only input (mp3/m4a/wav...): render the web editor's audio export (visualizer + captions) on the server, same price as the burn. On a video input it returns 422 audio_visual_needs_audio_input (not charged). Omit it on audio to get the default bars.",
      +  "properties": {
      +    "aspect": {
      +      "description": "Frame shape; default from platform, else 9:16.",
      +      "enum": [
      +        "9:16",
      +        "16:9",
      +        "1:1",
      +        "4:5"
      +      ],
      +      "type": "string"
      +    },
      +    "background": {
      +      "description": "Frame background color #RRGGBB (gradient/blur via config).",
      +      "type": "string"
      +    },
      +    "config": {
      +      "additionalProperties": {},
      +      "description": "Variant config fields (colors, gradient, blur, bar count, position...). Same names and defaults as list_audio_visuals.",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "enabled": {
      +      "description": "false: background + captions, no visualizer.",
      +      "type": "boolean"
      +    },
      +    "height": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "overlays": {
      +      "description": "Up to 8 image (imageUrl, PNG/JPEG/WebP <=5 MB) or text items {kind, x, y, width, height, start, end, ...} in frame pixels.",
      +      "items": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "maxItems": 8,
      +      "type": "array"
      +    },
      +    "presetId": {
      +      "description": "bars only: minimal | neon | bold | spotify.",
      +      "type": "string"
      +    },
      +    "variant": {
      +      "description": "Visualizer (default bars). list_audio_visuals shows each one's defaults.",
      +      "enum": [
      +        "bars",
      +        "ribbon",
      +        "rings",
      +        "spectrogram",
      +        "skyline",
      +        "silkline",
      +        "ivory",
      +        "halo",
      +        "needle",
      +        "mono"
      +      ],
      +      "type": "string"
      +    },
      +    "width": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, open-world, non-idempotent, non-destructive call; the description adds pricing (5 credits/min, 7 with translateTo, 1 credit = 1 cent), failure refunds, the 50-second wait ceiling and what is returned when it is hit, and the review flow where the burn is charged only on approval. It also warns that api_key behaves like a password in shared conversations, which no annotation conveys.

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 the routing instruction and the key prerequisite, then pricing, then the alternative pipeline, so an agent can stop reading at any point. The parenthetical about welcomeCredits and welcomeChallenge is tangential detail that could be dropped or deferred to create_key.

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 24-parameter, nested-schema, expensive, long-running operation, the description covers cost, prerequisite auth, timing/polling, review semantics and fallback siblings. Return contents are noted even though an output schema exists, which is a bonus rather than a gap.

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 already 100%, so the baseline is 3; the description still adds real meaning by giving the cost delta of translateTo, the interaction between wait/waitSeconds and polling, and the sourceUrl-vs-fileId choice with a working sample URL. It does not explain the 24 parameters exhaustively (audioVisual, styleOverrides, preset are left to the schema), which keeps it at 4 rather than 5.

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+resource and an explicit preference cue ("PREFER THIS for 'add/burn subtitles to this video'"), which separates it from the one-step-at-a-time siblings burn_captions and transcribe. The 'one call: transcribe, optional translate, burn' phrase pins down exactly what the tool composes.

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?

States the precondition (a key with credits, create_key first), the alternative pipeline for manual editing (transcribe, edit_transcript, burn_captions), and what to do after the wait window expires (get_job, webhookUrl, notifyEmail). It also excludes a source type (not YouTube) so the agent knows when to redirect.

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