Skip to main content
Glama

ass_karaoke_set_timings

Write explicit per-syllable durations or absolute times for ASS karaoke lines, enabling accurate timing without stretching to fit.

Instructions

Write explicit per-syllable durations or absolute times.

Arguments

timings list of durations, list of {"duration_ms"|"duration_cs"|"start_ms"+ "end_ms"} dicts, or — when unit is an absolute spelling — one start time per syllable, a list of [start, end] pairs, or n + 1 boundary times. unit "ms" / "cs" (values are durations), or "absolute_ms" / "absolute_cs" / "absolute" / "times" (values are absolute times). Absolute times must be monotonically increasing. kind force every syllable to this kind; None (default) keeps each syllable's existing kind. strict True (default): a count mismatch raises :class:ToolError naming both counts. False pads with zeros / drops extras. mode/marker/pattern how to split a line that has no karaoke tags yet.

Returns

{"text_source": "line", "doc_id", "unit", "kind", "strict", "lines": [{"index", "syllable_count", "timing_count", "padded", "old_text", "text", "syllables": [{"text", "kind", "duration_cs", "duration_ms"}], "duration_sum_cs", "line_duration_cs", "discrepancy_cs", "matches_line_duration", "message"}], "lines_changed": n, "reported_not_stretched": True}

Durations that do not add up to the line duration are reported in discrepancy_cs/message; they are never stretched to fit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
modeNomarker
unitNoms
indexNo
doc_idNo
markerNo|
strictNo
patternNo
timingsNo
selectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 largely meets it: it discloses that strict=True (default) raises ToolError on count mismatch naming both counts, that False pads with zeros or drops extras, that absolute times must be monotonically increasing, and that mis-summing durations are reported via discrepancy_cs/message and never stretched. It omits mutation/permission context (e.g. undo behavior, whether the document is modified in place), which keeps it off a 5.

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?

Well front-loaded with a single-sentence purpose followed by clearly delineated Arguments and Returns sections. The length is justified by ten parameters and several accepted timings encodings, though the Returns block is verbose relative to what an agent needs to choose the tool.

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?

There is no output schema, and the description does explain the return payload and the key behavioral guarantees, which is good. But for a mutation tool of this complexity with zero annotations it leaves target selection (index/doc_id/selection) and the line-identification model unaddressed, so an agent could know the argument formats yet still not know which lines will be rewritten.

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 10 parameters, so the description must compensate, and it does explain the hardest ones (timings formats, unit spellings, kind, strict, mode/marker/pattern). It says nothing about index, doc_id, or selection, leaving the agent without guidance on how to target the lines being modified, and it never reconciles the schema typing timings as a string with the described list/dict forms.

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+resource combination ('Write explicit per-syllable durations or absolute times'), which is meaningful against siblings like ass_karaoke_auto_timings or ass_karaoke_generate that derive timings rather than setting them. It does not name or route away from any specific sibling, so it stops short of a 5.

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 by the 'explicit' framing and by the mode/marker/pattern note ('how to split a line that has no karaoke tags yet'), which tells the agent this is for untagged lines. However there is no explicit when-to-use/when-not guidance, no mention of ass_karaoke_auto_timings / ass_karaoke_retime as alternatives, and no prerequisites such as which lines or document are targeted.

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