Skip to main content
Glama
pentafive

Your Spotify MCP Server

by pentafive

analyze_affinity

Identify shared songs between multiple Spotify users to create collaborative playlists and discover common music tastes. Compare listening histories to find tracks everyone knows or songs someone loves.

Instructions

Analyze listening overlap between multiple Your Spotify users.

Find songs that multiple users share in common - perfect for:

  • Creating collaborative playlists

  • Road trip music everyone enjoys

  • Party playlists where everyone knows the songs

  • Understanding shared music tastes with friends

Two analysis modes:

  • minima: Songs EVERYONE has listened to (highest overlap)

    • Good for: "Songs we ALL know"

    • Score based on lowest listener's play count

  • average: Songs that satisfy SOME people a lot

    • Good for: "Songs someone will love"

    • Score based on average play count

Example queries:

  • "What songs do my girlfriend and I both like?"

  • "Find music that everyone at the party knows"

  • "What's our shared music taste?"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_idsYesArray of Your Spotify user IDs to compare (2-5 users)
modeNoAnalysis mode: "average" (songs someone loves) or "minima" (songs everyone knows)minima
limitNoNumber of tracks to return (1-30)
start_dateNoOptional start date filter (YYYY-MM-DD)
end_dateNoOptional end date filter (YYYY-MM-DD)
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by explaining the two analysis modes and their scoring logic (lowest listener's play count vs. average play count). It could improve by mentioning potential limitations like data freshness or privacy considerations, but covers core behavioral aspects adequately.

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 well-structured with clear sections (purpose, use cases, analysis modes, examples) and uses bullet points effectively. While comprehensive, it could be slightly more concise by integrating some explanatory text more tightly, but every sentence adds meaningful context.

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 tool with 5 parameters, 100% schema coverage, and no output schema, the description provides excellent context about what the tool does, when to use it, and how different modes work. The main gap is lack of information about return format or result structure, which would be helpful given no output schema exists.

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 documents all parameters thoroughly. The description adds value by explaining the semantic difference between 'minima' and 'average' modes beyond the enum values, but doesn't provide additional context for other parameters like date filters or user_ids beyond what's in 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 clearly states the tool analyzes listening overlap between multiple Spotify users to find shared songs. It specifies the verb 'analyze' and resource 'listening overlap', distinguishing it from siblings like 'analyze_listening_patterns' or 'compare_listening_periods' which likely focus on different aspects of user data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly provides when-to-use guidance with four specific use cases (collaborative playlists, road trips, party playlists, understanding shared tastes) and two analysis modes with clear recommendations ('minima' for songs everyone knows, 'average' for songs someone will love). Example queries further illustrate appropriate contexts.

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/pentafive/your-spotify-mcp'

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