Skip to main content
Glama
nlevy

Spotify MCP Server

by nlevy

get_artist_albums

Retrieve albums for a Spotify artist by ID. Optionally filter by album types such as albums or singles, and set a limit on the number returned.

Instructions

Get albums for an artist

Arguments: artist_id (str): Spotify artist ID to get albums for include_groups (str, optional): Album types to include (default: "album,single") - "album": Full albums - "single": Singles - "appears_on": Appearances on other albums - "compilation": Compilation albums limit (int, optional): Maximum number of albums to return (default: 20, max: 50)

Returns: Dict[str, Any]: - success (bool): Whether the operation was successful - artist (Dict): Basic artist information: - id (str): Artist ID - name (str): Artist name - albums (List[Dict]): List of album objects containing: - id (str): Spotify album ID - name (str): Album name - album_type (str): Type of album (album, single, compilation) - release_date (str): Release date - total_tracks (int): Number of tracks - spotify_url (str): Spotify album URL - images (List[Dict]): Album cover images - total_albums (int): Number of albums found - message (str): Success message - error (str, optional): Error message if failed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artist_idYes
include_groupsNoalbum,single
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations provided, so the description fully bears the burden. It explains input constraints (artist_id required, optional include_groups with allowed values, limit with max=50), return structure with fields, and error handling ('error' field). No contradictions or omissions.

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 long but well-organized with sections 'Arguments' and 'Returns'. While every sentence adds value, some redundancy (e.g., repeating 'album' types) could be trimmed. Still reasonably concise for the detail provided.

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?

The description is fully self-contained: it explains input, output (including nested structures like artist and album objects), optional parameters, defaults, and error handling. Given 3 params and a complex return type, it addresses all necessary information. The output schema is described in detail, so no gaps remain.

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?

Schema coverage is 0% (no descriptions on schema props), but the description thoroughly explains each parameter: artist_id (Spotify ID), include_groups (allowed values and default), and limit (default 20, max 50). This adds critical meaning beyond schema names and types.

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 opens with 'Get albums for an artist', a specific verb-resource pair. It distinctly differs from sibling tools like get_artist (artist info), get_artist_top_tracks (top tracks), and search_artists (search). The return type and parameters reinforce the clear purpose.

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 implies usage: provide an artist_id and optionally filter by album type or limit results. However, it does not explicitly state when to use this over alternatives like get_artist_top_tracks (for top songs) or get_new_releases (for new albums). A brief note on when not to use it would improve clarity.

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