Skip to main content
Glama

delete_playlists_by_playlist_id_items

DestructiveIdempotent

Clear a Plex playlist by passing its playlist ID, removing all items from it. Resolves the need to manually delete each track.

Instructions

Clearing a playlist.

DELETE /playlists/{playlistId}/items

Args: playlist_id: The ID of the playlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
playlist_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already indicate destructive=true, readOnly=false, and idempotent=true, and the description's 'Clearing' wording and DELETE method align with those traits. The description adds minimal behavioral context beyond the annotations and does not mention side effects, authorization needs, or whether all items are removed.

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 compact and front-loads the core action and endpoint before the single argument. The Args section is somewhat redundant with the schema but does not add unnecessary bulk.

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?

The tool is simple with one parameter, an output schema, and strong annotations, so the minimal description is partially sufficient. However, the ambiguity between 'clearing a playlist' and 'deleting a playlist' plus the lack of usage guidance makes the definition incomplete for reliable selection and invocation in an agent context.

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 carries the burden of explaining playlist_id. It only restates 'The ID of the playlist,' which adds no meaning beyond the schema's property title and type, and provides no additional constraints or context.

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 a clear action ('Clearing a playlist') and provides the HTTP endpoint DELETE /playlists/{playlistId}/items, which indicates that the tool operates on playlist items rather than the playlist itself. However, it does not explicitly distinguish itself from sibling delete_playlists_by_playlist_id, so the differentiation is left to naming and endpoint inference.

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 provides no guidance on when to use this tool versus alternatives such as delete_playlists_by_playlist_id or get_playlists_by_playlist_id_items. There is no mention of context, prerequisites, or exclusions, so an agent must infer usage entirely from the endpoint and tool 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