Skip to main content
Glama

Write subtitles for audio

write_subtitles
DestructiveIdempotent

Transcribe an audio file locally with Whisper and save subtitles as SRT or VTT beside the source, avoiding transcript output in the conversation.

Instructions

Transcribe an audio file with Whisper (whisper-small), locally, and write the subtitles to a file, by default next to the audio with the same name and a .srt or .vtt extension. The subtitles are not returned, so a long recording costs nothing in the conversation. Refuses to replace an existing file unless overwrite is true. Returns the path written, the detected language and the duration. Takes roughly a tenth of the recording's length on a desktop CPU. To read the transcript instead, use transcribe.

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": {
      "path": "<path>"
    },
    "name": "write_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of a wav, mp3, flac or ogg file.
formatNosrt (default) or vtt.
overwriteNoReplace output_path if it exists. Default false.
output_pathNoAbsolute path to write to. Default: the audio's path with .srt or .vtt.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.5

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description explains exactly why: it 'refuses to replace an existing file unless overwrite is true,' so a destructive result is gated on an explicit flag. It adds cost context (nothing returned, so no conversation bloat; ~1/10 of real-time on a desktop CPU) and the return shape, which annotations do not cover. It stops short of stating the permission or disk-space requirements of a write tool, so it is strong but not exhaustive.

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?

The core action and default output location come first, and each sentence carries weight – the cost-estimation and runtime figures genuinely help an agent decide whether to call it. It is a dense single paragraph, though, with the sibling routing placed last rather than up front where it aids selection.

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?

There is no output schema, and the description compensates by naming what is returned (the written path, detected language, duration). Combined with the refusal semantics and runtime estimate, an agent has everything needed to invoke this write tool correctly and predict its 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 description coverage is 100%, so the schema already documents path, format, overwrite and output_path defaults. The description restates the default output location and the overwrite gate but adds no new meaning, such as accepted path forms or extension-override edge cases. Baseline 3 applies when the schema is doing the work.

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?

The description names a specific verb (transcribe) and resource (audio file), states the engine (Whisper small, run locally), and the artifact produced (an .srt or .vtt file next to the source by default). It explicitly separates itself from the sibling `transcribe`, which reads the transcript rather than writing it. An agent can distinguish the two without opening either schema.

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?

It states the condition that selects the alternative outright: 'To read the transcript instead, use transcribe.' It also gives the overwrite condition for when writing is permitted. Both when-to-use and when-to-use-something-else are present.

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