Skip to main content
Glama

save_transcript

Fetch a YouTube video's transcript and write it to a file in TXT, SRT, VTT, Markdown, or JSON format, returning the saved file path for later use.

Instructions

Fetch a transcript and write it to a file (txt / srt / vtt / md / json).

Returns the absolute path written. Writes are restricted to the YOUTUBE_MCP_OUTPUT_DIR directory for safety.

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>",
      "filename": "<filename>"
    },
    "name": "save_transcript"
  }
}

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).srt
preferNoBackend: 'auto' (caption API then yt-dlp), 'api', 'ytdlp', or 'whisper' (default: auto).auto
filenameYesOutput file name or path. Relative paths are resolved inside YOUTUBE_MCP_OUTPUT_DIR.
languageNoBCP-47 caption language code, e.g. 'en', 'fr', 'es', 'de', 'ja'. Empty = server default ('en').

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does disclose the key mutation facts: it writes a file, returns the absolute path, and confines writes to YOUTUBE_MCP_OUTPUT_DIR for safety. It stops short of stating what happens if the file already exists (overwrite or fail), whether directories are created, or what it costs to reach the network backends.

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?

Three short sentences, front-loaded with the action and its result, with no filler. The only flaw is the redundant format enumeration that duplicates and slightly diverges from the schema instead of just naming the parameter.

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?

Output schema exists, so the description need not explain return values, yet it usefully states the absolute path is returned. For a write tool with zero annotation coverage the safety/scope disclosure is the important missing piece and it is present; residual gaps are overwrite semantics and error behavior on an unwritable path.

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 video, format, prefer, filename, and language in detail; the baseline of 3 applies. The description adds only marginal value here, and its format token list (txt / md) does not match the schema's canonical values (text / markdown / timestamped), which could mildly confuse an agent picking a format.

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?

"Fetch a transcript and write it to a file" states a specific compound verb and resource, and the format list plus the returned absolute path make the side effect unmistakable. It distinguishes itself in spirit from the read-only siblings (get_transcript, search_transcript) by being the one that persists output, but it never names them, so the differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

The description implies the use case (you want the transcript on disk, in one of several formats) but gives no explicit when-to-use versus when-not guidance and does not point at get_transcript for in-context retrieval. The write-location restriction is a constraint, not a selection rule, so usage must be inferred by the agent.

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