Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_album_tracks

Retrieve tracklists with durations for albums, EPs, or singles using MusicBrainz release group IDs. This tool provides structured track information for music cataloging and metadata applications.

Instructions

Fetches the tracklist with durations for a release group (album/EP/single). Takes a release_group_id (NOT a release_id). For a specific release's tracklist, use get_release_details instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
release_group_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The `get_album_tracks` tool implementation, which fetches tracks for a release group from MusicBrainz.
    @mcp.tool()
    @cached_tool()
    def get_album_tracks(release_group_id: str) -> str:
        """Fetches the tracklist with durations for a release group (album/EP/single).
        Takes a release_group_id (NOT a release_id). For a specific release's tracklist,
        use get_release_details instead."""
        rg_result = musicbrainzngs.get_release_group_by_id(
            release_group_id, includes=["releases"]
        )
        releases = rg_result["release-group"].get("release-list", [])
        if not releases:
            return "No releases found for this release group."
    
        release_id = releases[0]["id"]
        release_details = musicbrainzngs.get_release_by_id(
            release_id, includes=["recordings"]
        )
        tracks = _format_tracks(release_details["release"].get("medium-list", []))
        return "\n".join(tracks) if tracks else "No tracks found."
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 discloses that it fetches tracklists with durations, which is useful behavioral context. However, it doesn't mention other important traits like whether it's a read-only operation, potential rate limits, error conditions, or authentication requirements. The description adds some value but leaves significant behavioral aspects undocumented.

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 perfectly concise with just two sentences that each earn their place. The first sentence states the purpose and key behavioral detail (durations), while the second provides critical usage guidance and sibling differentiation. There's zero wasted language and it's effectively front-loaded.

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 an output schema (which handles return values), one parameter with good semantic clarification in the description, and clear sibling differentiation, the description is quite complete. The main gap is the lack of behavioral transparency details that annotations would normally provide, but the description does well with what it covers for this relatively simple lookup tool.

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 compensates well by clarifying that the parameter must be a 'release_group_id (NOT a release_id)'. This adds crucial semantic meaning beyond what the bare schema provides, helping the agent understand the specific type of identifier required and what to avoid.

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 ('Fetches the tracklist with durations') and resource ('for a release group'), distinguishing it from siblings by specifying it works with release groups rather than releases. It explicitly differentiates from get_release_details, making the purpose unambiguous and well-defined.

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 ('Takes a release_group_id') versus alternatives ('For a specific release's tracklist, use get_release_details instead'). It clearly defines the context and names the specific sibling tool to use instead in different scenarios.

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