Skip to main content
Glama

Convert caption formats

convert_captions

Convert captions between SRT, WebVTT, ASS, JSON, and plain-text transcripts, with styled ASS output and presets for burn-in.

Instructions

Convert between SRT, WebVTT, ASS (styled, for burning in), JSON and plain-text transcript. ASS output can be styled with presets (vertical_reel, horizontal, lower_third) or custom font, size, colors, outline, box and position, and comes with an ffmpeg burn-in command.

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": {
      "to": "<to>"
    },
    "name": "convert_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget format.
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
formatNoInput format. Detected automatically when omitted.
contentNoCaption text, if you don't have a file.
ass_styleNoStyling for ASS output (used when burning captions into video).
overwriteNoAllow replacing an existing file.
output_pathNoWrite the result here. Format follows the extension unless `to` is set. Omit to get the text back inline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the agent knows it may write. The description adds genuinely useful context beyond annotations — that ASS output carries style presets and an accompanying ffmpeg burn-in command — but never mentions that writing to output_path can overwrite/replace files or how overwrite interacts with it.

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?

Two sentences, front-loaded with the conversion scope before the ASS styling detail. The second sentence is long and enumerates fields already in the schema, which is slight redundancy, but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with a nested object and no output schema, the description covers formats and ASS styling but omits the two output modes (inline text vs file write), input format auto-detection, and the path/content choice. It is adequate but leaves real gaps an agent would otherwise have to mine from the schema.

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 description coverage is 100%, so all seven parameters, including the nested ass_style object, are already documented. The description only restates the style fields (font, size, colors, outline, box, position) and preset names, adding no syntax or behavioral meaning beyond the schema; baseline 3 applies.

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?

States a specific verb (Convert) and the full set of target formats, plus a parenthetical distinguishing ASS as the styled/burn-in format. It is clear what the tool does, though it never names a sibling tool or states how it differs from clean_captions/reflow_captions/retime_captions.

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

Usage Guidelines3/5

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

Usage is implied by the format list and the ASS styling sentence, but there is no explicit 'use this when…' versus alternatives such as reflow_captions or extract_transcript, and no stated prerequisites (e.g., which input combinations are valid).

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