Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

delete_item_in_wantlist

Remove a specific release from a user's Discogs wantlist by providing the username and release ID. Simplify managing music collection preferences.

Instructions

Delete a release from a user's wantlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNo
ratingNo
release_idYes
usernameYes

Implementation Reference

  • Defines and implements the 'delete_item_in_wantlist' MCP tool handler, which uses UserService to delete the specified item from the user's wantlist.
    export const deleteItemInWantlistTool: Tool< FastMCPSessionAuth, typeof UserWantlistItemParamsSchema > = { name: 'delete_item_in_wantlist', description: `Delete a release from a user's wantlist`, parameters: UserWantlistItemParamsSchema, execute: async (args) => { try { const userService = new UserService(); await userService.wants.deleteItem(args); return 'Release deleted from wantlist'; } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema for the tool's input parameters, merging username, release ID, with optional notes and rating.
    export const UserWantlistItemParamsSchema = UsernameInputSchema.merge( ReleaseIdParamSchema.extend({ notes: z.string().optional(), rating: z.number().int().min(0).max(5).optional(), }), );
  • Registers the delete_item_in_wantlist tool (along with 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); }
  • Top-level registration function that calls registerUserWantlistTools to register all tools including delete_item_in_wantlist.
    export function registerTools(server: FastMCP): void { registerDatabaseTools(server); registerMarketplaceTools(server); registerInventoryExportTool(server); registerUserIdentityTools(server); registerUserCollectionTools(server); registerUserWantlistTools(server); registerUserListsTools(server); registerMediaTools(server); }

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