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
| Name | Required | Description | Default |
|---|---|---|---|
| curr_abbr | No | ||
| release_id | Yes |
Implementation Reference
- src/tools/database.ts:183-192 (handler)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); } },
- src/types/release.ts:147-156 (schema)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(), });
- src/tools/database.ts:254-254 (registration)Registration of the 'get_release' tool (getReleaseTool) to the FastMCP server instance within registerDatabaseTools.server.addTool(getReleaseTool);
- src/tools/index.ts:16-16 (registration)Top-level registration invoking registerDatabaseTools(server), which includes the 'get_release' tool.registerDatabaseTools(server);