Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_artist_discography

Retrieve complete artist discographies with paginated release groups from the MusicBrainz database. Use to access full catalog listings beyond initial results.

Instructions

Get a paged discography (release groups) for an artist. Use this for complete discographies; get_artist_details only shows the first 10. Args: artist_id: The MBID limit: Max results (default 25) offset: Paging offset

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artist_idYes
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Implementation of the get_artist_discography tool, which retrieves a paginated list of release groups for a given artist using musicbrainzngs.browse_release_groups.
    def get_artist_discography(
        artist_id: str,
        limit: int = 25,
        offset: int = 0,
    ) -> str:
        """
        Get a paged discography (release groups) for an artist.
        Use this for complete discographies; get_artist_details only shows the first 10.
        Args:
            artist_id: The MBID
            limit: Max results (default 25)
            offset: Paging offset
        """
        res = musicbrainzngs.browse_release_groups(
            artist=artist_id,
            limit=min(limit, 100),
            offset=offset,
            release_group_includes=["releases"],
        )
        items = res.get("release-group-list", [])
        count = res.get("release-group-count", len(items))
        lines = [f"Discography for artist {artist_id} (Showing {len(items)} of {count}):"]
        for i in items:
            rtype = i.get("type", "Unknown")
            date = i.get("first-release-date", "????")
            lines.append(f"- {i['title']} ({date}) [{rtype}] | release-group ID: {i['id']}")
        return "\n".join(lines)
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 mentions paging behavior ('paged discography', 'offset') and default values, which adds useful context. However, it doesn't cover other behavioral aspects like rate limits, authentication needs, error conditions, or what 'release groups' specifically entails.

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 front-loaded with the core purpose, followed by usage guidance and parameter details in a clear, bullet-like format. Every sentence earns its place with no wasted words, making it highly efficient.

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's moderate complexity (3 parameters, no annotations, but with an output schema), the description is reasonably complete. It covers purpose, differentiation, and parameters. The output schema likely handles return values, so the description doesn't need to explain them, but it could benefit from more behavioral context.

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?

With 0% schema description coverage, the description compensates by explaining all three parameters: 'artist_id: The MBID', 'limit: Max results (default 25)', and 'offset: Paging offset'. This adds meaning beyond the bare schema, though it doesn't elaborate on MBID format or paging constraints.

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 the specific action ('Get a paged discography') and resource ('release groups for an artist'), distinguishing it from sibling tools like 'get_artist_details' which only shows the first 10 results. It explicitly identifies the scope as 'complete discographies'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool versus alternatives: 'Use this for complete discographies; get_artist_details only shows the first 10.' This directly compares it to a sibling tool and specifies the use case.

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/zas/mcp-musicbrainz'

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