Skip to main content
Glama

Add a video or stream to a playlist

add_item_to_playlist

Append one item to the end of a playlist: send video_id or stream_id, exactly one. Both must belong to the connected account.

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

Input Schema

NameRequiredDescriptionDefault
video_idNoVideo id
stream_idNoStream id
playlist_idYesPlaylist id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare it is a non-read-only, non-destructive, non-idempotent, closed-world write. Beyond that, the description discloses the append-at-end ordering behavior (no position argument) and the requirement that the referenced item belongs to the connected account — both non-obvious. It does not address duplicate entries (relevant given idempotentHint=false) or failure modes.

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 placement, followed by the input constraint and ownership rule. No filler, no restatement of the title or parameter names.

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?

For a three-parameter, fully documented schema with no output schema, the description covers the action, placement, input exclusivity, and a scoping precondition. Remaining gaps (duplicate handling, return value, permission errors) are minor for this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage the baseline is 3, but the description adds a constraint the schema does not encode: video_id and stream_id are mutually exclusive and exactly one must be supplied (the schema only requires playlist_id and marks both optional). That is meaningful added meaning beyond the structured fields.

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?

"Append one item to the end of a playlist" is a specific verb plus resource with a stated placement semantic, which implicitly separates it from remove_item_from_playlist. It does not explicitly name any sibling or contrast with create_playlist/get_playlist, so it falls short of full differentiation.

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 constrains input selection ("send video_id or stream_id, exactly one") and states an ownership precondition, which implies when the tool is applicable. It gives no explicit when-to-use/when-not guidance or routing to alternatives such as create_playlist for a playlist that does not yet exist.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.