Skip to main content
Glama

transcribe_audio

Transcribes audio from videos that have no captions using local Whisper speech-to-text. Use as a fallback when transcript retrieval fails, converting YouTube audio into text, timestamps, SRT, VTT, or JSON.

Instructions

Speech-to-text fallback for videos with NO captions.

Downloads the audio with yt-dlp and transcribes it locally with Whisper. Requires pip install '.[whisper]' and the ffmpeg binary on PATH. This is slow (minutes for a long video) - only use it when get_transcript fails.

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": {
      "video": "<video>"
    },
    "name": "transcribe_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoYesYouTube URL (watch, youtu.be, /shorts/, /live/, /embed/) or an 11-character video ID.
formatNoOutput format: text | timestamped | markdown | srt | vtt | json (default: text).timestamped
languageNoBCP-47 caption language code, e.g. 'en', 'fr', 'es', 'de', 'ja'. Empty = server default ('en').
model_sizeNoWhisper model size: tiny | base | small | medium | large-v3 (default: base).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it reveals the mechanism (yt-dlp audio download + local Whisper transcription), hard prerequisites (`pip install '.[whisper]'` and ffmpeg on PATH), and a latency warning ('slow (minutes for a long video)'). It stops short of covering failure behavior, whether downloads are cached/temp files are cleaned up, or resource consumption of larger models.

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?

Four short lines, front-loaded with the fallback identity and the exclusion condition, followed by mechanism, prerequisites, and cost. Every sentence carries information an agent needs before calling; there is no filler or repetition of the name.

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 slow, dependency-heavy fallback tool this is essentially complete: an agent learns it is a last resort, what it needs installed, and how long it takes. Return-value explanation is unnecessary because an output schema exists, and the four parameters are fully documented in the schema.

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 all four parameters in detail and the baseline of 3 applies; the description adds no parameter-level meaning (e.g. when to prefer a larger model_size or which format suits which downstream use). Note also an internal inconsistency in the schema itself: the format property has default 'timestamped' but its own text says '(default: text)', which the tool description does nothing to resolve.

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+resource ('transcribe_audio' as a speech-to-text fallback) and scopes it precisely to 'videos with NO captions', immediately distinguishing it from the caption-based siblings like get_transcript. An agent can tell exactly what this tool produces and how it differs from get_transcript 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?

Gives an explicit conditional: 'only use it when get_transcript fails', plus the precondition 'videos with NO captions'. It names the alternative (get_transcript) and the exact condition that selects this tool, which is the strongest form of routing guidance.

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