Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

add_to_wantlist

Add a music release to a specified user's Discogs wantlist by providing the username, release ID, optional notes, and a rating. Manage music catalog preferences efficiently.

Instructions

Add a release to a user's wantlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
notesNo
ratingNo
release_idYes
usernameYes

Implementation Reference

  • The complete tool implementation for 'add_to_wantlist', defining the name, description, input schema, and the execute handler that uses UserService to add the item to the wantlist.
    export const addToWantlistTool: Tool<FastMCPSessionAuth, typeof UserWantlistItemParamsSchema> = { name: 'add_to_wantlist', description: `Add a release to a user's wantlist`, parameters: UserWantlistItemParamsSchema, execute: async (args) => { try { const userService = new UserService(); const wantlistItem = await userService.wants.addItem(args); return JSON.stringify(wantlistItem); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema for the input parameters of the add_to_wantlist tool, merging username input with release ID and optional notes/rating.
    export const UserWantlistItemParamsSchema = UsernameInputSchema.merge( ReleaseIdParamSchema.extend({ notes: z.string().optional(), rating: z.number().int().min(0).max(5).optional(), }), );
  • Modular registration function that adds the addToWantlistTool (among others) to the FastMCP server.
    export function registerUserWantlistTools(server: FastMCP): void { server.addTool(getUserWantlistTool); server.addTool(addToWantlistTool); server.addTool(editItemInWantlistTool); server.addTool(deleteItemInWantlistTool); }
  • Top-level tool registration function that calls registerUserWantlistTools to register the wantlist tools including 'add_to_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