Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

edit_user_profile

Update a user's profile details on Discogs, including name, location, currency, homepage, and bio, via the MCP server for streamlined profile management.

Instructions

Edit a user's profile data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
curr_abbrNo
home_pageNo
locationNo
nameNo
profileNo
usernameYes

Implementation Reference

  • Full definition of the 'edit_user_profile' tool, including name, description, input schema reference, and the execute handler that uses UserService to edit the profile.
    export const editUserProfileTool: Tool<FastMCPSessionAuth, typeof UserProfileEditInputSchema> = { name: 'edit_user_profile', description: `Edit a user's profile data`, parameters: UserProfileEditInputSchema, execute: async (args) => { try { const userService = new UserService(); const profile = await userService.profile.edit(args); return JSON.stringify(profile); } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod input schema for the edit_user_profile tool, defining optional fields like name, home_page, location, profile, and currency.
    export const UserProfileEditInputSchema = z.object({ ...UsernameInputSchema.shape, name: z.string().optional(), home_page: urlOrEmptySchema().optional(), location: z.string().optional(), profile: z.string().optional(), curr_abbr: CurrencyCodeSchema.optional(), });
  • Direct registration of the editUserProfileTool by adding it to the FastMCP server instance.
    server.addTool(editUserProfileTool);
  • Invocation of registerUserIdentityTools which includes adding the edit_user_profile tool, as part of overall tools registration.
    registerUserIdentityTools(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