Skip to main content
Glama

ass_align_to_silence

Report audio silence intervals and suggested per-line timing shifts to align ASS subtitle lines to silence, without modifying the document.

Instructions

Report audio silence intervals and the per-line shifts they suggest.

This tool never modifies the document — it exists so an agent can look before it leaps; :func:ass_align_lines_to_silence applies the same plan when dry_run=False.

Args: selection: lines to consider. video: media file; defaults to the workspace video/audio. noise_db: silence threshold in dBFS (passed to silencedetect). min_silence_s: shortest silence to report. doc_id: document id. shift_only: None/"both" shift start and end together, "start" moves only the start (shortening the line). max_shift_ms: ignore suggestions longer than this.

Returns: {"doc_id", "path", "noise_db", "min_silence_s", "shift_only", "max_shift_ms", "silences": [{"start_ms", "end_ms", "duration_ms"}], "suggestions": [{"index", "start_ms", "end_ms", "new_start_ms", "new_end_ms", "delta_ms", "silence", "reason"}], "count", "applied": False, "note"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
videoNo
doc_idNo
noise_dbNo
selectionNo
shift_onlyNo
max_shift_msNo
min_silence_sNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does the most important part: it loudly declares 'never modifies the document' and marks the return with applied:False plus a note. It also discloses that max_shift_ms filters suggestions and the shift_only semantics. It stops short of permissions/rate-limit context, so a 4 rather than 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?

Front-loaded with purpose and cleanly sectioned into Args/Returns with no filler sentences. Slightly redundant in that an output schema already exists yet the full return shape is restated, which costs a bit of brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-param, all-optional tool with no annotations, the description covers the read-only guarantee, every parameter's meaning, and the return contract. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (no parameter descriptions), so the description must compensate, and it documents all 7 params. It adds real meaning beyond the schema: noise_db is passed to silencedetect, shift_only 'both'/'start' controls whether the end moves, and max_shift_ms filters out long suggestions.

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 and resource ('Report audio silence intervals and the per-line shifts they suggest') and explicitly distinguishes itself from its write counterpart, ass_align_lines_to_silence. An agent can tell exactly what this does and how it differs from the applying tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternative and the condition that selects it: this tool is the 'look before it leaps' preview, while ass_align_lines_to_silence applies the same plan when dry_run=False. Explicit when-to-use routing against a sibling.

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