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
| Name | Required | Description | Default |
|---|---|---|---|
| curr_abbr | No | ||
| home_page | No | ||
| location | No | ||
| name | No | ||
| profile | No | ||
| username | Yes |
Implementation Reference
- src/tools/userIdentity.ts:91-105 (handler)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); } }, };
- src/types/user/profile.ts:54-61 (schema)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(), });
- src/tools/userIdentity.ts:110-110 (registration)Direct registration of the editUserProfileTool by adding it to the FastMCP server instance.server.addTool(editUserProfileTool);
- src/tools/index.ts:19-19 (registration)Invocation of registerUserIdentityTools which includes adding the edit_user_profile tool, as part of overall tools registration.registerUserIdentityTools(server);