Skip to main content
Glama

search_within_playlist

Locate specific tracks or episodes within a playlist by matching text against song, artist, or album.

Instructions

Text search inside a single playlist (client-side filter over full item walk). Quota: 🟢 GET /playlists/{id}/items paged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSubstring to match against track/episode name, artist, album
marketNoMarket for track relinking
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist ID
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 disclosure burden, and it delivers meaningful behavioral context: 'client-side filter over full item walk' reveals the operation fetches and filters all items locally, and the quota note ('🟢 GET /playlists/{id}/items paged') discloses the underlying API, cost tier, and pagination behavior. This goes well beyond what the input schema communicates, though it stops short of an explicit read-only/safety statement.

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 with zero waste — the core purpose is front-loaded, and the quota/mechanism note adds high-value context in a compact parenthetical and a short second sentence. Every word 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?

For a 5-parameter tool with no output schema and no annotations, the description covers the essentials: what it does, how it implements the search, and its quota cost. Minor gaps remain (no explicit statement that the operation is read-only, no caveat about large playlists or how max_results interacts with the full item walk), but the 100% schema coverage compensates for most missing detail.

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 all five parameters (query, market, max_results, playlist_id, response_format) are already documented in the schema; the baseline of 3 applies. The description's 'client-side filter' phrase modestly reinforces the query parameter's substring-matching semantics but adds no syntax or default details 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 verb ('Text search'), a precise resource ('a single playlist'), and a scope constraint ('inside a single playlist') that clearly separates it from catalog-wide search siblings like search_tracks, search_advanced, and search_fresh. The parenthetical '(client-side filter over full item walk)' further clarifies the mechanism, making the tool's purpose unambiguous.

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 single-playlist scope implies when an agent should choose this over global catalog searches, but the description never explicitly names alternatives or states when-not-to-use. Context is implied rather than stated — an agent must infer that this is for filtering one playlist rather than searching the catalog or querying saved tracks (search_saved_tracks).

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