Skip to main content
Glama
jamiew

Spotify MCP Server

Search Spotify

search_tracks
Read-onlyIdempotent

Search Spotify for tracks, albums, artists, or playlists using keywords and filters like genre, year, and artist. Get paginated results to find music quickly.

Instructions

Search Spotify for tracks, albums, artists, or playlists.

Args:
    query: Search query
    qtype: Type ('track', 'album', 'artist', 'playlist')
    limit: Max results per page (1-50, default 10)
    offset: Number of results to skip for pagination (default 0)
    year: Filter by year (e.g., '2024')
    year_range: Filter by year range (e.g., '2020-2024')
    genre: Filter by genre (e.g., 'electronic', 'hip-hop')
    artist: Filter by artist name
    album: Filter by album name

Returns:
    SearchResults with 'items' (list of tracks) and pagination info ('total', 'limit', 'offset')

Note: Filters use Spotify's search syntax. For large result sets, use offset to paginate.
Example: query='love', year='2024', genre='pop' searches for 'love year:2024 genre:pop'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
qtypeNotrack
limitNo
offsetNo
yearNo
year_rangeNo
genreNo
artistNo
albumNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
totalYes
limitYes
offsetYes
nextNo
previousNo
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint. The description adds value by detailing the return format (SearchResults with items and pagination) and search syntax behavior, complementing the annotations without contradiction.

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 structured as a docstring with clear sections (Args, Returns, Note). It is fairly detailed but not overly verbose; each sentence contributes to understanding or usage guidance.

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 complexity (9 parameters, 15 siblings, existing output schema), the description covers purpose, all parameters, return format, and usage notes. It lacks error handling or rate limit info, but annotations and output schema partially cover gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by listing all 9 parameters with concise explanations and an example showing their combination. This enables correct invocation without relying on 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 explicitly states 'Search Spotify for tracks, albums, artists, or playlists', with a clear verb and resource. It distinguishes from sibling tools that target specific entities (e.g., get_album_info), making its 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes a note about Spotify's search syntax and an example, implying its use for general discovery. It lacks explicit when-not-to-use or alternative references, but the context of siblings with specific ID-based queries provides indirect 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/jamiew/spotify-mcp'

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