Skip to main content
Glama
umsachde

spotify-mcp

by umsachde

get_current_user

Get the current user's profile to distinguish their own playlists from followed ones, preventing Spotify permission errors on playlist access.

Instructions

Get the authenticated user's own profile (id, display_name, ...).

The id is the only way to tell a playlist the user owns from one they merely follow: get_playlists returns both, indistinguishable except by owner.id. That distinction is load-bearing rather than cosmetic -- Spotify 403s playlist_items on another user's playlist, so a caller that treats followed playlists as its own gets an error it cannot act on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It makes the read-only nature evident through 'Get,' clarifies that the result is the authenticated user's own profile, and adds a load-bearing consequence about playlist ownership. It doesn't discuss rate limits or errors, but for a zero-parameter getter with an output schema, this is sufficient.

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?

The purpose is front-loaded in the first sentence, and the second paragraph is compact but substantive: it explains why the returned id matters and prevents a common authorization failure. Every sentence earns its place; there is no filler.

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

Completeness5/5

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

Given zero parameters, a low-complexity read operation, and an existing output schema, the description provides everything an agent needs: what the tool returns, that it is the authenticated user's profile, and why the id is critical for playlist ownership decisions. No essential guidance is missing.

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

Parameters4/5

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

The tool has zero parameters and the schema already represents that with 100% coverage, so there is nothing for the description to add. Per the baseline for 0 parameters, a 4 is appropriate.

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 and resource: 'Get the authenticated user's own profile (id, display_name, ...).' This clearly identifies what the tool does and is distinct from sibling tools like get_playlists or get_saved_tracks, so an agent can differentiate it without opening schemas.

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 strong contextual guidance: get_playlists returns both owned and followed playlists, and owner.id is the only way to distinguish them. It doesn't explicitly say 'use this tool when you need the current user's id,' but the implication is clear and reinforced by the Spotify 403 consequence.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.