Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_release_details

Retrieve tracklist with durations, barcode, and label information for a specific music release edition using its MusicBrainz release ID.

Instructions

Get tracklist with durations, barcode, and label for a specific release. Takes a release_id (a specific edition), NOT a release_group_id. To get tracks for an album concept, use get_album_tracks with a release_group_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
release_idYes

Implementation Reference

  • The implementation of the get_release_details tool which fetches release details from the MusicBrainz API.
    def get_release_details(release_id: str) -> str:
        """Get tracklist with durations, barcode, and label for a specific release.
        Takes a release_id (a specific edition), NOT a release_group_id.
        To get tracks for an album concept, use get_album_tracks with a release_group_id."""
        res = musicbrainzngs.get_release_by_id(
            release_id,
            includes=[
                "recordings",
                "labels",
                "artist-credits",
                "media",
                "release-groups",
            ],
        )
        r = res["release"]
        tracks = _format_tracks(r.get("medium-list", []))
    
        labels = ", ".join(
            f"{li.get('label', {}).get('name', '?')} ({li.get('catalog-number', 'N/A')})"
            for li in r.get("label-info-list", [])
        )
        barcode = r.get("barcode", "N/A")
        status = r.get("status", "N/A")
        country = r.get("country", "N/A")
        rg = r.get("release-group", {})
        rg_type = rg.get("type", "N/A")
    
        parts = [
            f"Title: {r['title']}",
            f"Artist: {r.get('artist-credit-phrase', 'N/A')}",
            f"Date: {r.get('date', 'Unknown')}",

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