Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

delete_release_rating

Remove a user's rating from a Discogs music release to update their collection preferences.

Instructions

Deletes the release's rating for a given user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
release_idYes

Implementation Reference

  • The execute handler function for the 'delete_release_rating' tool. It creates a ReleaseService instance and calls deleteRatingByUser(args) to perform the deletion, returning a success message or formatted error.
    execute: async (args) => { try { const releaseService = new ReleaseService(); await releaseService.deleteRatingByUser(args); return 'Release rating deleted successfully'; } catch (error) { throw formatDiscogsError(error); } },
  • Zod schema defining the input parameters for the delete_release_rating tool: requires username and release_id (merged from UsernameInputSchema and ReleaseIdParamSchema).
    export const ReleaseRatingParamsSchema = UsernameInputSchema.merge(ReleaseIdParamSchema);
  • Registration of the deleteReleaseRatingTool with the FastMCP server in the registerDatabaseTools function.
    server.addTool(deleteReleaseRatingTool);

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