Skip to main content
Glama

Auto-generate subtitles (whisper)

auto_subtitle

Transcribe speech from media files into .srt, .json, or .txt subtitles using FFmpeg's whisper filter; requires a whisper.cpp model path.

Instructions

Transcribe speech to subtitles using FFmpeg's built-in whisper filter. Writes an .srt (or .json/.txt) file. Requires a whisper.cpp model file: set the WHISPER_MODEL_PATH env var or pass model. Download a model, e.g. ggml-base.bin, from https://huggingface.co/ggerganov/whisper.cpp.

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": {
      "input": "<input>",
      "output": "<output>"
    },
    "name": "auto_subtitle"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesPath to the media file with speech.
modelNoPath to a whisper.cpp model .bin. Defaults to WHISPER_MODEL_PATH.
formatNoOutput transcription format.srt
outputYesPath for the generated subtitle file (e.g. out.srt).
languageNoSpoken language code (e.g. "en", "ko") or "auto".auto
overwriteNoOverwrite the output file if it already exists.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the hard dependency on an external model file and the possible output formats, which is genuinely useful. However, it omits runtime expectations (whisper transcription is slow), what happens when the model is missing or invalid, and whether an existing output is silently kept vs overwritten.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what it does, what it writes, and what it needs. The prerequisite is front-loaded and the download pointer is appended where it is most actionable. Nothing is redundant or padded.

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 six-parameter, two-required tool with no annotations and no output schema, the description covers the essential operational facts: the underlying engine, the produced artifact, and the model dependency. Gaps remain on failure modes and typical processing cost, which matter for a transcription job an agent may need to schedule or retry.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by explaining where to obtain the `model` file (a Hugging Face ggml-base.bin example) and by restating the model parameter's env-var fallback in operational terms. The remaining parameters (language, format, overwrite) are left entirely to the schema.

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?

The first sentence states a specific verb and resource: 'Transcribe speech to subtitles using FFmpeg's built-in whisper filter', plus the artifact produced (.srt/.json/.txt). That clearly separates it from siblings like burn_subtitles (which muxes existing subtitle tracks) or extract_audio. It loses a point only because it never names or contrasts an alternative explicitly.

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

Usage Guidelines4/5

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

The description gives the critical precondition for use: a whisper.cpp model file must be available via the WHISPER_MODEL_PATH env var or the `model` parameter, with a download pointer. This is clear context for when the tool can run, though it offers no explicit when-not-to-use guidance or comparison against sibling tools.

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