Skip to main content
Glama

Extract a clean transcript

extract_transcript

Converts caption files into readable transcripts by stripping tags, removing rolling duplicate lines, splitting paragraphs on pauses, and optionally adding timestamps for show notes, blog posts, or LLM input.

Instructions

Turn captions into a readable transcript: tags stripped, rolling duplicate lines from auto-generated captions removed, paragraphs split on pauses, optional [HH:MM:SS] timestamps per paragraph and speaker-label removal. Useful for show notes, blog posts, chapter markers or feeding the text to an LLM.

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

Input Schema

NameRequiredDescriptionDefault
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
formatNoInput format. Detected automatically when omitted.
contentNoCaption text, if you don't have a file.
overwriteNoAllow replacing an existing file.
timestampsNo
output_pathNoWrite the result here. Format follows the extension unless `to` is set. Omit to get the text back inline.
paragraph_gap_msNoStart a new paragraph after a pause this long.
strip_speaker_tagsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/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 behavioral burden. It does disclose the normalization pipeline in useful detail (dedupe of auto-caption rolling lines, pause-based paragraphing), which is real value beyond the annotations. It says nothing about the file-writing side of the tool though — no warning that output_path plus overwrite can replace an existing file, and no statement about what happens when both path and content are supplied.

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 transformation list so the most decision-relevant content comes first. The trailing use-case sentence is a little marketing-flavored but still helps an agent judge applicability. No filler or repetition.

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?

For an 8-parameter, zero-required tool with no output schema, the description covers the core transformation but leaves the I/O contract thin: inline return vs. file write is only explained in the schema, and there is no guidance on error cases, precedence between path and content, or what the transcript looks like structurally. Adequate but with clear gaps for a tool whose main risk is unintended file output.

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 75%, so the schema already documents most parameters and the baseline is 3. The description does add meaning for two of them: timestamps are placed per paragraph in [HH:MM:SS] form, and speaker labels are an optional removal step. It adds nothing for path, format, content, overwrite, paragraph_gap_ms, or output_path beyond what the schema already says.

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 concrete verb and resource ('Turn captions into a readable transcript') and enumerates the actual transformations: tag stripping, rolling-duplicate removal, paragraph splitting, optional [HH:MM:SS] timestamps, speaker-label removal. That is far more specific than a restated title. It stops short of distinguishing itself from close siblings like clean_captions or reflow_captions, so an agent cannot tell from the text alone which of those overlapping tools to pick.

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 second sentence gives downstream use cases (show notes, blog posts, chapter markers, feeding an LLM), which implies the tool is for producing human-readable output. However, it offers no when-to-use versus when-not guidance and never names an alternative such as clean_captions or convert_captions, so routing among the many caption siblings is left to inference.

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