MCP server for controlling Spotify from GitHub Copilot Chat
The Music MCP Server has 15 tools, but nearly all suffer from missing input schemas and underdeveloped descriptions. While tool names are action-oriented (play_music, pause_music, create_playlist), the implementation reveals critical gaps: 9 tools have empty input schemas {} despite being functional, parameters lack type definitions where they exist, and descriptions are superficial (e.g., 'Play or resume music on Spotify.' is only 31 chars). The code shows proper tool registration with @app.tool() decorators, but the MCP definition lacks the structured schemas and detailed guidance LLMs need for safe, reliable invocation. No output schemas are documented, error handling returns bare exception strings without recovery guidance, and there is no evidence of input validation or constraint enforcement.
Add a track to a playlist. Track URI format: spotify:track:XXXXXX
Create a new playlist.
Get information about the currently playing track.
Delete (unfollow) a playlist.
Get list of available Spotify devices.
Get tracks in a playlist.
Get your Spotify playlists.
Skip to the next track.
9 of 15 tools have empty input schemas ({}), violating the requirement that parameterless tools must still declare zero required parameters explicitly. LLMs cannot infer whether these tools accept optional parameters or are truly parameterless.
Tool descriptions are too short (avg 35-50 chars, median ~40 chars). Pattern baseline is 194 chars. Descriptions like 'Play or resume music on Spotify.' (31 chars) lack context on when to use the tool, what it returns, or any state-modification warning.
No output schemas documented for any tool. Responses are free-form strings (e.g., '▶️ Music started playing.') without structured field definitions. LLMs cannot parse results reliably or chain subsequent tool calls. Baseline: 100% of A+ tools document return types.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 6 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 35 | - | v1 |
Pause music on Spotify.
Play or resume music on Spotify.
Play a specific track by URI. Format: spotify:track:XXXXXX
Go to the previous track.
Remove a track from a playlist. Track URI format: spotify:track:XXXXXX
Search for tracks on Spotify.
Transfer playback to a specific device by its ID.
Error handling returns raw exception strings (e.g., 'Error: {str(e)}') without recovery guidance. LLM has no instruction on whether to retry, ask the user, or abandon the goal. Pattern requires: 'User not found. Try search_users() first.'
No dry-run or confirmation mechanism for destructive tools (delete_playlist, remove_from_playlist). Agents can inadvertently delete playlists with no reversible step. Pattern requires confirmation-request for irreversible operations.
Tools accepting parameter input (transfer_playback, create_playlist, etc.) lack validation. No enum constraints for boolean flags, no length limits for playlist names, no format validation for Spotify URIs (track_uri expected format 'spotify:track:XXXXXX' is documented in descriptions but not enforced via regex or custom validation).
Tools with parameters (e.g., create_playlist 'description' param) lack explicit descriptions of constraints. The 'public' boolean defaults to true with no warning that this creates public playlists by default, a potentially unintended side effect per pattern review:default-values.
search_tracks returns results as free-form text. No structured response documenting track IDs, URIs, artists, or metadata. Downstream tools (play_track, add_to_playlist) need track_uri, but response format makes extraction ambiguous. Violates pattern:tool-chain.
Playlist operations (add_to_playlist, remove_from_playlist) require Spotify URIs in 'spotify:track:XXXXXX' format, which are not human-friendly. No lookup_track or track_search helper that returns URIs. Agents must search, parse freeform text for URIs, then add, multi-step and error-prone. Pattern: mxe:chat-data-model.