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