Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Subtitle and caption tools. Every tool accepts either path (a local .srt/.vtt/.ass/.json file) or content (the caption text itself). Results are returned inline unless output_path is given, in which case the file is written (never overwriting without overwrite: true). Use reflow_captions or captions_from_words for short, punchy reel-style captions; lint_captions to check readability before delivery.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
caption_infoA

Summarize a caption file: detected format, cue count, time span, word count and speaking rate, average/max reading speed (characters per second), shortest/longest cue, longest line, lines per cue, formatting tags, and parse warnings. Shows the first few cues.

convert_captionsB

Convert between SRT, WebVTT, ASS (styled, for burning in), JSON and plain-text transcript. ASS output can be styled with presets (vertical_reel, horizontal, lower_third) or custom font, size, colors, outline, box and position, and comes with an ffmpeg burn-in command.

shift_captionsA

Move every cue earlier or later by a fixed offset — the fix for captions that are consistently ahead of or behind the audio. Optionally only shift cues from a given time onward (e.g. after an ad break or a cut).

retime_captionsA

Fix captions that drift (in sync at the start, increasingly off later). Three modes: fps — convert between frame rates (e.g. 23.976 → 25 PAL speed-up); factor — stretch by a multiplier; sync_points — give the correct time for two cues and everything is mapped linearly between them (most accurate).

lint_captionsA

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.

clean_captionsA

Automatic tidy-up: trims whitespace, drops empty and zero-length cues, sorts by time, merges back-to-back duplicates, fixes overlaps and flicker gaps, extends too-short cues where there is room, renumbers. Optionally removes sound descriptions like [MUSIC] or (laughs) and speaker labels.

reflow_captionsA

Rebuild caption chunks from existing cues. reels: short 1–3 word punchy captions like on Instagram/TikTok/Shorts, timed by splitting each cue's duration across its words. standard: rewrap into balanced ≤42-character lines, max 2 per cue, splitting overlong cues. Breaks prefer sentence and phrase boundaries.

captions_from_wordsA

Build frame-accurate captions from word-level timestamps produced by speech-to-text (Whisper / faster-whisper / WhisperX JSON with word_timestamps, Deepgram JSON, or a plain [{word, start, end}] array in seconds, or start_ms/end_ms). Same styles as reflow_captions; reels style is the classic word-by-word social caption.

clip_captionsA

Keep only the captions inside a time range and re-zero them to start at 00:00 — for when you cut a short clip out of a long video or podcast. Cues crossing the edges are trimmed to the range.

search_captionsA

Find where something is said: returns every matching cue with its timestamp, optionally with surrounding lines. Great for finding soundbites or a quote in a long interview, podcast or talk.

extract_transcriptB

Turn captions into a readable transcript: tags stripped, rolling duplicate lines from auto-generated captions removed, paragraphs split on pauses, optional [HH:MM:SS] timestamps per paragraph and speaker-label removal. Useful for show notes, blog posts, chapter markers or feeding the text to an LLM.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 11 tools

Disambiguation5/5

Each tool targets a distinct caption-processing operation: building captions, converting formats, shifting, retiming, linting, cleaning, clipping, searching, summarizing, and extracting transcripts. Potentially close pairs like reflow_captions vs captions_from_words and lint_captions vs clean_captions are clearly differentiated by source and check-vs-fix behavior. An agent should have no trouble selecting the right tool.

Naming Consistency4/5

Most tools follow an action + _captions pattern (shift_captions, retime_captions, lint_captions, etc.), making the set mostly predictable. A few names deviate: captions_from_words is source-oriented, caption_info is noun_noun, and extract_transcript uses a different object noun. These are readable but prevent a perfect consistency score.

Tool Count5/5

Eleven tools is well-scoped for a caption-processing server, covering the main pipeline stages without obvious redundancy. Each tool has a clear, earned place in the workflow from caption generation through cleanup, validation, conversion, search, and transcript extraction.

Completeness5/5

The surface covers caption creation from word timestamps, reflowing, conversion, timing correction, cleanup, readability linting, clipping, search, metadata inspection, and transcript extraction. No obvious CRUD or lifecycle gaps appear for the caption-manipulation domain, and common dead ends like format conversion or drift repair are addressed.