Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

delete_marketplace_listing

Remove a marketplace listing from Discogs by specifying its listing ID. This tool helps users manage their Discogs music catalog by deleting unwanted listings.

Instructions

Delete a marketplace listing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
listing_idYes

Implementation Reference

  • The main handler implementation for the 'delete_marketplace_listing' tool. It creates a MarketplaceService instance and calls deleteListing(args) to perform the deletion, returning a success message or formatted error.
    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 schema defining the input parameters for the tool: an object with 'listing_id' as a positive integer.
    export const ListingIdParamSchema = z.object({ listing_id: z.number().int(), });
  • Registers the deleteMarketplaceListingTool with the FastMCP server instance inside the registerMarketplaceTools function.
    server.addTool(deleteMarketplaceListingTool);
  • Calls registerMarketplaceTools as part of the overall tools registration in tools/index.ts.
    registerMarketplaceTools(server);
  • src/index.ts:32-32 (registration)
    Top-level registration call that includes marketplace tools via registerTools.
    registerTools(server);

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