Skip to main content
Glama

create_playlist

Create a Plex playlist using selected media items or a smart filter. Regular playlists need media keys; smart ones use library section and filter.

Instructions

Create a new Plex playlist (requires PLEX_ENABLE_MUTATIVE_OPS=true). For regular playlists, ratingKeys is required — Plex does not support creating empty playlists. For smart playlists, set smart=true and provide librarySectionId (and optionally libtype / smartFilter).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesPlaylist type (video, audio, photo) or media type (movie, show, episode, artist, album, track)
smartNoCreate a smart playlist filtered from a library section (default: false)
titleYesPlaylist title
libtypeNoSmart playlists only: content type to filter for. Defaults based on playlist type (audio->track, video->movie, photo->photo).
ratingKeysNoRating keys to seed the playlist with. REQUIRED for non-smart playlists (>=1). All items are sent in a single POST, comma-joined in the playlist URI. Mutually exclusive with smart=true.
smartFilterNoSmart playlists only: raw Plex filter query string, e.g. 'genre=Drama&year>=2020&sort=titleSort:asc&limit=100'. Appended to the section URI.
librarySectionIdNoSmart playlists only: library section ID to filter (e.g. '1'). REQUIRED when smart=true.
Behavior4/5

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

The description adds valuable behavioral context beyond the annotations: it discloses the PLEX_ENABLE_MUTATIVE_OPS requirement and notes that Plex does not support creating empty playlists. These are not captured by the readOnlyHint/destructiveHint flags and help the agent understand true preconditions.

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?

The description is only two sentences, front-loaded with the primary action, and efficiently packs all critical usage constraints without redundancy. Every sentence earns its place.

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?

Given the 7-parameter schema with full descriptions and non-mutative annotations, the description covers the core usage patterns and prerequisites. It does not mention return values, but since no output schema exists, this is a minor gap for a creation tool where the primary outcome is self-evident.

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?

The schema already provides 100% description coverage for all 7 parameters, including required conditions and mutual exclusivity. The description restates key patterns (e.g., ratingKeys required for regular, librarySectionId for smart) but does not add new semantic information beyond what the schema offers. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Create a new Plex playlist', using a specific verb and resource. It clearly distinguishes this from sibling tools like get_playlists, add_to_playlist, and delete_playlist by focusing on the creation action.

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

Usage Guidelines4/5

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

The description provides clear context on when to use this tool: it requires PLEX_ENABLE_MUTATIVE_OPS=true, and it explains the two distinct usage paths (regular vs. smart playlists) with their required parameters. It does not explicitly name alternatives, but the context is unambiguous.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/niavasha/plex-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server