Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

edit_item_in_wantlist

Update notes or ratings for a specific release in your Discogs wantlist to track preferences and details.

Instructions

Edit a release in a user's wantlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
release_idYes
notesNo
ratingNo

Implementation Reference

  • Defines and implements the 'edit_item_in_wantlist' MCP tool handler, which invokes the UserService to edit a 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 the input parameters for editing an item in a user's wantlist, including username, release ID, 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 'edit_item_in_wantlist' tool (and related wantlist tools) with the FastMCP server.
    export function registerUserWantlistTools(server: FastMCP): void { server.addTool(getUserWantlistTool); server.addTool(addToWantlistTool); server.addTool(editItemInWantlistTool); server.addTool(deleteItemInWantlistTool); }

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