Skip to main content
Glama

Re-chunk captions (reel style or standard)

reflow_captions

Rebuild existing caption cues into short reel-style captions or balanced standard subtitle lines, splitting overlong cues at sentence and phrase boundaries.

Instructions

Rebuild caption chunks from existing cues. reels: short 1–3 word punchy captions like on Instagram/TikTok/Shorts, timed by splitting each cue's duration across its words. standard: rewrap into balanced ≤42-character lines, max 2 per cue, splitting overlong cues. Breaks prefer sentence and phrase boundaries.

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

Input Schema

NameRequiredDescriptionDefault
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
styleNoreels: 1–3 words per caption, one short line. standard: up to 42 chars × 2 balanced lines. custom: use the limits below.reels
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).
max_linesNo
max_wordsNoMax words per caption (reels default 3).
overwriteNoAllow replacing an existing file.
uppercaseNoALL CAPS captions (reels default: false).
output_pathNoWrite the result here. Format follows the extension unless `to` is set. Omit to get the text back inline.
output_formatNoOutput format. Defaults to the input format (or the output_path extension).
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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows this may write output but is not destructive. The description adds meaningful behavioral detail about how reels timing is split and how standard lines are balanced, but it does not mention file-writing behavior, overwrite gating, or inline text return. For a caption-mutating tool, this leaves an important operational gap.

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 description is front-loaded with the core action and then cleanly separates the reels and standard behaviors. It is appropriately concise for a tool with two primary modes. The only slight inefficiency is that it devotes space to style details already present in the schema while omitting equally important parameters.

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 tool with 14 parameters, a nested ass_style object, and no output schema, the description covers the core re-chunking behavior but omits several relevant areas: custom style configuration, file output and overwrite behavior, and ASS-specific styling. The schema carries much of the parameter detail, but the description is not complete enough to fully orient an agent across the tool's full surface.

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 79%, so most parameters are already documented in the schema. The description restates the reels and standard style semantics but adds little beyond what the style enum description already says. It does not explain the custom style, output_path, overwrite, output_format, or the ass_style nested object.

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?

The description states a specific verb and resource: 'Rebuild caption chunks from existing cues.' It immediately distinguishes the two main modes, reels and standard, by describing the output style each produces. This is clearly differentiable from siblings like retime_captions, clean_captions, and convert_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?

The description explains what reels and standard styles do, which implies when to choose each mode, but it does not explicitly say when to use this tool instead of alternatives such as clean_captions or retime_captions. It also omits when-not-to-use guidance and does not mention the custom style at all.

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