Skip to main content
Glama

remove_playlist_range

Remove a selected range of tracks from a Spotify playlist by position, with local backup and dry-run preview to validate before saving changes.

Instructions

Delete a positional range of a playlist (0-based start, EXCLUSIVE end; negative values count from the end): backs up the current items to a local file first, then removes by positions + uris. dry_run defaults to TRUE. Quota: 🟢 GET + chunked deletes when committing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo0-based EXCLUSIVE end; negative = from end. Default: all items
startNo0-based inclusive start; negative = from end. Default 0
dry_runNoPreview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true
playlist_idYesPlaylist to trim (ID or spotify:playlist: URI)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior5/5

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

Since no annotations are present, the description carries the full burden, and it delivers: it discloses that items are backed up locally before removal, that dry_run defaults to true, and that committing uses chunked deletes. This is strong transparency for a destructive tool.

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?

Three sentences front-load the core operation and safety behavior with no filler. The range semantics, backup behavior, dry_run default, and quota note are all compressed efficiently into a compact description.

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 mutation tool, the description covers the critical operational aspects: backup, dry_run default, and quota behavior. It could be improved by naming a related alternative or describing the committed-operation output, but the prose plus complete schema is sufficient for correct invocation.

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 documents all five parameters at 100% coverage, including start/end semantics and dry_run behavior. The description reinforces these semantics and adds the 'removes by positions + uris' implementation note, but the schema remains the primary source of parameter meaning.

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 precise operation: deleting a positional range of a playlist, with explicit indexing semantics. This clearly distinguishes it from read/extract tools like extract_playlist_range, even though it does not name siblings.

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 implies usage for positional range deletion but never explicitly states when to use this tool over alternatives like remove_from_playlist or playlist_trim. It gives context about dry_run and backup, but no exclusion criteria or alternative routing.

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