Skip to main content
Glama

reflow_vertical_subtitles

Read-onlyIdempotent

Reflow .srt, .vtt, or Whisper JSON captions into balanced 9:16 vertical or 16:9 cinema cues, preserving English words, numbers, currencies, ratios, and URLs.

Instructions

Reflow .srt, .vtt, or OpenAI Whisper verbose .json captions into balanced 9:16 vertical (<=13 CJK / <=26 ASCII) or 16:9 cinema (<=22 CJK / <=42 ASCII) .srt or .vtt cues using dynamic programming without splitting English words, numbers, currencies, ratios, or URLs.

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": {
      "input": "<input>"
    },
    "name": "reflow_vertical_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesRaw .srt, .vtt, or OpenAI Whisper verbose .json subtitle content to reflow.
presetNoTarget aspect-ratio line-width preset: vertical_9_16 (13 CJK / 26 ASCII) or cinema_16_9 (22 CJK / 42 ASCII).vertical_9_16
maxCjkUnitsNoOptional custom CJK visual width ceiling per cue overriding the preset.
outputFormatNoOutput subtitle serialization format (.srt or .vtt).srt
stripFillersNoWhen true, strips spoken CN/EN filler words prior to dynamic-programming line reflow.
maxAsciiCharsNoOptional custom ASCII character ceiling per cue overriding the preset.
stripTrailingPunctNoWhen true (default), removes trailing commas/periods while keeping ?, !, and numbers intact.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered; the description adds real value beyond that by disclosing the reflow algorithm (dynamic programming) and preservation guarantees (never splits English words, numbers, currencies, ratios, URLs). It does not cover error behavior on malformed subtitle input or whether timecodes are preserved, which keeps it short of a 5.

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?

It is a single front-loaded sentence with no filler: verb, input formats, target presets with concrete limits, algorithm, and preservation rules. The density is high and there is no structural break between the layout options and the non-splitting guarantees, but no sentence is wasted.

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 does carry the burden of saying what comes back (.srt or .vtt cues) and it does so explicitly, and all input formats are enumerated. For a 7-parameter transformation tool it leaves only minor gaps: behavior on malformed input and whether cue timings are altered during reflow.

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 seven parameters, including the two enum presets and the stripFillers/stripTrailingPunct defaults. The description restates the preset width pairs (matching the schema's enum descriptions) but says nothing about the custom override parameters (maxCjkUnits, maxAsciiChars) or the filler/trailing-punctuation toggles, so it adds little meaning beyond the schema — the baseline 3 applies.

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 (reflow) and resource (subtitle cues) plus the accepted input formats (.srt, .vtt, Whisper verbose .json) and the two target layouts. Exact width ceilings (<=13 CJK / <=26 ASCII for 9:16, <=22 CJK / <=42 ASCII for 16:9) make the tool unmistakable against siblings like merge_bilingual_subtitles or heal_subtitle_timecodes.

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 and preset wording — an agent can infer this is the tool for fitting captions into vertical or cinema line widths — but there is no explicit 'use this when…' statement and no named alternative or exclusion. The sibling set is functionally distinct enough that the risk is low, yet the guidance remains inferred rather than stated.

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