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
| Name | Required | Description | Default |
|---|---|---|---|
| artist_id | Yes | ||
| page | No | ||
| per_page | No | ||
| sort | No | ||
| sort_order | No |
Implementation Reference
- src/tools/database.ts:81-95 (handler)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); } }, };
- src/types/artist.ts:98-100 (schema)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), );
- src/tools/database.ts:262-262 (registration)Registration of the get_artist_releases tool in the MCP server.server.addTool(getArtistReleasesTool);