Skip to main content
Glama
YouTube Model Context Protocol (MCP) Server

YouTube Model Context Protocol (MCP) Server

by nilhn9660

youtube_add_video_to_playlist

Adds a specified video to an existing YouTube playlist, optionally at a chosen position. Use it to organize videos into ordered collections via OAuth2.

Instructions

Add a video into an existing playlist at an optional position index. Requires OAuth2.

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": {
      "playlist_id": "<playlist_id>",
      "video_id": "<video_id>"
    },
    "name": "youtube_add_video_to_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
positionNo
video_idYes
playlist_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the OAuth2 requirement, which is genuinely useful, but says nothing about what happens if the video is already in the playlist, whether the playlist must be owned by the authenticated user, what 'optional' position defaults to (append at end?), quota implications, or whether the mutation is reversible.

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?

Two short sentences, front-loaded with the action and followed by the auth prerequisite. No filler, no restatement of the tool name, and every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 values need not be described, but this is a mutation tool with zero annotation coverage and only two sentences of behavior. Critical facts an agent needs — duplicate-video handling, ownership constraints, position default semantics — are absent, leaving the definition only minimally adequate.

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 0%, so the description must compensate, and it does partially: it maps all three parameters (video into playlist, optional position index) in plain language. However, it adds no format or indexing detail — whether position is 0-based or 1-based, what an out-of-range index does, or what ID format is expected — so the schema's bare 'Position' and 'Video Id' titles remain under-explained.

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?

The description names a specific verb and resource ('Add a video into an existing playlist') and scopes it to existing playlists, which implicitly separates it from youtube_create_playlist and youtube_reorder_playlist_item. It stops short of explicitly naming any sibling, 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?

Usage is only implied: the phrase 'existing playlist' hints that the playlist must already exist, but there is no explicit when-to-use guidance, no exclusion of alternatives such as reorder_playlist_item, and no stated prerequisites beyond the OAuth2 note. An agent can guess the right context but is given no routing rules.

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

Deploy Server

Other Tools