Skip to main content
Glama

library_to_playlist

Export saved Spotify tracks or albums' first tracks into a new playlist, preserving save order and applying an optional item cap.

Instructions

Export your saved tracks (or saved albums' first tracks) into a NEW playlist — sort by save order, cap at N, chunked adds. Quota: 🟡 getAllPages + create + chunked adds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromNoWhich saved shelf to export. Default tracks
nameNoPlaylist name. Default "Liked Songs export YYYY-MM-DD"
limitNoMax items to export. Default 500
orderNoExport order. Default added_asc
publicNoPublic visibility for a newly created playlist. Default: private
dry_runNoPreview only: perform the read side and return a PLAN without changing anything. Default true — pass false to commit.
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
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 burden for disclosing side effects. It explicitly signals a mutating operation ('NEW playlist', 'chunked adds') and even discloses the API call pattern ('getAllPages + create + chunked adds'). The quota note is a useful behavioral hint. It does not mention the dry_run default, but that is documented in the schema.

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 a single focused sentence plus a compact quota note. Every element earns its place: the action, the source, the output, the ordering, the cap, the chunking, and the quota cost. No filler or repetition beyond the acceptable 'chunked adds' mention in both parts.

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 that there is no output schema and no annotations, the description does a good job of covering the core purpose, the mutating nature, and the quota implications. The missing explicit alternative routing and lack of emphasis on the safe dry_run default are minor gaps, especially since the schema fully documents parameters and defaults.

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 description adds a small amount of semantic color ('saved albums' first tracks', 'sort by save order', 'cap at N') that maps to the 'from', 'order', and 'limit' parameters, but it does not substantially enhance the parameter documentation already present in the schema.

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 uses a specific verb and resource: 'Export your saved tracks (or saved albums' first tracks) into a NEW playlist'. It clearly distinguishes this from sibling operations by emphasizing the creation of a new playlist from library contents, and the added details about sort order, cap, and chunking make the purpose unmistakable.

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 gives clear context for when to use this tool: whenever a user wants to turn saved tracks or albums into a fresh playlist. It does not explicitly name alternatives or exclusion criteria, but the function is distinct enough among the large sibling list that an agent can infer the appropriate use case.

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