Skip to main content
Glama

update_playlists_by_playlist_id_items

Idempotent

Adds media items to an existing Plex playlist using a URI or play queue ID. Provide the playlist ID to target.

Instructions

Adding to a Playlist.

PUT /playlists/{playlistId}/items

Args: playlist_id: The ID of the playlist uri: The content URI for the playlist. play_queue_id: The play queue to add to a playlist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriNo
playlist_idYes
play_queue_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already indicate idempotentHint=true and destructiveHint=false, so the description adds little behavioral context beyond stating it is an additive operation. It does not disclose duplicate-item behavior, failure effects, required permission, or response semantics, which would be valuable for a mutation endpoint.

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?

The description is short and organized with an endpoint and an Args block, making the core information easy to scan. Minor formatting issues like the double space in 'Adding to a Playlist' and the redundant 'Args:' header do not significantly hurt readability.

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 3-parameter mutation tool with no schema-level parameter descriptions, the description is incomplete. It fails to explain how to provide multiple items, whether uri and play_queue_id are alternatives or complementary, or what the output/result indicates, leaving a critical gap for correct invocation.

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

Parameters2/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, but it only paraphrases the parameter names: 'The ID of the playlist', 'The content URI for the playlist', and 'The play queue to add to a playlist'. It does not explain URI format, the relationship between uri and play_queue_id, or whether at least one is required despite playlist_id being the only required field.

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 states 'Adding to a Playlist' and provides the endpoint PUT /playlists/{playlistId}/items, making the action and resource clear. The name and description together distinguish it from sibling operations like deleting playlist items or moving items within a playlist, though it does not explicitly differentiate itself.

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?

The description gives no guidance on when to use this tool versus alternatives such as update_playlists_by_playlist_id_items_by_generator_id or create_playlists. It only restates the basic operation, leaving the agent to infer usage from the endpoint and name.

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