Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_user_lists

Retrieve a user's Discogs lists by username to view and manage their music collections, with options to paginate results and sort order.

Instructions

Get a user's lists

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
pageNo
per_pageNo
sortNo
sort_orderNo

Implementation Reference

  • The handler implementation for the 'get_user_lists' tool, which creates a UserService instance and calls userService.lists.get(args) to fetch the lists.
    export const getUserListsTool: Tool<FastMCPSessionAuth, typeof UserListsParamsSchema> = { name: 'get_user_lists', description: `Get a user's lists`, parameters: UserListsParamsSchema, execute: async (args) => { try { const userService = new UserService(); const lists = await userService.lists.get(args); return JSON.stringify(lists); } catch (error) { throw formatDiscogsError(error); } }, };
  • Input schema (UserListsParamsSchema) used by the get_user_lists tool for parameter validation.
    export const UserListsParamsSchema = UsernameInputSchema.merge(QueryParamsSchema());
  • Registration function that adds the getUserListsTool to the MCP server.
    export function registerUserListsTools(server: FastMCP): void { server.addTool(getUserListsTool); server.addTool(getListTool); }
  • Top-level registration where registerUserListsTools is called to register the tool.
    export function registerTools(server: FastMCP): void { registerDatabaseTools(server); registerMarketplaceTools(server); registerInventoryExportTool(server); registerUserIdentityTools(server); registerUserCollectionTools(server); registerUserWantlistTools(server); registerUserListsTools(server); registerMediaTools(server); }

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