Skip to main content
Glama

merge_bilingual_subtitles

Read-onlyIdempotent

Merge primary and secondary subtitle tracks by midpoint alignment and temporal overlap into dual-line SRT, VTT, or FCPXML title lanes for bilingual captions.

Instructions

Align and merge primary and secondary subtitle tracks (.srt, .vtt, or Whisper .json) by midpoint and temporal overlap into dual-line .srt, .vtt, or rational-frame Apple Final Cut Pro / DaVinci Resolve FCPXML 1.9 title lanes.

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": {
      "primaryInput": "<primaryInput>",
      "secondaryInput": "<secondaryInput>"
    },
    "name": "merge_bilingual_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
fpsNoTimeline framerate used for exact rational frame durations when outputFormat is fcpxml.30
orderNoVertical line stacking order within each merged bilingual cue.primary_top
projectNameNoProject name embedded in FCPXML 1.9 output.SubCraft Bilingual Captions
toleranceMsNoMidpoint alignment tolerance window in milliseconds.
outputFormatNoMerged output format: srt, vtt, or fcpxml (FCPXML 1.9 rational frame timeline).srt
primaryInputYesPrimary language subtitle track (.srt, .vtt, or Whisper .json).
secondaryInputYesSecondary language subtitle track (.srt, .vtt, or Whisper .json).
keepUnmatchedSecondaryNoWhen true (default), retains secondary cues that do not overlap any primary cue.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral detail beyond them: alignment is done by midpoint plus temporal overlap, and output can be rational-frame FCPXML title lanes. It does not discuss what happens to cues that fail to match or how output is delivered, which keeps it from 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?

A single front-loaded sentence with the verb first and no filler; the format enumerations are dense but each clause (alignment method, output formats, FCPXML version) contributes. Slightly packed but not 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 an eight-parameter tool with no output schema, the description explains the core transformation but never says what is returned (file path, cue list, written file) or how unmatched cues surface in the result. Safety and idempotency are covered by annotations, so the remaining gap is output-side behavior.

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% with defaults and enum descriptions on all eight parameters, so the schema carries parameter meaning. The description only indirectly touches parameters by naming 'midpoint' overlap (toleranceMs) and 'dual-line' lanes (order), which is baseline-level added value rather than new syntax or constraints.

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 uses a specific verb pair ('Align and merge') on a specific resource ('primary and secondary subtitle tracks'), lists the accepted input formats and the exact output families including FCPXML 1.9. Nothing among the siblings (reflow, extract, heal) does a two-track merge, so the tool is unambiguously distinguishable.

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 precondition of having two tracks to combine, but the description never states when to choose this over a single-track workflow or what to do when one track is missing or badly misaligned. No explicit when-not or alternative routing is offered.

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