Skip to main content
Glama

Shift caption timing

shift_captions

Move all caption cues earlier or later by a fixed offset to correct timing that runs ahead of or behind the audio, with an option to adjust only cues from a set time onward.

Instructions

Move every cue earlier or later by a fixed offset — the fix for captions that are consistently ahead of or behind the audio. Optionally only shift cues from a given time onward (e.g. after an ad break or a cut).

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": {
      "offset": "<offset>"
    },
    "name": "shift_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoOnly shift cues starting at or after this time, e.g. "00:12:30" or "750s".
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
formatNoInput format. Detected automatically when omitted.
offsetYesPositive = later, negative = earlier. Number = milliseconds, or a string like "2.5s", "-1500ms", "-00:00:01,200".
contentNoCaption text, if you don't have a file.
overwriteNoAllow replacing an existing file.
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).

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 already declare readOnlyHint=false and destructiveHint=false, so the safety profile is partly covered. The description adds that the offset applies to *every* cue and can be scoped from a point onward, which is useful behavioral context, but it says nothing about the overwrite risk (a file can be replaced when overwrite=true) or about what happens to cues pushed past zero. Note only the schema, not the description, mentions overwriting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, no filler, with the core operation front-loaded and the optional scoping caveat second. Nothing is redundant with the title.

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 an 8-parameter tool with fully documented schema and a non-destructive annotation profile, the description covers the operation and its primary use case adequately. The only meaningful omission is any hint about how it differs from 'retime_captions' and a caution that overwriting an existing file is possible.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns one step above it by framing 'from' as a time-scoping filter with a concrete use case (post-ad-break, post-cut) rather than just a timestamp parameter. It still leaves offset sign/unit semantics entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Move every cue earlier or later by a fixed offset') plus the problem it solves ('captions consistently ahead of or behind the audio'), which is far more informative than the bare title. It does not, however, distinguish itself from the sibling 'retime_captions', which sounds like it covers overlapping territory.

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 gives a clear trigger condition ('the fix for captions that are consistently ahead of or behind the audio') and an example scenario for the 'from' filter (after an ad break or a cut), which is real usage guidance. It offers no exclusions and no routing away from the near-synonymous 'retime_captions' sibling, so the agent must still guess between the two.

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