Skip to main content
Glama

util_subtitles

Read-only

Subtitle checker and converter (SRT/VTT) — Validate, fix, retime and convert subtitles. Pass text= (SRT or WebVTT content) or url= (an .srt or .vtt file, e.g. a Whisper transcript). Checks every cue against streaming style limits: overlaps, out-of-order or zero/negative durations, reading speed (max_cps, default 20 chars/sec), line length (max_chars, default 42), more than 2 lines, under 833 ms or over 7 s on screen, gaps under 2 frames, duplicate consecutive cues, broken numbering; verdict CLEAN / MINOR ISSUES / NEEDS FIXES. Options: shift_ms (+/- milliseconds), fps_from + fps_to (frame-rate retime, e.g. 25 to 23.976) or scale, fix=1 (sort, drop empty cues, repair bad durations, trim overlaps), to = json | srt | vtt | text (converted file in output; text = clean transcript without tags or repeats), limit (cues listed in json mode, default 100). Price: $0.003 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "util_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes1 00:00:01,000 --> 00:00:03,500 Hello there! 2 00:00:03,400 --> 00:00:04,000 This line is far too long to read comfortably on one screen 3 00:00:05,000 --> 00:00:07,000 Bye for now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description goes well beyond that: it names the verdict tiers (CLEAN / MINOR ISSUES / NEEDS FIXES), the exact thresholds applied (max_cps 20, max_chars 42, under 833 ms, over 7 s, gaps under 2 frames), and the per-call price of $0.003 USDC via x402. The only missing piece is how the verdict is surfaced in non-json modes.

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 capability, then thresholds, then options, then price — a sensible order with no filler sentences. The threshold and option clauses are densely packed into long run-ons, which slightly hurts scannability.

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 single-input utility tool, the description covers validation rules, remediation options, output formats, and pricing, and there is no output schema that needs explaining. The one gap is the mismatch between the described options and the actual schema, leaving some ambiguity about which parameters are genuinely accepted.

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 100% for the single text parameter, and the description usefully explains defaults for max_cps and max_chars and the semantics of shift_ms, fps_from/fps_to, fix, to, and limit. However it documents url=, shift_ms, fix, to, and limit — none of which appear in the supplied schema — so an agent may attempt parameters that the tool signature does not expose.

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 pair — subtitle checker and converter for SRT/VTT — and immediately enumerates what is checked (overlaps, reading speed, line length, durations) and what is produced (json/srt/vtt/text). An agent knows this is a subtitle QA/transform tool, not a generic text converter, without opening the schema.

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?

The input path is clear (pass text= or url=) and the option list implies when to use fix=1, shift_ms, or fps retiming, but there is no explicit when-to-use vs the many util_* siblings and no when-not guidance. Usage is implied by the option list rather than stated as routing advice.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources