Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

edit_user_collection_custom_field_value

Modify custom field values for specific releases in a user's Discogs collection by providing username, folder ID, release details, and field data.

Instructions

Edit a custom field value for a release in a user's collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
field_idYes
folder_idYes
instance_idYes
release_idYes
usernameYes
valueYes

Implementation Reference

  • The tool handler: defines the tool object with name, description, parameters schema, and execute function that instantiates UserService and calls editCustomFieldValue on it.
    export const editUserCollectionCustomFieldValueTool: Tool< FastMCPSessionAuth, typeof UserCollectionCustomFieldEditParamsSchema > = { name: 'edit_user_collection_custom_field_value', description: `Edit a custom field value for a release in a user's collection`, parameters: UserCollectionCustomFieldEditParamsSchema, execute: async (args) => { try { const userService = new UserService(); await userService.collection.editCustomFieldValue(args); return 'Custom field value edited successfully'; } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod schema for the input parameters of the tool, merging username, folder_id, and specific fields like value, release_id, instance_id, field_id.
    export const UserCollectionCustomFieldEditParamsSchema = UsernameInputSchema.merge( FolderIdParamSchema().extend({ value: z.string(), release_id: z.union([z.number(), z.string()]), instance_id: z.union([z.number(), z.string()]), field_id: z.number(), }), );
  • Registers the tool with the FastMCP server instance.
    server.addTool(editUserCollectionCustomFieldValueTool);

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