Skip to main content
Glama

add_songs_to_playlist

Populate a Spotify playlist by searching for multiple song names and adding the matching tracks.

Instructions

Search for songs and add the best match for each query to a playlist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketNo
playlist_idYes
song_queriesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/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. It mentions that the tool selects the 'best match' per query, which is a useful behavioral detail, but it does not disclose side effects (e.g., whether songs are appended), failure modes (e.g., no match found), or any permissions needed. As a mutation tool, this lacks essential transparency.

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, concise sentence that is front-loaded with the core action. Every word earns its place, with no redundant or vague content. It is highly efficient and easy to parse.

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 simple tool with an output schema, the description covers the core action but leaves gaps: no mention of market behavior, duplicate handling, error cases, or when to use this versus searching first. Given no annotations and sparse parameter details, it is minimally adequate but not fully complete.

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 has no parameter descriptions, so the description must compensate. 'for each query' implies song_queries is an array of search strings, which adds meaning. However, playlist_id and market are not explained; market in particular is completely absent from the description. Thus the description provides moderate but incomplete parameter semantics.

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 clearly states the tool's function: it searches for songs and adds the best match for each query to a playlist. This uses a specific verb ('add') and resource ('songs to a playlist'), distinguishing it from sibling tools like search_song (which only searches) and play/pause (playback controls).

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—when you have a playlist and a list of song queries to add—but it does not explicitly state when to use this tool versus alternatives such as search_song or create_playlist. There are no exclusion or prerequisite details, so it falls short of clear contextual guidance.

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/HUANGV1/Spotify-MCP'

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