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
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | ||
| release_id | Yes |
Implementation Reference
- src/tools/database.ts:27-36 (handler)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); } },
- src/types/release.ts:178-178 (schema)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);
- src/tools/database.ts:257-257 (registration)Registration of the deleteReleaseRatingTool with the FastMCP server in the registerDatabaseTools function.server.addTool(deleteReleaseRatingTool);