Skip to main content
Glama

split_playlist_by_count

Split a Spotify playlist into N roughly equal parts, saving each as a new playlist with a prefix. Preview the plan first via the default dry-run, then commit to create the playlists.

Instructions

Split a playlist into N roughly-equal parts, each written to a NEW playlist named " 1..N" — dry_run defaults to TRUE so it returns the part plan read-only. Quota: 🟡 GET + N creates + chunked adds when committing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
partsNoNumber of parts (2–50). Default 2
prefixNoNew playlist name prefix. Default: "<original name> — Part"
publicNoPublic visibility for a newly created playlist. Default: private
dry_runNoPreview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist to split (ID or spotify:playlist: URI)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and handles it well: it discloses the mutating side effect (N playlist creations only when committing), the safe read-only dry-run default, and the quota footprint. It stops short of edge cases like playlists with fewer tracks than parts or collisions with pre-existing prefix-named playlists, so it is not a 5.

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 pack the core action, naming scheme, safety default, and quota into minimal text with zero filler. The most decision-relevant facts (side effect plus dry-run default) are front-loaded.

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 7-parameter mutation tool with no output schema and no annotations, the description covers the essentials but leaves the return value vague ('returns the part plan') and omits edge-case behavior such as uneven distribution or playlists shorter than the requested part count. An agent cannot predict what the plan contains or how degenerate inputs behave.

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 input schema already documents all seven parameters. The description adds modest value by clarifying the prefix numbering scheme ('<prefix> 1..N') and tying dry_run to the read-only plan, which matches the baseline 3 for high schema coverage.

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 and resource: 'Split a playlist into N roughly-equal parts, each written to a NEW playlist.' The count-based splitting together with the '<prefix> 1..N' naming convention clearly distinguishes it from siblings like split_playlist_by_duration and the generic split_playlist.

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 gives useful operational context ('dry_run defaults to TRUE so it returns the part plan read-only' and the quota cost) that tells an agent it can preview safely. However, it never explicitly says when to prefer this over split_playlist_by_duration or split_playlist, and it offers no exclusions or alternative routing among the large sibling set.

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