Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

edit_item_in_wantlist

Modify notes or ratings for a release in a user's Discogs wantlist by specifying the username and release ID. Enhances catalog management through tailored updates.

Instructions

Edit a release in a user's wantlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNo
ratingNo
release_idYes
usernameYes

Implementation Reference

  • Full tool definition including the handler (execute function) for 'edit_item_in_wantlist' which invokes the UserService to edit the wantlist item.
    export const editItemInWantlistTool: Tool<FastMCPSessionAuth, typeof UserWantlistItemParamsSchema> = { name: 'edit_item_in_wantlist', description: `Edit a release in a user's wantlist`, parameters: UserWantlistItemParamsSchema, execute: async (args) => { try { const userService = new UserService(); const wantlistItem = await userService.wants.editItem(args); return JSON.stringify(wantlistItem); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema defining input parameters for editing an item in a user's wantlist (username, release_id, optional notes and rating).
    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 edit_item_in_wantlist tool (via editItemInWantlistTool) to the MCP server.
    export function registerUserWantlistTools(server: FastMCP): void { server.addTool(getUserWantlistTool); server.addTool(addToWantlistTool); server.addTool(editItemInWantlistTool); server.addTool(deleteItemInWantlistTool); }
  • Top-level registration that invokes registerUserWantlistTools, indirectly registering the edit_item_in_wantlist tool.
    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