Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

move_release_in_user_collection

Move a music release from one folder to another in your Discogs collection to reorganize your catalog.

Instructions

Move a release in a user's collection to another folder

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
folder_idYes
release_idYes
instance_idYes
destination_folder_idYes

Implementation Reference

  • Defines the MCP tool 'move_release_in_user_collection' including its handler function that uses UserService to move the release.
    export const moveReleaseInUserCollectionTool: Tool< FastMCPSessionAuth, typeof UserCollectionMoveReleaseParamsSchema > = { name: 'move_release_in_user_collection', description: `Move a release in a user's collection to another folder`, parameters: UserCollectionMoveReleaseParamsSchema, execute: async (args) => { try { const userService = new UserService(); await userService.collection.moveRelease(args); return 'Release moved successfully'; } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema defining the input parameters for the move_release_in_user_collection tool, extending the deleted params with destination_folder_id.
    export const UserCollectionMoveReleaseParamsSchema = UserCollectionReleaseDeletedParamsSchema.extend({ destination_folder_id: z.number(), });
  • Registers the moveReleaseInUserCollectionTool with the FastMCP server.
    server.addTool(moveReleaseInUserCollectionTool);

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