Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_user_contributions

Retrieve a user's contributions on Discogs by specifying their username, with options to sort by criteria like label, artist, or year, and control pagination for organized results.

Instructions

Retrieve a user's contributions by username

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
per_pageNo
sortNo
sort_orderNo
usernameYes

Implementation Reference

  • The MCP tool handler (execute function) for 'get_user_contributions', which uses UserContributionsService to fetch and return the user's contributions.
    export const getUserContributionsTool: Tool<FastMCPSessionAuth, typeof ContributionsParamsSchema> = { name: 'get_user_contributions', description: `Retrieve a user's contributions by username`, parameters: ContributionsParamsSchema, execute: async (args) => { try { const userContributionsService = new UserContributionsService(); const contributions = await userContributionsService.get(args); return JSON.stringify(contributions); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema for input parameters of the get_user_contributions tool, combining username input with query filters.
    export const ContributionsParamsSchema = UsernameInputSchema.merge( QueryParamsSchema([ 'label', 'artist', 'title', 'catno', 'format', 'rating', 'year', 'added', ] as const), );
  • Registration function that adds the getUserContributionsTool (among others) to the FastMCP server.
    export function registerUserIdentityTools(server: FastMCP): void { server.addTool(getUserIdentityTool); server.addTool(getUserProfileTool); server.addTool(editUserProfileTool); server.addTool(getUserSubmissionsTool); server.addTool(getUserContributionsTool); }
  • Top-level tool registration function that calls registerUserIdentityTools, indirectly registering get_user_contributions.
    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