Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_release

Retrieve detailed information about a specific music release from Discogs, including pricing in various currencies, by providing the release ID.

Instructions

Get a release

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
release_idYes
curr_abbrNo

Implementation Reference

  • MCP tool handler for 'get_release': instantiates ReleaseService and calls its get method to fetch release data, serializes to JSON.
    export const getReleaseTool: Tool<FastMCPSessionAuth, typeof ReleaseParamsSchema> = { name: 'get_release', description: 'Get a release', parameters: ReleaseParamsSchema, execute: async (args) => { try { const releaseService = new ReleaseService(); const release = await releaseService.get(args); return JSON.stringify(release); } catch (error) { throw formatDiscogsError(error); } }, };
  • Input schema for get_release tool: requires release_id, optional curr_abbr.
    export const ReleaseIdParamSchema = z.object({ release_id: z.number().min(1, 'The release_id must be non-zero'), }); /** * Schema for release parameters */ export const ReleaseParamsSchema = ReleaseIdParamSchema.extend({ curr_abbr: CurrencyCodeSchema.optional(), });
  • Registers the getReleaseTool with the FastMCP server instance.
    server.addTool(getReleaseTool);
  • Calls registerDatabaseTools which includes adding the get_release tool to the server. (Indirect registration)
    registerDatabaseTools(server);

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