Skip to main content
Glama

Add Subtitles

add_subtitles

Transcribe a video and burn word-timed, karaoke-style captions into it. Costs 6 credits per minute, by the second, at least 2 credits, from the length measured before charging. Up to 30 minutes per video. Returns a job immediately; check_job returns the permanent URL once it is completed. A failed job is refunded automatically. A video with no speech fails and is refunded.

Omit every styling and layout field unless the user asked for that change. Do not choose a font, size, weight, color, outline, background, position, offset, word count or animation on their behalf. Captions default to large white text with a white active word and a black outline in the lower safe area; the default font is the Noto Sans family for the language found in the speech. Portrait video uses up to 3 words per caption, square 1, landscape 2 by default and up to 4. font_name takes any Google Fonts family the user names; with language, a font that cannot draw that language's script is refused before credits are charged. Identical requests within 10 minutes reuse the same job; set force_new only when the user wants another paid result.

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": {
      "video_url": "<video_url>"
    },
    "name": "add_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoISO-639 code, sent only when known. Speech language is detected automatically; this picks the font for Chinese, Japanese or Korean.
positionNoDefault: bottom.
y_offsetNoTop and bottom: inward margin, 20 to 200. Center: pixels below the middle, -200 to 200.
font_nameNoExact Google Fonts family name, only when the user names a font; never choose one. Checked for the language's script before charging. Words in a script the font cannot draw use the matching Noto Sans family.
font_sizeNoPreferred size in pixels; kept within a safe range for the frame.
force_newNoAn identical request submitted in the last 10 minutes returns that job without charging again; true generates it again.
video_urlYesVideo to caption.
font_colorNoDefault: white.
font_weightNoDefault: bold. A font without the weight uses its nearest one.
skills_usedNoOptional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs.
stroke_colorNoDefault: black.
stroke_widthNoOutline in pixels, 0 for none. Default: 3.
budget_projectNoOptional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project.
highlight_colorNoColor of the word being spoken, the karaoke cue. Default: white.
background_colorNoBox behind the text. Default: none.
enable_animationNoBounce each caption in. Default: false.
background_opacityNoDefault: 0.7.
words_per_subtitleNoPreferred most words per caption; limited by the frame shape.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations mark this as a non-readonly, open-world, non-idempotent tool, and the description contributes far more than they do: exact cost (6 credits/minute, by the second, 2-credit minimum, measured before charging), a 30-minute cap, immediate job return with check_job for the permanent URL, automatic refund on failure, failure on videos with no speech, and a 10-minute identical-request dedupe window. These are exactly the side-effect, cost, and failure traits annotations cannot express.

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?

The structure is good: purpose and pricing lead, defaults follow, and the force_new caveat closes. Some sentences restate schema default values (white text, black outline, lower position), which is slight redundancy, but almost every sentence carries decision-relevant information and nothing is padded.

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 an 18-parameter generation tool with no output schema, the description supplies what an agent must know before calling: price, duration limit, asynchronous job flow, refund behaviour, failure mode, deduplication, and default styling. The only remaining gaps (budget project creation, analytics field) are already covered by their schema descriptions.

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, but the description goes beyond the schema by explaining behaviour: words-per-caption is bounded by frame shape (3 for portrait, 1 for square, 2–4 for landscape), font_name accepts any Google Fonts family but is script-validated, and force_new toggles the dedupe window. Minor gap: it does not clarify budget_project or skills_used beyond what the schema already documents.

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

Purpose4/5

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

The first sentence names a concrete action and output: transcribe a video and burn word-timed karaoke captions into it. That is specific enough that an agent can separate it from a plain transcription tool, but no sibling such as transcribe or add_speech_pronunciations is named, so the differentiation is inferred rather than stated.

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?

The description gives explicit when-not guidance for nearly every optional field: omit all styling and layout fields unless the user asked, never pick a font or animation on the user's behalf, send language only when known, and set force_new only when the user wants another paid result. It also states that font_name applies only when the user names a font and that script-incompatible fonts are refused before charging, so the decision rules are complete.

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.