Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_release

Retrieve detailed information about a specific music release from Discogs by providing a release ID and optional currency abbreviation for pricing.

Instructions

Get a release

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
curr_abbrNo
release_idYes

Implementation Reference

  • The execute handler function implementing the core logic of the 'get_release' tool by calling ReleaseService.get(args).
    execute: async (args) => { try { const releaseService = new ReleaseService(); const release = await releaseService.get(args); return JSON.stringify(release); } catch (error) { throw formatDiscogsError(error); } },
  • Zod schemas defining the input parameters for the 'get_release' tool: ReleaseIdParamSchema (requires release_id) extended to ReleaseParamsSchema (adds 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(), });
  • Registration of the 'get_release' tool (getReleaseTool) to the FastMCP server instance within registerDatabaseTools.
    server.addTool(getReleaseTool);
  • Top-level registration invoking registerDatabaseTools(server), which includes the 'get_release' tool.
    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