Skip to main content
Glama

replace_playlist_items

Replace an entire playlist's items with a new list of track or episode URIs, overwriting existing contents. Chunks long lists automatically; supports dry-run preview.

Instructions

Replace ALL items in a playlist with the supplied URIs, overwriting the current contents. Lists longer than 100 URIs are sent in chunks internally (replace + appends).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urisYesComplete ordered list of track or episode URIs the playlist should contain
dry_runNoPreview only: validate inputs and describe exactly what would change without performing it
playlist_idYesPlaylist ID
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it delivers: it explicitly warns of the destructive overwrite semantics and reveals the non-obvious internal chunking behavior for lists over 100 URIs. The only gap is the lack of a warning about partial application or atomicity if a chunk fails mid-way.

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 sentences with zero wasted words. The destructive core behavior is front-loaded in the first sentence, and the second sentence adds the genuinely useful chunking detail. Every sentence earns its place.

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?

For a destructive mutation tool with no output schema and no annotations, the description covers the core behavior and the chunking mechanism well. However, it omits what the return value looks like, whether the chunked operation is atomic or can partially apply on failure, and whether a snapshot/backup should be taken first — meaningful gaps for a destructive operation.

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%, so the baseline is 3. The uris parameter is already described as 'Complete ordered list of track or episode URIs' in the schema, and the description's chunking note adds behavioral context to that parameter. However, the description does not add meaning beyond what the schema already documents, so 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 states a specific verb-resource pair ('Replace ALL items in a playlist') and crucially clarifies the overwrite semantics ('overwriting the current contents'). This clearly differentiates it from sibling tools like add_to_playlist, remove_from_playlist, and reorder_playlist_items, so an agent can immediately tell what this tool is for.

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 'Replace ALL' and 'overwriting the current contents' phrasing implies this is the wholesale-replacement tool as opposed to incremental playlist edits, but it never explicitly names alternatives or states when not to use it (e.g., 'use add_to_playlist to append'). Usage context is implied rather than stated, which is adequate but not explicit.

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/NovaLux12/spotify-mcp-server'

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