Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

delete_release_rating

Remove a user's rating from a Discogs release. Provide the username and release ID to delete the rating.

Instructions

Deletes the release's rating for a given user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYes
release_idYes

Implementation Reference

  • The service method that executes the DELETE request to delete a release rating by user. It calls `this.request<void>(/${release_id}/rating/${username}, { method: 'DELETE' })` and handles errors.
    async deleteRatingByUser({ username, release_id }: ReleaseRatingParams): Promise<void> {
      try {
        await this.request<void>(`/${release_id}/rating/${username}`, {
          method: 'DELETE',
        });
      } catch (error) {
        if (isDiscogsError(error)) {
          throw error;
        }
    
        throw new Error(`Failed to delete release rating: ${String(error)}`, { cause: error });
      }
    }
  • The tool definition for delete_release_rating, which instantiates ReleaseService and calls deleteRatingByUser(args).
    /**
     * MCP tool for deleting a release rating
     */
    export const deleteReleaseRatingTool: Tool<FastMCPSessionAuth, typeof ReleaseRatingParamsSchema> = {
      name: 'delete_release_rating',
      description: `Deletes the release's rating for a given user`,
      parameters: ReleaseRatingParamsSchema,
      execute: async (args) => {
        try {
          const releaseService = new ReleaseService();
          await releaseService.deleteRatingByUser(args);
    
          return 'Release rating deleted successfully';
        } catch (error) {
          throw formatDiscogsError(error);
        }
      },
  • ReleaseRatingParamsSchema = UsernameInputSchema.merge(ReleaseIdParamSchema) — defines the input schema (release_id + username) for the tool.
    export const ReleaseRatingParamsSchema = UsernameInputSchema.merge(ReleaseIdParamSchema);
  • ReleaseIdParamSchema defines the release_id number parameter used in the schema.
    export const ReleaseIdParamSchema = z.object({
      release_id: z.number().min(1, 'The release_id must be non-zero'),
    });
  • registerDatabaseTools registers deleteReleaseRatingTool via server.addTool().
    export function registerDatabaseTools(server: FastMCP): void {
      server.addTool(getReleaseTool);
      server.addTool(getReleaseRatingTool);
      server.addTool(editReleaseRatingTool);
      server.addTool(deleteReleaseRatingTool);
      server.addTool(getReleaseCommunityRatingTool);
      server.addTool(getMasterReleaseTool);
      server.addTool(getMasterReleaseVersionsTool);
      server.addTool(getArtistTool);
      server.addTool(getArtistReleasesTool);
      server.addTool(getLabelTool);
      server.addTool(getLabelReleasesTool);
      server.addTool(searchTool);
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description carries full burden. It only says 'Deletes' without detailing side effects (e.g., permanence), authorization needs, or rate limits. The description adds minimal behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short sentence, concise but lacking substance. It is front-loaded with the action but does not provide enough information to be truly helpful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple delete operation with two parameters, the description is incomplete. It should clarify parameter meanings and behavior. No output schema exists, but description does not compensate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, requiring the description to explain parameters. However, it merely mentions 'for a given user' but does not clarify that 'username' identifies the user or that 'release_id' is the release's ID.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Deletes', the resource 'release's rating', and the context 'for a given user'. It distinguishes from sibling tools like 'edit_release_rating' (modify) and 'rate_release_in_user_collection' (create/update).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives such as 'edit_release_rating'. The description lacks any context about prerequisites or scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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