Skip to main content
Glama

Transcribe speech into a word-timestamped caption element

transcribe_to_captions

Transcribe audio or video into word-timestamped captions for your video project. Runs Whisper locally—no API key or upload required—and accepts a URL or local file path.

Instructions

Transcribe an audio or video file into a word-timestamped caption element (the protocol renders these). Captions need real per-word timings, which can only come from actual speech-to-text — this runs Whisper in the server process (no API key, no third-party upload). Provide a url (fetched server-side — use this in chat-mode, where there is no local file) OR a local path. Requires ffmpeg on the host. By default the caption is added to the current project; set add:false to only return it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addNoAdd the caption to the current project. Default true.
urlNoPublic URL of an audio/video file to fetch and transcribe. Use this OR path.
pathNoLocal path to an audio/video file (Claude Desktop / local servers). Use this OR url.
layerNoLayer for the caption element (higher = nearer front, the highest layer is on top). Default 999 so captions sit above scene content; if the project already stacks that high, the caption goes one above its top layer instead.
modelNoWhisper model id. Default 'Xenova/whisper-base'. Use '…-tiny.en' for speed, '…-small' for accuracy.
languageNoForce a language code (e.g. "en"); omit to auto-detect.
project_idNoWhich project to act on — the id returned by create_project / set_project / create_promo / load_project. Omit when working on a single local project.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
addedYes
word_countYes
duration_secondsYes
Behavior4/5

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

Discloses behavior beyond annotations: runs Whisper in the server process without API key or third-party upload, requires ffmpeg, and by default adds to the current project unless add:false. It also explains the layer default behavior. These are valuable context traits not present in the sparse annotations. Minor gaps remain, such as expected runtime or return format, but output schema covers return shape.

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?

Five sentences, each with a distinct purpose: purpose, rationale, input modes, prerequisite, and default behavior. No redundant or filler content, and the most important information is front-loaded. The structure is crisp and scannable.

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?

For a 7-parameter tool with an output schema and minimal annotations, the description covers purpose, why this tool is needed, execution details, prerequisites, parameter flexibility, and side effects. It is complete enough for an agent to reliably select and invoke it without additional lookups.

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 description coverage is 100%, giving a baseline of 3. The description adds meaning beyond the schema by explaining the practical use cases for url vs path (chat-mode vs local), the layer stacking fallback, and model selection guidance ('tiny.en' for speed, 'small' for accuracy). This context is genuinely helpful for selecting parameters.

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 clearly states the action and resource: 'Transcribe an audio or video file into a word-timestamped caption element.' It uses a specific verb and resource, and distinguishes this tool from generic siblings (like add_element) by emphasizing that only this tool provides real per-word timings via speech-to-text.

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?

Provides explicit context for when to use URL vs local path ('use this in chat-mode, where there is no local file'), notes the ffmpeg prerequisite, and explains the add:false option to avoid modifying the project. However, it does not explicitly name alternatives like add_element for non-transcribed captions, so it misses a clear exclusion statement.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clipkit-video/clipkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server