Skip to main content
Glama

Cut captions for a clip

clip_captions

Extract only the captions within a start and end time from a caption file, trim cues crossing the boundaries, and optionally re-zero timing so the selected clip begins at 00:00.

Instructions

Keep only the captions inside a time range and re-zero them to start at 00:00 — for when you cut a short clip out of a long video or podcast. Cues crossing the edges are trimmed to the range.

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "clip_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesClip end in the source.
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
startYesClip start in the source, e.g. "00:12:03.5" or "723.5s".
formatNoInput format. Detected automatically when omitted.
rezeroNoShift so the clip starts at 00:00:00.
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

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries most of the burden. It discloses a non-obvious behavioral trait — cues crossing the range edges are trimmed — which tells the agent about boundary data loss that no structured field conveys. It is silent on file-writing and overwrite behavior, which is left to the schema.

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 sentences, front-loaded with the core transform and followed by the use case and the edge-trimming caveat. Every clause carries information; nothing is redundant.

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 a nine-parameter tool with full schema coverage and no output schema, the description covers the transform, the motivating scenario, and the boundary behavior. It leaves file-output and overwrite safety implicit, but those are adequately specified in the schema.

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 100%, so all nine parameters are already documented, including rezero, output_path, and overwrite. The description restates the re-zeroing and range semantics but adds no format, path, or overwrite detail beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description states a specific verb and resource — keep only captions inside a time range and re-zero them to 00:00 — which is concrete enough to distinguish the core transform. It does not name a sibling such as shift_captions or retime_captions to sharpen the boundary, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear scenario for use: cutting a short clip out of a long video or podcast. There are no explicit exclusions or named alternatives, so an agent must infer that this is not the tool for general time shifting or conversion.

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