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
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | Yes |
Implementation Reference
- src/tools/marketplace.ts:65-79 (handler)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); } }, };
- src/types/marketplace.ts:160-162 (schema)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(), });
- src/tools/marketplace.ts:245-245 (registration)Registration of the deleteMarketplaceListingTool in the marketplace tools registration function.server.addTool(deleteMarketplaceListingTool);
- src/tools/index.ts:17-17 (registration)Top-level registration call that includes the marketplace tools (invoking registerMarketplaceTools which registers delete_marketplace_listing).registerMarketplaceTools(server);