Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_area_details

Retrieve geographic area information from the MusicBrainz database to identify music-related locations like countries and cities.

Instructions

Get details about a geographic area (country, city).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
area_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The implementation of the get_area_details tool, which is registered with @mcp.tool() and decorated with @cached_tool(). It fetches area details from the MusicBrainz API and formats them into a readable string.
    @mcp.tool()
    @cached_tool()
    def get_area_details(area_id: str) -> str:
        """Get details about a geographic area (country, city)."""
        res = musicbrainzngs.get_area_by_id(
            area_id,
            includes=["aliases", "url-rels"],
        )
        a = res["area"]
        aliases = ", ".join(al["alias"] for al in a.get("alias-list", [])[:10])
        lifespan = a.get("life-span", {})
        begin = lifespan.get("begin", "?")
        end = lifespan.get("end", "present")
    
        parts = [
            f"Name: {a['name']}",
            f"Type: {a.get('type', 'N/A')}",
            f"Life-span: {begin} to {end}",
            f"Aliases: {aliases or 'None'}",
            f"MBID: {area_id}",
        ]
        return "\n".join(parts)
    
    
    @mcp.tool()
    @cached_tool()
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 it 'gets details' but doesn't specify what details are returned, whether it's a read-only operation, if it requires authentication, or any rate limits. For a tool with no annotations, this leaves significant gaps in understanding its behavior.

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, clear sentence with no wasted words. It's front-loaded with the core purpose and efficiently specifies the resource scope. Every part of the sentence adds value, making it appropriately concise.

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 minimalism is somewhat acceptable. However, with no annotations and low parameter coverage, it lacks context on behavior and usage. For a simple lookup tool, it's minimally viable but incomplete in guiding effective use.

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

Parameters2/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, and the description adds no information about the 'area_id' parameter. It doesn't explain what format 'area_id' should be (e.g., ISO codes, names), what values are valid, or provide examples. With low schema coverage, the description fails to compensate.

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 ('geographic area'), specifying it includes countries and cities. It distinguishes from most siblings that focus on music entities (artists, releases, etc.), though not from 'browse_entities' or 'search_entities' which could overlap with geographic areas. The purpose is specific but could better differentiate from potential siblings.

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. It doesn't mention prerequisites, when not to use it, or how it differs from sibling tools like 'browse_entities' or 'search_entities' that might also handle geographic areas. The description lacks context for tool selection.

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