Skip to main content
Glama

Cut By Transcript

cut_by_transcript
Destructive

Cut video sections by quoted transcript text, cue numbers, or filler words, then write a re-timed .srt for the edited output.

Instructions

Edit a video by its transcript: cut quoted text, cue numbers, or fillers. Also writes the re-timed .srt.

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>",
      "srt": "<srt>"
    },
    "name": "cut_by_transcript"
  }
}

Input Schema

NameRequiredDescriptionDefault
srtYesIts .srt (transcribe; words: true for word timing).
inputYesSource video path.
dryRunNoOnly report the cuts.
outputNoOutput path; default SCREENCAST_HOME/edits.
removeNoCue numbers as the .srt numbers them, or transcript text quoted exactly (must occur once).
fillersNoAlso cut fillers (um, uh...) that have their own cue.
overwriteNoReplace an existing output.

Output Schema

NameRequiredDescriptionDefault
cutsYes
removedSecYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.54.0
    • changedInput schema / properties / input / description
      Previous value: -"Path to the source video."New value: +"Source video path."
    • changedInput schema / properties / output / description
      Previous value: -"Optional output path. Defaults under SCREENCAST_HOME/edits."New value: +"Output path; default SCREENCAST_HOME/edits."
    • changedInput schema / properties / overwrite / description
      Previous value: -"Allow replacing an existing file at the output path (default false)."New value: +"Replace an existing output."
  2. Changed2 schema fields changedv0.48.0
    • changedInput schema / properties / remove / description
      Previous value: -"Cue numbers, or transcript text quoted exactly (must occur once)."New value: +"Cue numbers as the .srt numbers them, or transcript text quoted exactly (must occur once)."
    • changedInput schema / properties / remove / items / anyOf
      Previous value: -[
      -  {
      -    "maximum": 99999,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 99999,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +]
  3. Addedv0.47.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the bar is lower here. The description adds one genuinely non-annotated fact: it writes a re-timed .srt alongside the edit, which is a real side effect. It says nothing about whether the source is preserved, how overwrite behaves, or what happens if a quoted string matches multiple times.

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, zero waste, with the core action front-loaded and the secondary side effect placed after it. Nothing is repeated from the title or padded out.

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?

An output schema exists, so return values need not be described, and the input schema is fully documented. However, for a destructive 7-parameter mutation tool, the description leaves out the default output location and overwrite/dryRun workflow context that would help an agent call it safely.

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 all seven parameters, including the 'remove' array semantics and dryRun, are already documented in the schema. The description's phrase 'cut quoted text, cue numbers, or fillers' echoes that framing but adds no syntax, format, or edge-case meaning beyond it, which is the expected baseline 3.

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: editing a video through its transcript by cutting quoted text, cue numbers, or fillers. This is meaningfully distinct from siblings like cut_idle or assemble_highlights, though it never names an alternative explicitly.

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: the tool presupposes an existing .srt transcript, and the description lists cut targets rather than telling the agent when to choose this over cut_idle or clip. No when-not conditions or prerequisites are stated.

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