Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_release_group_details

Retrieve album, EP, or single metadata from MusicBrainz database by providing a release group ID to access conceptual details across multiple editions.

Instructions

Get details about a release group (the album/EP/single concept). A release group contains one or more releases (specific editions). Use get_release_details for a specific edition's tracklist and barcode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
release_group_idYes

Implementation Reference

  • The handler implementation for the get_release_group_details tool.
    def get_release_group_details(release_group_id: str) -> str:
        """Get details about a release group (the album/EP/single concept).
        A release group contains one or more releases (specific editions).
        Use get_release_details for a specific edition's tracklist and barcode."""
        res = musicbrainzngs.get_release_group_by_id(
            release_group_id,
            includes=["artists", "releases", "tags", "ratings", "url-rels"],
        )
        rg = res["release-group"]
        tags = [t["name"] for t in rg.get("tag-list", [])]
        genres = ", ".join(tags) if tags else ""
        artist = rg.get("artist-credit-phrase", "Unknown")
        rtype = rg.get("type", "Unknown")
        date = rg.get("first-release-date", "Unknown")
    
        releases = [
            f"  - {r['title']} ({r.get('date', '?')}) | release ID: {r['id']}"
            for r in rg.get("release-list", [])
        ]
    
        parts = [
            f"Title: {rg['title']}",
            f"Artist: {artist}",
            f"Type: {rtype}",
            f"First Release Date: {date}",
            f"Genres: {genres or 'None listed'}",
            f"MBID: {release_group_id}",
            f"\nReleases in this group ({len(releases)}):",
            *releases[:25],
        ]
        return "\n".join(parts)
  • Registration of the get_release_group_details tool.
    @mcp.tool()
    @cached_tool()

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