Skip to main content
Glama
zas

MusicBrainz MCP Server

by zas

get_cover_art_urls

Retrieve cover art image URLs for music releases from the Cover Art Archive. Provide a release ID to get front/back covers and thumbnails for specific album editions.

Instructions

Get cover art image URLs for a specific release (edition) from the Cover Art Archive. Takes a release_id, NOT a release_group_id. Returns URLs for front/back covers and thumbnails.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
release_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The tool `get_cover_art_urls` handler implemented in `server.py` using `musicbrainzngs` to fetch cover art.
    @mcp.tool()
    @cached_tool()
    def get_cover_art_urls(release_id: str) -> str:
        """Get cover art image URLs for a specific release (edition)
        from the Cover Art Archive.
        Takes a release_id, NOT a release_group_id.
        Returns URLs for front/back covers and thumbnails."""
        images = musicbrainzngs.get_image_list(release_id)
        img_list = images.get("images", [])
        if not img_list:
            return "No cover art images available."
        lines = [f"Cover art for release {release_id} ({len(img_list)} images):"]
        for img in img_list:
            types = ", ".join(img.get("types", ["Unknown"]))
            lines.append(f"- [{types}] {img.get('image', 'N/A')}")
            thumbs = img.get("thumbnails", {})
            if thumbs:
                thumb_url = thumbs.get("500") or thumbs.get("large", "")
                if thumb_url:
                    lines.append(f"  Thumbnail: {thumb_url}")
        return "\n".join(lines)
    
    
    @mcp.tool()
    @cached_tool()
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 the tool returns URLs for front/back covers and thumbnails, which adds useful behavioral context. However, it lacks details on error handling, rate limits, authentication needs, or whether the operation is read-only (implied but not stated).

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 front-loaded with the core purpose, followed by key usage notes and return details in three concise sentences. Every sentence adds value without redundancy, making it efficient and easy to parse.

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 (1 parameter) and the presence of an output schema (which likely describes the returned URLs), the description is mostly complete. It covers purpose, parameter semantics, and return types. However, without annotations, it could benefit from more behavioral details like error cases or data source constraints.

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 input schema has 0% description coverage, but the description compensates by clarifying that 'release_id' is required and specifying 'NOT a release_group_id,' which adds semantic meaning beyond the schema's type definition. It does not explain the format or source of the release_id, leaving some gaps.

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 action ('Get'), the resource ('cover art image URLs'), and the specific target ('for a specific release (edition) from the Cover Art Archive'). It distinguishes itself from siblings like 'get_release_details' by focusing on cover art URLs rather than general release metadata.

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

Usage Guidelines4/5

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

The description provides clear context by specifying 'Takes a release_id, NOT a release_group_id,' which helps differentiate it from tools like 'get_release_group_details.' However, it does not explicitly state when to use this tool versus alternatives like 'get_release_details' (which might include cover art) or 'search_releases' (for finding releases first).

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