Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_artist_releases

Fetch an artist's discography by specifying their ID, with options to sort by year, title, or format, and control pagination for detailed results.

Instructions

Get an artist's releases

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artist_idYes
pageNo
per_pageNo
sortNo
sort_orderNo

Implementation Reference

  • Full definition of the get_artist_releases tool, including the execute handler function that fetches artist releases using ArtistService.
    export const getArtistReleasesTool: Tool<FastMCPSessionAuth, typeof ArtistReleasesParamsSchema> = { name: 'get_artist_releases', description: `Get an artist's releases`, parameters: ArtistReleasesParamsSchema, execute: async (args) => { try { const artistService = new ArtistService(); const artistReleases = await artistService.getReleases(args); return JSON.stringify(artistReleases); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema definition for the input parameters of the get_artist_releases tool, merging artist ID with query params.
    export const ArtistReleasesParamsSchema = ArtistIdParamSchema.merge( QueryParamsSchema(['year', 'title', 'format'] as const), );
  • Registration of the get_artist_releases tool in the MCP server.
    server.addTool(getArtistReleasesTool);

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