Skip to main content
Glama

heal_subtitle_timecodes

Read-onlyIdempotent

Repair subtitle timecode drift and framerate mismatches, apply millisecond offsets, enforce minimum cue durations, fix overlaps, and audit reading-speed CPS for SRT/VTT output.

Instructions

Repair NLE framerate drift (23.976 <-> 24 <-> 25 <-> 29.97 <-> 30 fps), apply global millisecond offset shifts, enforce minimum cue duration floors, clamp overlapping cues for Premiere / Final Cut Pro / DaVinci Resolve, and audit reading-speed CPS violations.

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

Input Schema

NameRequiredDescriptionDefault
gapMsNoMinimum millisecond gap enforced between consecutive cues to guarantee zero overlaps.
inputYesRaw .srt, .vtt, or Whisper .json subtitle track to repair and audit.
offsetMsNoGlobal millisecond shift applied to every cue (+ delays, - advances).
sourceFpsNoSource camera/transcription framerate when stretching drifted timecodes.
targetFpsNoTarget NLE timeline framerate when stretching drifted timecodes.
enCpsLimitNoMaximum English reading speed threshold in characters per second (CPS).
zhCpsLimitNoMaximum Chinese reading speed threshold in CJK units per second (CPS).
outputFormatNoOutput subtitle serialization format (.srt or .vtt).srt
minDurationMsNoMinimum cue duration floor in milliseconds when adjacent timeline space allows.

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, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds which transformations occur, but leaves unclear whether all repairs are applied in one pass, in what order, and whether the CPS audit returns a report alongside the repaired file — meaningful gaps for a multi-step healing tool with no output schema.

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 that leads with the primary capability and enumerates the rest; dense but each clause maps to a real function. It reads as a run-on with five comma-separated clauses, which slightly hurts scannability.

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?

With 9 parameters, only one required, and no output schema, the description should clarify the result shape (repaired file only, or repaired file plus CPS audit report) and the precedence between stretching, offsetting, duration floors, and overlap clamping. It covers what the tool does but not enough of how the combined pipeline behaves.

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 every parameter is already documented including gapMs, minDurationMs, and the CPS limits; the description adds no syntax, unit, or interaction details beyond what the schema provides. It is ambiguous whether the CPS limits only audit or also rewrite cues.

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 specific verbs and resources: framerate drift repair across named fps values, global millisecond offset shifts, minimum cue duration floors, overlap clamping, and CPS auditing. The scope (subtitle timecode repair for NLEs) is unmistakable and clearly distinct from the merge/reflow/extract 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?

Usage is only implied by enumerating the problems it fixes (drift, offsets, overlaps, reading speed); there is no explicit 'use this when...' statement, no mention of when not to use it, and no routing to a sibling such as merge_bilingual_subtitles for the language-combination case.

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