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
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| rating | No | ||
| release_id | Yes | ||
| username | Yes |
Implementation Reference
- src/tools/userWantlist.ts:68-85 (handler)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); } }, };
- src/types/user/wants.ts:31-36 (schema)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(), }), );
- src/tools/userWantlist.ts:87-92 (registration)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); }
- src/tools/index.ts:15-24 (registration)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); }