Skip to main content
Glama

Lint captions for readability

lint_captions
Read-only

Check caption files against readability rules and list every issue with cue number and timestamp: long lines, fast reading speed, short or long durations, overlaps, out-of-order cues, flicker gaps and empty cues.

Instructions

Check captions against readability rules and list every problem with its cue number and timestamp: lines too long, too many lines, reading speed too fast (CPS), on screen too briefly or too long, overlaps, out-of-order cues, flicker-prone gaps and empty cues. Presets: standard (42 chars × 2 lines, 17 cps — common streaming practice), reels (24 chars × 1 line), accessible (13 cps). Any rule can be overridden.

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

Input Schema

NameRequiredDescriptionDefault
pathNoLocal caption file (.srt, .vtt, .ass/.ssa, .json). ~ is expanded.
formatNoInput format. Detected automatically when omitted.
presetNostandard
contentNoCaption text, if you don't have a file.
max_cpsNoMax reading speed in characters per second.
max_linesNo
max_issuesNo
min_gap_msNo
max_duration_msNo
min_duration_msNo
max_chars_per_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

The readOnlyHint already tells the agent this is a safe read, so the description adds real value on top: it discloses the return shape (one entry per problem with cue number and timestamp), states that thresholds are configurable, and bakes the preset numbers into the text. It does not mention that results are capped by max_issues (default 200, max 2000), so an agent could mistake a truncated list for a clean pass.

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, purpose front-loaded, then the rule catalog, then presets and the override note — a logical progression with no filler. The preset parenthetical is dense but each clause carries information an agent would otherwise have to guess.

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 11-parameter, no-output-schema tool this covers the essentials: what it reports, how it reports it, and the preset semantics. The gaps are the path-vs-content requirement and the max_issues truncation behavior, both of which affect whether the agent can trust an empty or short result.

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 coverage is only 36% across 11 parameters, so the description must compensate. It does well on `preset`, spelling out the concrete thresholds (42 chars × 2 lines, 17 cps / 24 × 1 / 13 cps) that the schema only exposes as a bare enum, and the issue list maps implicitly onto max_duration_ms, min_duration_ms and min_gap_ms. However, max_issues, max_chars_per_line and max_lines get no semantic treatment, leaving several knobs unexplained.

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?

"Check captions against readability rules and list every problem with its cue number and timestamp" gives a specific verb (check/list) and resource (captions), then enumerates the exact issue classes (line length, line count, CPS, on-screen duration, overlaps, ordering, gaps, empty cues). This reads unmistakably as a read-only diagnostic, distinct from mutation-oriented siblings like clean_captions or reflow_captions.

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 verb and by the preset guidance (standard vs reels vs accessible), but there is no explicit when-to-use/when-not statement and no named alternative. It also never says that one of `path` or `content` must be supplied, which is the main invocation decision the agent has to make.

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