Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_user_wantlist

Retrieve a user's Discogs wantlist, including releases sorted by criteria like artist, title, or year. Specify username, page, and sort options to manage and view collection preferences.

Instructions

Returns the list of releases in a user's wantlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo
sortNo
sort_orderNo
usernameYes

Implementation Reference

  • Defines the get_user_wantlist tool object, including the execute handler function that uses UserService to retrieve the wantlist and returns it as JSON string.
    export const getUserWantlistTool: Tool<FastMCPSessionAuth, typeof UserWantlistParamsSchema> = { name: 'get_user_wantlist', description: `Returns the list of releases in a user's wantlist`, parameters: UserWantlistParamsSchema, execute: async (args) => { try { const userService = new UserService(); const wantlist = await userService.wants.getList(args); return JSON.stringify(wantlist); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema for the input parameters of the get_user_wantlist tool, combining username input and query parameters.
    export const UserWantlistParamsSchema = UsernameInputSchema.merge( QueryParamsSchema(['added', 'artist', 'label', 'rating', 'title', 'year'] as const), );
  • Function that directly registers the get_user_wantlist tool by calling server.addTool(getUserWantlistTool).
    export function registerUserWantlistTools(server: FastMCP): void { server.addTool(getUserWantlistTool); server.addTool(addToWantlistTool); server.addTool(editItemInWantlistTool); server.addTool(deleteItemInWantlistTool); }
  • Top-level tool registration function that invokes registerUserWantlistTools, thereby registering the get_user_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