Skip to main content
Glama
YouTubeMCP
by imrees

Upload captions

upload_captions

Add subtitle tracks to YouTube videos from .srt or .vtt files using a preview-and-approval flow to prevent accidental caption changes.

Instructions

Add a subtitle track to a video from a SubRip (.srt) or WebVTT (.vtt) file. Two-step: returns a preview and confirmation_token; call again with the token after the user approves. Refuses if a track with the same language and name already exists.

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_id": "<video_id>",
      "file_path": "<file_path>"
    },
    "name": "upload_captions"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoTrack name shown to viewers (max 150 chars). Empty = default track.
is_draftNoUpload as a draft (not shown to viewers).
languageNoBCP-47 language code of the captions, e.g. 'en', 'en-US', 'hi'.en
video_idYesYouTube video ID (11 characters) or any youtube.com / youtu.be URL.
file_pathYesAbsolute path to the .srt or .vtt file (UTF-8).
verify_contentNoAfter uploading, download the track and compare its text with the file (extra 200 quota units).
confirmation_tokenNoToken from the preview. Only pass it after the user has explicitly approved the preview.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which only say it is a non-read-only, non-idempotent, non-destructive open-world write), the description discloses the crucial gating behavior: the first invocation does not commit but returns a preview plus token, and the upload only completes on a second call after user approval. It also discloses a precondition failure mode (refuses when a track with the same language and name exists), which an agent cannot infer from any structured field.

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: purpose first, then the mandatory two-step protocol, then the refusal precondition. No filler, no repetition of schema content, and the most operationally important fact (token-gated second call) is front-loaded after the purpose.

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?

An output schema exists, so return/preview shapes need not be described, and the format, workflow, and duplicate-refusal behavior are all covered. Minor gaps remain: it doesn't mention quota consumption (only the schema's verify_content field hints at 200 extra units) or whether this replaces an existing default track, which matters for a mutation with destructiveHint=false.

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 every parameter including confirmation_token, file_path, and verify_content is already documented at the field level. The description restates the file format constraint and the token's approval precondition, but adds no syntax, quota, or defaulting semantics beyond the schema — baseline 3 is appropriate.

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 opens with a specific verb and resource ('Add a subtitle track to a video') and constrains the accepted input formats (.srt/.vtt), so the agent can immediately distinguish this from list_captions, download_captions, or update_captions without opening a schema.

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?

It gives an explicit two-step usage protocol — call once for a preview/confirmation_token, call again with the token only after the user approves — which is the main when/how guidance an agent needs. It also states the refusal condition for duplicate language+name tracks. It stops short of naming update_captions or list_captions as alternatives for modifying or checking existing tracks, so the alternative-routing is left implicit.

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