Skip to main content
Glama
nlevy

Spotify MCP Server

by nlevy

get_album_tracks

Retrieve tracks from a Spotify album by providing the album ID. Options include market, limit, and offset for pagination.

Instructions

Get tracks from an album

Arguments: album_id (str): Spotify album ID to get tracks for market (str, optional): Market/country code for track availability (default: "US") limit (int, optional): Maximum number of tracks to return (default: 20, max: 50) offset (int, optional): Index of the first track to return (default: 0)

Returns: Dict[str, Any]: - success (bool): Whether the operation was successful - album (Dict): Basic album information: - id (str): Album ID - name (str): Album name - tracks (List[Dict]): List of track objects containing: - id (str): Spotify track ID - name (str): Track name - track_number (int): Track number on the album - duration_ms (int): Track duration in milliseconds - spotify_url (str): Spotify track URL - artists (List[Dict]): List of artists with: - id (str): Artist ID - name (str): Artist name - total_tracks (int): Total number of tracks in the album - message (str): Success message - error (str, optional): Error message if failed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
album_idYes
marketNoUS
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It describes the return format in detail, including success/error fields, but does not explicitly state that the tool is read-only or mention any authentication or rate limits. The lack of behavioral disclosure beyond the return schema limits transparency.

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 'Arguments' and 'Returns' sections, and it includes clear parameter details. However, it is somewhat lengthy due to the detailed return type documentation. It is front-loaded with the purpose statement.

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 that an output schema exists (context signals indicate has output schema: true), the description includes a comprehensive return value specification covering success, album info, tracks, and error messages. All input parameters are explained, making it reasonably complete.

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 input schema has 0% description coverage, but the description adds meaningful semantics for all four parameters: explains album_id as a Spotify album ID, market as a country code, and limit/offset with defaults and max value. This compensates well for the schema's lack of descriptions.

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 starts with 'Get tracks from an album', which is a specific verb+resource combination. It clearly distinguishes from sibling tools like 'get_album' (which returns album metadata) and 'get_artist_albums' (which lists albums by an artist).

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 description implies usage for retrieving tracks from a specific album, but does not explicitly state when to use this tool versus alternatives like 'get_album' or 'get_artist_albums'. No when-not conditions or context are provided.

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/nlevy/spotify-mcp-server'

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