Skip to main content
Glama

Captions from word timestamps

captions_from_words

Build frame-accurate captions from Whisper, WhisperX, Deepgram, or word-timing JSON, then export styled SRT, VTT, ASS, JSON, or TXT with reel or standard layouts.

Instructions

Build frame-accurate captions from word-level timestamps produced by speech-to-text (Whisper / faster-whisper / WhisperX JSON with word_timestamps, Deepgram JSON, or a plain [{word, start, end}] array in seconds, or start_ms/end_ms). Same styles as reflow_captions; reels style is the classic word-by-word social caption.

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

Input Schema

NameRequiredDescriptionDefault
styleNoreels: 1–3 words per caption, one short line. standard: up to 42 chars × 2 balanced lines. custom: use the limits below.reels
ass_styleNoStyling for ASS output (used when burning captions into video).
max_linesNo
max_wordsNoMax words per caption (reels default 3).
overwriteNoAllow replacing an existing file.
uppercaseNoALL CAPS captions (reels default: false).
words_jsonNoThe JSON itself, if no file.
words_pathNoPath to the JSON file with word timings.
output_pathNoWrite the result here. Format follows the extension unless `to` is set. Omit to get the text back inline.
output_formatNosrt
min_duration_msNo
strip_punctuationNoDrop periods, commas and quotes, keep ? and ! (reels default: true).
max_chars_per_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations only declare reads/writes are non-destructive, so the description should carry more of the burden. It usefully discloses that 'reels' is the word-by-word social caption style and that styles match reflow_captions, but says nothing about the file-writing behavior (output_path/overwrite) or that omitting output_path returns text inline — both of which affect how the agent should call 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 purpose and then the input-format contract; the dense parenthetical list of formats is earned because input auto-detection is the tool's main ambiguity. Minor cost is that the format enumeration packs several distinct ideas into one clause.

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?

For a 13-parameter, nested-object tool with 69% schema coverage and no output schema, the description covers the highest-risk ambiguity (input format/time units) and style parity with a sibling. It leaves the write-vs-inline return behavior and the words_path/words_json requirement to the schema, which is a gap but not a fatal one given the schema text.

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 69%, and the description compensates for the most important gap by explaining the accepted input shapes and time units for words_json/words_path (word_timestamps, seconds vs start_ms/end_ms). For the remaining parameters (style variants, ass_style, max_words, etc.) it adds little beyond the schema, simply noting reels is the classic word-by-word social caption.

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 ('Build frame-accurate captions') and precisely scopes the input ('from word-level timestamps'), then enumerates the accepted source shapes (Whisper/faster-whisper/WhisperX with word_timestamps, Deepgram, plain {word,start,end} arrays in seconds or start_ms/end_ms). An agent can tell this consumes timings rather than existing caption files, which distinguishes it from reflow_captions/convert_captions siblings.

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?

It implies the use case (you have speech-to-text output with word timings and want captions) and references reflow_captions for style parity, which gives context. However, it never states when to pick this over reflow_captions or clean_captions, nor any prerequisites such as needing either words_path or words_json.

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