Skip to main content
Glama

Chapters

chapters
Destructive

Adds markers, scene changes, transcript sections, or custom timestamps to an MP4/MKV/MOV copy without re-encoding, returns YouTube timestamp text, and can mux SRT soft subtitles.

Instructions

Write chapters (markers, scene changes, transcript, or a list) into an mp4/mkv/mov copy without re-encoding; returns YouTube chapter text. Can mux an SRT as soft subtitles.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chapters"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNomarkers (default; add_marker, else the file's chapters), scenes (screen changes), or transcript (SRT sections).
inputNoPath to the video.
outputNoOptional .mp4/.mkv/.mov path. Defaults under SCREENCAST_HOME/edits.
chaptersNoOr explicit { start, title } chapters.
textOnlyNoReturn chapters and YouTube text only; write no file.
overwriteNoReplace an existing output.
sessionIdNoOr a stopped recording's id.
subtitlesNoAlso mux this .srt/.vtt/.ass as a soft subtitle track.
transcriptNoThe .srt for from: transcript.
minChapterSecNoShortest chapter (default 1; scenes 10, transcript 30).
subtitleTracksNoOr several tracks, e.g. one per language (translate_subtitles makes them).
subtitleLanguageNoISO 639-2, e.g. "eng".

Output Schema

NameRequiredDescriptionDefault
youtubeYes
chaptersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.54.0
    • changedInput schema / properties / overwrite / description
      Previous value: -"Allow replacing an existing output file."New value: +"Replace an existing output."
  2. Changed1 schema field changedv0.51.1
    • addedInput schema / properties / subtitleTracks
      Added value: +{
      +  "description": "Or several tracks, e.g. one per language (translate_subtitles makes them).",
      +  "items": {
      +    "properties": {
      +      "default": {
      +        "type": "boolean"
      +      },
      +      "file": {
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "language": {
      +        "pattern": "^[a-z]{3}$",
      +        "type": "string"
      +      },
      +      "title": {
      +        "maxLength": 60,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "file"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 8,
      +  "minItems": 1,
      +  "type": "array"
      +}
  3. Addedv0.47.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations flag destructiveHint=true and readOnlyHint=false; the description clarifies the operation works on a copy and does not re-encode, which meaningfully bounds the blast radius an agent might otherwise assume. It adds context beyond the annotations (YouTube text return, soft-subtitle muxing) but never states that an existing output is only replaced via 'overwrite' or what permissions/failures to expect.

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?

Two sentences, front-loaded with the write action and its non-destructive, no-re-encode nature; the subtitle-muxing capability is appended where it belongs. Slightly dense with semicolon-joined clauses but no wasted text.

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 12-parameter tool with full schema coverage and an output schema, the description covers the core operation and the two distinct output modes. It omits the input-vs-sessionId alternative and default output location, but those are documented in the schema, so nothing an agent needs to invoke it correctly is absent.

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 baseline is 3. The description reinforces the 'from' enumeration and textOnly/subtitles behavior, but adds nothing about output placement, sessionId as an input alternative, overwrite, or the minChapterSec defaults — all of which the schema already documents.

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?

Specific verb and resource: writes chapters into an mp4/mkv/mov copy, enumerating the four sources (markers, scene changes, transcript, explicit list) and noting the no-re-encoding constraint. It also implicitly separates itself from hard-burn subtitle tools by scoping subtitles to 'soft' muxing, though no sibling is named outright.

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?

The 'from' sources and 'textOnly' are described in prose, which implies the common modes, but there is no explicit statement of when to pick this over add_marker, burn_subtitles, or cut_by_transcript, nor any 'do not use when' condition. Usage must be inferred from the mode list.

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