Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_user_lists

Retrieve a user's lists from Discogs by specifying the username, page, and per-page parameters. Useful for managing and organizing Discogs collections efficiently.

Instructions

Get a user's lists

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo
sortNo
sort_orderNo
usernameYes

Implementation Reference

  • Defines the 'get_user_lists' MCP tool, including name, description, input schema reference, and the execute handler function that uses UserService to fetch and return the user's 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); } }, };
  • Zod schema defining the input parameters for the get_user_lists tool (username and optional query parameters like page, per_page).
    export const UserListsParamsSchema = UsernameInputSchema.merge(QueryParamsSchema());
  • Registration function that adds the get_user_lists tool (and get_list tool) to the FastMCP server.
    export function registerUserListsTools(server: FastMCP): void { server.addTool(getUserListsTool); server.addTool(getListTool); }
  • Top-level call to register user lists tools, including get_user_lists, during overall tools registration.
    registerUserListsTools(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