Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

edit_user_collection_folder

Modify folder metadata in your Discogs music collection. Update folder names and manage organization for your music catalog.

Instructions

Edit a folder's metadata. Folders 0 and 1 cannot be renamed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
nameNo
folder_idYes

Implementation Reference

  • The primary handler for the 'edit_user_collection_folder' tool. It instantiates UserService and calls editFolder on the collection submodule with the provided arguments, returning the updated folder as JSON.
    export const editUserCollectionFolderTool: Tool<
      FastMCPSessionAuth,
      typeof UserCollectionFolderEditParamsSchema
    > = {
      name: 'edit_user_collection_folder',
      description: `Edit a folder's metadata. Folders 0 and 1 cannot be renamed.`,
      parameters: UserCollectionFolderEditParamsSchema,
      execute: async (args) => {
        try {
          const userService = new UserService();
          const folder = await userService.collection.editFolder(args);
    
          return JSON.stringify(folder);
        } catch (error) {
          throw formatDiscogsError(error);
        }
      },
    };
  • Zod schema defining the input parameters: username, folder_id (integer >=0), and optional name for the folder.
    export const UserCollectionFolderEditParamsSchema =
      UserCollectionFolderCreateParamsSchema.merge(FolderIdParamSchema());
  • Registration of the tool within the registerUserCollectionTools function.
    server.addTool(editUserCollectionFolderTool);
  • Top-level registration call that includes the user collection tools module.
    registerUserCollectionTools(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