Skip to main content
Glama

ass_karaoke_remove

Strip \k, \kf, \ko, and \kt karaoke tags from ASS subtitle lines, with options to drop | syllable markers and keep or retighten line start and end times.

Instructions

Remove \k/\kf/\ko/\kt tags (karaoke.remove_karaoke).

drop_markers=True also removes the | syllable markers — they are kept by default because they are the source data :func:ass_karaoke_generate re-splits on.

keep_times controls the line's own times. True leaves Start/ End exactly as they were; False (default) retightens the line's End to Start + karaoke extent when the karaoke extent is shorter than the line (the trailing silence the karaoke timing defined is dropped).

Returns {"doc_id", "drop_markers", "keep_times", "lines": [{"index", "old_text", "text", "removed_tags": n, "old_start_ms", "old_end_ms", "start_ms", "end_ms", "times_retightened"}], "lines_changed": n, "tags_removed": n}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idNo
selectionYes
keep_timesNo
drop_markersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it explains exactly what is destroyed (the karaoke tags, optionally the | markers), the default retention of markers and the reason, and the precise retightening/truncation side effect on the line's End when keep_times=False. It stops short of stating auth/permission needs or reversibility.

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?

Front-loaded with the core purpose, then follows with the two behavioral flags and return shape. The prose is dense but each sentence carries information; only the return-shape dump is somewhat verbose.

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?

No output schema exists, yet the description supplies the full return structure, and with no annotations it fully documents the mutation's side effects. The only real gap is the unexplained required 'selection' parameter.

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 0% across 4 params. The description compensates well for drop_markers and keep_times, including the default behavior of each, but leaves the required 'selection' parameter and 'doc_id' entirely unaddressed.

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 (remove) and a precisely scoped resource (\k/\kf/\ko/\kt karaoke tags), plus the underlying operation name. It is clearly distinguishable from generic siblings like ass_strip_tags and ass_remove_tag, which do not target karaoke timing tags specifically.

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?

It gives implicit guidance: markers are kept by default because ass_karaoke_generate re-splits on them, which hints at the workflow. However it never states explicitly when to prefer this over ass_strip_tags/ass_remove_tag, nor any prerequisites about the selection or doc_id.

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

Deploy Server

Other Tools