Skip to main content
Glama

clean_subtitles_srt_vtt

Read-onlyIdempotent

Cleans raw SRT/VTT subtitles offline by removing timecodes and cue indices, deduplicating rolling captions, preserving speaker tags, and applying French typography.

Instructions

Locally cleans raw .SRT or .VTT subtitles offline: strips timecodes/cue indices, deduplicates YouTube rolling captions, preserves WebVTT speaker tags, and applies French non-breaking-space typography.

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": {
      "content": "<content>"
    },
    "name": "clean_subtitles_srt_vtt"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesRaw .SRT or .VTT subtitle text to clean.
merge_sentencesNoMerge short subtitle lines into readable paragraphs.
french_typographyNoApply French non-breaking-space spacing rules before : ; ? ! and inside « ».
preserve_speakersNoPreserve speaker prefixes and WebVTT <v Speaker> tags.
deduplicate_rollingNoDeduplicate overlapping rolling captions (e.g. YouTube auto-captions).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuine value beyond that by specifying local/offline processing and the exact transformations applied, but it does not say what happens to malformed or unrecognized lines or what the output looks like.

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?

A single front-loaded sentence states the core action first and then enumerates the transformations. It is dense but every clause earns its place; the only missing element is a routing sentence about alternatives.

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 five-parameter, no-output-schema transformation tool, the description plus full schema coverage is nearly complete. Remaining gaps are edge-case behavior on malformed input and when-not-to-use guidance, both minor relative to the tool's simplicity.

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, but the description adds meaning by tying each option to a concrete effect: deduplicating YouTube rolling captions, preserving WebVTT <v Speaker> tags, and applying French non-breaking spaces before : ; ? ! and inside « ». This makes the boolean flags self-explanatory.

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

Purpose5/5

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

States a specific verb (cleans) and resource (.SRT/.VTT subtitles) and enumerates the four distinct operations it performs. This clearly separates it from siblings like get_transcription_text or format_iramuteq_corpus, which retrieve or reformat rather than clean raw subtitle text.

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 implied rather than stated: it applies to raw subtitle text that needs cleaning. There is no explicit when-not-to-use guidance and no named alternative for cases where the text is already clean or must first be fetched via a sibling retrieval tool.

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