Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

delete_marketplace_listing

Remove a marketplace listing from Discogs by specifying the listing ID, enabling users to manage their music catalog listings directly through the Discogs API.

Instructions

Delete a marketplace listing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
listing_idYes

Implementation Reference

  • The tool object definition including the 'execute' handler function that implements the core logic for deleting a marketplace listing by calling MarketplaceService.deleteListing.
    export const deleteMarketplaceListingTool: Tool<FastMCPSessionAuth, typeof ListingIdParamSchema> = { name: 'delete_marketplace_listing', description: 'Delete a marketplace listing', parameters: ListingIdParamSchema, execute: async (args) => { try { const marketplaceService = new MarketplaceService(); await marketplaceService.deleteListing(args); return 'Listing deleted successfully'; } catch (error) { throw formatDiscogsError(error); } }, };
  • Zod input parameters schema for the delete_marketplace_listing tool, requiring a listing_id integer.
    export const ListingIdParamSchema = z.object({ listing_id: z.number().int(), });
  • Registration of the deleteMarketplaceListingTool in the marketplace tools registration function.
    server.addTool(deleteMarketplaceListingTool);
  • Top-level registration call that includes the marketplace tools (invoking registerMarketplaceTools which registers delete_marketplace_listing).
    registerMarketplaceTools(server);

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