Skip to main content
Glama
YouTubeMCP
by imrees

Add video to playlist

add_to_playlist

Add a YouTube video to a playlist at a chosen position, with duplicate prevention and an approval preview before the change is applied.

Instructions

Add a video to a playlist. Refuses duplicates (playlist_duplicate). Two-step approval.

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": "add_to_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
positionNo0-based position; only for manually sorted playlists. Default: end.
video_idYesYouTube video ID (11 characters) or any youtube.com / youtu.be URL.
playlist_idYesPlaylist ID (or a URL containing list=...).
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

A3.6/5.0
Behavior4/5

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

The annotations already declare a non-read-only, non-idempotent, non-destructive write. The description adds real behavior: a duplicate video is rejected with the error code 'playlist_duplicate,' and an approval gate must pass before the write. It doesn't explain whether a retry after the refusal is safe, given idempotentHint=false.

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?

It uses three short sentences with no waste. The key constraint, duplicate refusal, is front-loaded after the purpose statement. The 'Two-step approval' fragment is terse to the point of under-specification, but it is ordered well.

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 needn't be explained. However, for a mutation gated behind an approval flow, the description never says how the preview/token step is initiated or which tool produces it. The agent must infer that path from the confirmation_token parameter alone.

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 coverage is 100%, so all four parameters, including position and confirmation_token, are fully documented in the schema. The description adds no syntax or format detail beyond that. A baseline 3 is appropriate when the schema does the heavy lifting.

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 uses a specific verb and resource: 'Add a video to a playlist.' The tool name and the sibling set already make its scope clear: removal is handled elsewhere. It doesn't need explicit sibling differentiation, but the description also doesn't state it.

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?

'Two-step approval' signals that a preview step must happen first, which is real usage guidance. However, it never names the tool or step that produces the confirmation token, or says what conditions trigger the duplicate refusal, beyond the error code.

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