Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_master_release

Retrieve detailed information about a master release from Discogs using its unique ID, enabling users to manage and explore music catalog data efficiently.

Instructions

Get a master release

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
master_idYes

Implementation Reference

  • The main handler implementation for the 'get_master_release' tool. It instantiates MasterReleaseService and calls its get method with the input args (master_id), returning the JSON stringified master release data or throwing formatted error.
    export const getMasterReleaseTool: Tool<FastMCPSessionAuth, typeof MasterReleaseIdParamSchema> = { name: 'get_master_release', description: 'Get a master release', parameters: MasterReleaseIdParamSchema, execute: async (args) => { try { const masterReleaseService = new MasterReleaseService(); const masterRelease = await masterReleaseService.get(args); return JSON.stringify(masterRelease); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod input schema for the tool parameters, defining the required 'master_id' as an integer.
    export const MasterReleaseIdParamSchema = z.object({ master_id: z.number().int(), });
  • Registration of the getMasterReleaseTool in the registerDatabaseTools function, which is called from src/tools/index.ts.
    server.addTool(getMasterReleaseTool);
  • Top-level tool registration entry point that invokes registerDatabaseTools, indirectly registering 'get_master_release'.
    registerDatabaseTools(server);

Other Tools

Related 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/cswkim/discogs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server