Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_artist_details

Retrieve comprehensive artist information including aliases, genres, tags, and discography from the MusicBrainz database using the artist's MBID.

Instructions

Get comprehensive info about an artist including aliases, tags, genres, and their discography (Release Groups) with MBIDs. Shows first 10 release groups; use get_artist_discography for the full paged list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artist_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The 'get_artist_details' function is a tool decorated with @mcp.tool() and @cached_tool(). It fetches artist details from MusicBrainz, including aliases, tags, and a list of release groups, returning a formatted string.
    @mcp.tool()
    @cached_tool()
    def get_artist_details(artist_id: str) -> str:
        """
        Get comprehensive info about an artist including aliases, tags, genres,
        and their discography (Release Groups) with MBIDs.
        Shows first 10 release groups; use get_artist_discography for the full paged list.
        """
        res = musicbrainzngs.get_artist_by_id(
            artist_id,
            includes=[
                "aliases",
                "tags",
                "ratings",
                "release-groups",
                "url-rels",
            ],
        )
        a = res["artist"]
        tags = [t["name"] for t in a.get("tag-list", [])]
        genres = ", ".join(tags) if tags else ""
        aliases = ", ".join(al["alias"] for al in a.get("alias-list", [])[:10])
        urls = "\n".join(
            f"  - {r['type']}: {r['target']}" for r in a.get("url-relation-list", [])
        )
    
        rg_list = sorted(
            a.get("release-group-list", []),
            key=lambda rg: rg.get("first-release-date", "9999"),
        )
        albums = []
        for rg in rg_list:
            rtype = rg.get("type", "Unknown")
            date = rg.get("first-release-date", "????")
            albums.append(
                f"  - {rg['title']} ({date}) [{rtype}] | release-group ID: {rg['id']}"
            )
    
        lifespan = a.get("life-span", {})
        begin = lifespan.get("begin", "?")
        end = lifespan.get("end", "present")
        rating = a.get("rating", {})
        rating_str = (
            f"{rating['rating']}/5 ({rating.get('votes-count', 0)} votes)"
            if rating.get("rating")
            else "N/A"
        )
    
        parts = [
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it's a read operation (implied by 'Get'), specifies what data is returned, and importantly reveals the limitation of showing 'first 10 release groups' rather than all. It doesn't mention rate limits, authentication needs, or error conditions, but provides substantial operational context.

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?

Two sentences, zero waste. First sentence delivers core functionality with specific data points. Second sentence provides crucial usage guidance and sibling differentiation. Every word earns its place with no redundancy or fluff.

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 the tool has an output schema (so return values are documented elsewhere), no annotations, and simple single-parameter input, the description is complete. It covers purpose, data returned, limitations, and sibling differentiation - exactly what's needed for an agent to understand when and how to use this tool effectively.

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 and only one parameter, the description doesn't explicitly mention the 'artist_id' parameter. However, it strongly implies the need for artist identification through context ('about an artist'), and the tool's purpose is clear enough that the parameter's role is reasonably inferable. For a single-parameter tool, this is acceptable.

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 comprehensive info') and resource ('about an artist'), listing the exact data included (aliases, tags, genres, discography with MBIDs). It explicitly distinguishes from sibling 'get_artist_discography' by noting this tool shows only first 10 release groups versus the full paged list.

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?

Explicit guidance is provided on when to use this tool versus alternatives: 'use get_artist_discography for the full paged list' directly names the sibling tool for extended discography needs. This creates clear boundaries between tools for different use cases.

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