Skip to main content
Glama
llyfn

Spotify MCP Server

get_artist_albums

Retrieve albums by a Spotify artist. Filter by album types, limit, offset, and market.

Instructions

Get albums by a Spotify artist.

    Args:
        artist_id: The Spotify ID of the artist.
        include_groups: Comma-separated album types: album, single, appears_on, compilation.
        limit: Maximum number of albums to return (1-50, default 20).
        offset: Index of the first album to return (default 0).
        market: ISO 3166-1 alpha-2 country code.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artist_idYes
include_groupsNo
limitNo
offsetNo
marketNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It only lists parameters but omits details such as sorting order, pagination behavior, error handling, or what the returned album objects contain. The presence of an output schema mitigates this somewhat, but the description does not describe the response structure or any side effects.

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 description is extremely concise: one sentence for the purpose followed by a bullet-style list of parameters. There is no unnecessary text, and the key information is front-loaded. Every sentence adds value.

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 the tool has 5 parameters, one required, and an output schema exists, the description covers all inputs adequately. It does not mention how to handle pagination (offset+limit) or iterate pages, which is a minor gap for a list endpoint. Overall, it is mostly complete for typical use.

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 description adds significant meaning beyond the input schema by explaining each parameter: artist_id is the Spotify ID, include_groups lists album types, limit has a 1-50 range with default 20, offset is the index, market is a country code. Since the schema properties have no descriptions, this coverage is valuable. However, it could be more precise (e.g., enumerating allowed values for include_groups).

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 'Get albums by a Spotify artist,' which is a specific verb+resource+scope. It distinguishes well from siblings like get_album (single album by ID) and get_albums (multiple albums by IDs), and from get_artist (artist info only).

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 clearly indicates when to use the tool (to list albums for an artist), but provides no explicit guidance on when not to use it or how it differs from similar siblings beyond the parameter descriptions. No alternatives or exclusions are mentioned.

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

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