Skip to main content
Glama

playlist_add_by_search

Search Spotify and add top matching tracks or episodes to a playlist in one step. Specify a query, choose how many hits to add, and commit or preview first.

Instructions

"Add Radiohead Paranoid Android to Chill Mix" in one shot: search the catalog, pick the top result(s), and add the URI(s) to a playlist. Highest-traffic curation gesture. Quota: 🟡 1 search + 1 add call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pickNoHow many top search hits to add (1–10). Default 1
typeNoWhat to search for. Default tracktrack
queryYesSearch query, e.g. "Radiohead Paranoid Android"
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)
playlist_idYesDestination playlist, as ID or spotify:playlist: URI
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It mentions the quota and the pick-top-result behavior, but it omits the critical fact from the schema that dry_run defaults to true—so the tool does not actually add anything unless the caller passes false. This can mislead an agent into expecting a mutation that won't happen.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with the core operation and an example, and the quota line is useful. The phrase 'Highest-traffic curation gesture' adds some usage context but is somewhat vague and not strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a compound tool with 7 parameters and no output schema, the description is incomplete. It does not disclose the dry_run default, the preview/commit flow, or what a returned plan looks like, leaving a significant gap for an agent deciding whether to call with the default.

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 schema already explains all parameters. The description adds an illustrative query and clarifies the 'top result(s)' behavior tied to pick, but provides no substantive semantic value beyond 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 states a specific compound operation—search the catalog, pick top results, and add them to a playlist—with a concrete example. This clearly distinguishes it from siblings like add_to_playlist or search_tracks by emphasizing the one-shot search-and-add gesture.

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 the tool: a single high-traffic curation action like adding a known track to a playlist without separate search and add calls. It does not explicitly name alternative tools or exclusion conditions, so it stops short of a 5.

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