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
| Name | Required | Description | Default |
|---|---|---|---|
| master_id | Yes |
Implementation Reference
- src/tools/database.ts:138-152 (handler)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); } }, };
- src/types/master.ts:15-17 (schema)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(), });
- src/tools/database.ts:259-259 (registration)Registration of the getMasterReleaseTool in the registerDatabaseTools function, which is called from src/tools/index.ts.server.addTool(getMasterReleaseTool);
- src/tools/index.ts:16-16 (registration)Top-level tool registration entry point that invokes registerDatabaseTools, indirectly registering 'get_master_release'.registerDatabaseTools(server);