Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_recording_details

Retrieve detailed metadata for a music recording, including artist information, duration, ISRC codes, genres, and the releases where it appears.

Instructions

Get recording details: artist, duration, ISRCs, genres, and which releases (albums/singles) it appears on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recording_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Implementation of the get_recording_details tool which fetches detailed information about a MusicBrainz recording using the musicbrainzngs library.
    @mcp.tool()
    @cached_tool()
    def get_recording_details(recording_id: str) -> str:
        """
        Get recording details: artist, duration, ISRCs, genres, and which
        releases (albums/singles) it appears on.
        """
        res = musicbrainzngs.get_recording_by_id(
            recording_id,
            includes=[
                "releases",
                "artist-credits",
                "isrcs",
                "tags",
                "ratings",
            ],
        )
        rec = res["recording"]
        releases = [
            f"  - {rel['title']} ({rel.get('date', '?')}) | release ID: {rel['id']}"
            for rel in rec.get("release-list", [])
        ]
        isrcs = ", ".join(rec.get("isrc-list", [])) or "None"
        tags = [t["name"] for t in rec.get("tag-list", [])]
        genres = ", ".join(tags) if tags else ""
        artist = rec.get("artist-credit-phrase", "N/A")
        dur = _fmt_duration(rec.get("length"))
    
        parts = [
            f"Title: {rec['title']}",
            f"Artist: {artist}",
            f"Duration: {dur}",
            f"ISRCs: {isrcs}",
            f"Genres: {genres or 'None listed'}",
            f"MBID: {recording_id}",
            f"\nAppears on ({len(releases)} releases):",
            *releases[:25],
        ]
        return "\n".join(parts)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It only states what data is returned, lacking details on permissions, rate limits, error handling, or whether it's a read-only operation. This is inadequate for a tool with no annotation coverage.

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 a single, efficient sentence that front-loads the core purpose and lists key data points without unnecessary words. Every part of the sentence contributes directly to understanding the tool's function.

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 low complexity (one parameter) and the presence of an output schema (which handles return values), the description is reasonably complete. It covers the core purpose and data returned, though it lacks behavioral context due to no annotations, which slightly reduces completeness.

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?

The description implies the 'recording_id' parameter is used to fetch details for a specific recording, adding meaning beyond the schema's 0% coverage. Since there's only one parameter and the schema lacks descriptions, the description adequately compensates by clarifying the parameter's role, though it doesn't specify format or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('recording details'), listing the specific data returned (artist, duration, ISRCs, genres, releases). It doesn't explicitly differentiate from sibling tools like 'get_release_details' or 'get_artist_details', which prevents a score of 5.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. Sibling tools like 'get_release_details' or 'get_artist_discography' might overlap in functionality, but the description offers no explicit context, exclusions, or comparisons to help an agent choose appropriately.

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