Skip to main content
Glama

Add a subtitle track in another language

add_subtitle_track
DestructiveIdempotent

Subtitles in ANOTHER language over the SAME delivered piece — not a rendition: the voice, the visuals and the video stay as they are. The delivered video's own subtitle track (the narration with its real timings) is translated cue by cue with the same timings and saved next to that video; the piece's delivery package then lists it as SRT and VTT. burn=true also makes a VARIANT of the video with the track burned in (in the background): at the bottom when the video carries no burned track, at the TOP when it already burns its own at the bottom (both stay visible). The language only has to be one the house can declare (it reads or writes it): a language nobody narrates (e.g. Haitian Creole, ht) cannot be the VOICE of a piece, and this is the way to deliver it as subtitles. Two steps, for every caller: without confirm_spend it only prices the translation (quote.estimateUsd) and nothing is translated or written (outcome: cotizada); with confirm_spend=true it translates, saves and charges that price. outcome is typed (outcomeExplained). Requires write. Spends LLM budget on the translation of the track and debits its quoted price from the wallet in the same call (cents for a typical piece).

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": {
      "project_id": "<project_id>",
      "language": "<language>"
    },
    "name": "add_subtitle_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
burnNoAlso make a video with the track burned in (a variant; the delivered video is not replaced). Default false.
languageYesBCP-47 language of the subtitles (ht, fr, pt-BR…).
project_idYesThe project whose delivered video gets the track (a rendition is its own project).
include_srtNoReturn the SRT text in the answer (the delivery package carries it in any case). Default false.
confirm_spendNoTrue translates, saves and charges the quoted translation (after reading `quote` and the person's yes); omitted or false only returns the quote.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Goes well past the annotations: discloses the write scope requirement, that LLM budget is spent and the quoted price is debited from the wallet in the same call, that burn runs in the background and produces a variant rather than replacing the delivered video, and that the delivery package gains both SRT and VTT. What it does not reconcile is the destructiveHint=true annotation against the repeated emphasis that nothing is replaced — an agent may wonder whether the delivery package mutation is the destructive part.

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 core distinction before any mechanics, and nearly every clause carries information an agent needs. It is dense to the point of being a wall of text, with parenthetical asides ('(in the background)', '(`outcome: cotizada`)') that slow scanning more than they help.

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?

With no output schema, the description carries the return burden and does so by naming quote.estimateUsd, the typed outcome and outcomeExplained, plus the two outcome states. Complete enough to call correctly; only the idempotentHint=true annotation is left unexplained (whether re-running double-charges).

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 the schema already documents all five parameters and the baseline is 3. The description does add real meaning for burn (bottom placement when there is no burned track, TOP when the video already burns its own, variant not replacement) and for confirm_spend's charge semantics, but leaves include_srt entirely to 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 and resource (add a subtitle track in another language over the SAME delivered piece) and immediately rules out the nearest confusion: 'not a rendition: the voice, the visuals and the video stay as they are'. An agent can separate this from derive_rendition or assign_narration without opening the schema.

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 an explicit when-to-use condition that no other tool covers: 'a language nobody narrates (e.g. Haitian Creole, ht) cannot be the VOICE of a piece, and this is the way to deliver it as subtitles'. It also states the mandatory two-step protocol (quote first without confirm_spend, then confirm_spend=true) that governs every caller.

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