Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

add_to_wantlist

Add music releases to your Discogs wantlist by specifying username and release ID. Track desired vinyl, CDs, or cassettes for future purchase.

Instructions

Add a release to a user's wantlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
release_idYes
notesNo
ratingNo

Implementation Reference

  • Tool handler implementation: defines the 'add_to_wantlist' tool with execute function that instantiates UserService and calls wants.addItem(args) to add the release to the wantlist.
    export const addToWantlistTool: Tool<FastMCPSessionAuth, typeof UserWantlistItemParamsSchema> = { name: 'add_to_wantlist', description: `Add a release to a user's wantlist`, parameters: UserWantlistItemParamsSchema, execute: async (args) => { try { const userService = new UserService(); const wantlistItem = await userService.wants.addItem(args); return JSON.stringify(wantlistItem); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema defining input parameters for add_to_wantlist: merges username input with release ID and optional notes/rating.
    /** * Schema for adding or editing a release in a user's wantlist */ export const UserWantlistItemParamsSchema = UsernameInputSchema.merge( ReleaseIdParamSchema.extend({ notes: z.string().optional(), rating: z.number().int().min(0).max(5).optional(), }), );
  • Registration function that adds the addToWantlistTool (and related wantlist tools) to the FastMCP server.
    export function registerUserWantlistTools(server: FastMCP): void { server.addTool(getUserWantlistTool); server.addTool(addToWantlistTool); server.addTool(editItemInWantlistTool); server.addTool(deleteItemInWantlistTool); }
  • Invocation of registerUserWantlistTools in the main tools registration, ensuring the tool is registered on the server.
    registerUserWantlistTools(server);

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