Skip to main content
Glama

Add a video to a playlist

youtube_add_to_playlist

Adds a YouTube video to a chosen playlist by playlist ID and video ID, with optional insert position; omit position to append at the end.

Instructions

Inserts a video into a playlist immediately.

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": {
      "playlistId": "<playlistId>",
      "videoId": "<videoId>"
    },
    "name": "youtube_add_to_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoIdYesVideo id: the 11-character code after "watch?v=" or "youtu.be/", not the full URL.
positionNoZero-based insert position. Omit to append to the end.
playlistIdYesPlaylist id — the value after "list=" in a playlist URL, usually beginning "PL", "UU", or "LL".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description's only added claim is "immediately," which conveys little, and it omits meaningful behavior such as whether re-adding the same video creates a duplicate or what is returned on success.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of padding, but it is so terse that it reads as under-specification rather than disciplined concision. There is no wasted wording, yet the sentence leaves obvious questions unanswered.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter mutation with no output schema, the description does not say what happens on duplicate insertion, whether the caller must own the playlist, or what the response contains. Annotations cover the read/write profile, but the call semantics an agent needs are still missing.

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%, with videoId, playlistId and the zero-based position all documented in the schema itself. The description adds no extra meaning beyond that, so the baseline of 3 applies.

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 ("Inserts") and resource ("a video into a playlist"), which cleanly separates it from siblings like youtube_create_playlist or youtube_list_playlist_items. It does not explicitly point at an alternative, but the action is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus youtube_create_playlist or youtube_list_playlist_items, and no prerequisites such as owning the playlist, OAuth scope, or quota cost. The agent must infer all of that from the tool name alone.

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