Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_label_details

Retrieve comprehensive metadata for record labels from the MusicBrainz database, including type, location, genres, and official URLs.

Instructions

Get details about a record label including type, area, genres, and URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
label_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The get_label_details function is defined as an MCP tool to fetch and format details about a record label from the MusicBrainz API.
    def get_label_details(label_id: str) -> str:
        """Get details about a record label including type, area, genres, and URLs."""
        res = musicbrainzngs.get_label_by_id(
            label_id,
            includes=["aliases", "tags", "ratings", "url-rels"],
        )
        lb = res["label"]
        tags = [t["name"] for t in lb.get("tag-list", [])]
        genres = ", ".join(tags) if tags else ""
        aliases = ", ".join(al["alias"] for al in lb.get("alias-list", [])[:10])
        urls = "\n".join(
            f"  - {r['type']}: {r['target']}" for r in lb.get("url-relation-list", [])
        )
        lifespan = lb.get("life-span", {})
        begin = lifespan.get("begin", "?")
        end = lifespan.get("end", "present")
    
        parts = [
            f"Name: {lb['name']}",
            f"Type: {lb.get('type', 'N/A')}",
            f"Country: {lb.get('country', 'N/A')}",
            f"Founded: {begin} to {end}",
            f"Label code: {lb.get('label-code', 'N/A')}",
            f"Genres: {genres or 'None listed'}",
            f"Aliases: {aliases or 'None'}",
            f"MBID: {lb['id']}",
        ]
        if urls:
            parts.append(f"URLs:\n{urls}")
        return "\n".join(parts)
Behavior2/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 of behavioral disclosure. It states the tool retrieves details but does not cover aspects like whether it's read-only, potential rate limits, error conditions, or authentication needs. This leaves significant gaps for a tool that likely queries an external database or API.

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 output fields without unnecessary words. Every part earns its place by clarifying what details are retrieved.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should cover return values), the description's focus on output fields is adequate. However, with no annotations and minimal parameter guidance, it lacks completeness for safe and effective use, such as error handling or usage context relative to siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 1 parameter with 0% description coverage, but the description does not add any parameter-specific semantics beyond implying 'label_id' is needed. It lists output fields (type, area, genres, URLs), which helps infer the parameter's purpose but does not detail format or constraints. With low schema coverage, the description provides minimal compensation.

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 action ('Get details') and resource ('about a record label'), specifying the type of information retrieved (type, area, genres, URLs). However, it does not explicitly differentiate from sibling tools like 'get_area_details' or 'get_artist_details', which have similar naming patterns but target different entities.

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. The description does not mention prerequisites, context, or exclusions, such as whether it requires a specific label ID format or how it differs from general search tools like 'search_entities' for finding labels.

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