Skip to main content
Glama
umsachde

spotify-mcp

by umsachde

add_tracks_to_playlist

Add tracks to a Spotify playlist using track IDs or URIs. Automatically batches requests to stay within Spotify's 100-item limit.

Instructions

Add tracks to a playlist by Spotify track ID (or URI). Chunks in batches of 100, Spotify's per-request limit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_idsYes
playlist_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It adds useful transparency by noting that batches are chunked to Spotify's 100-item per-request limit, which is beyond the schema. However, it does not disclose other side effects or prerequisites such as playlist ownership, duplicate handling, or whether tracks are appended.

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 two sentences with no filler. The action is front-loaded, and the second sentence adds the key batching detail. Every phrase earns its place.

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 the tool's simple two-parameter contract, the description covers the core operation and the main API limit, and an output schema exists to handle return details. It is not exhaustive (no mention of error cases or ownership), but it is sufficient for correct invocation in the common case.

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 input schema has 0% description coverage, so the description must compensate. It does clarify that track_ids accepts Spotify track IDs or URIs, which is meaningful. It does not add detail for playlist_id or explicitly state the 100-item batch behavior as a parameter constraint, so compensation is partial.

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: 'Add tracks to a playlist', with the method (by Spotify track ID or URI). This clearly distinguishes it from siblings like get_playlist_tracks, create_playlist, and search_music without needing to inspect schemas.

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 intended use is implied: use this tool when you need to add tracks to an existing playlist. It does not explicitly contrast with alternatives like create_playlist or get_playlist_tracks, nor does it state when not to use it, but the name and description make the primary scenario clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.