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
| Name | Required | Description | Default |
|---|---|---|---|
| listing_id | Yes |
Implementation Reference
- src/tools/marketplace.ts:65-79 (handler)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); } }, };
- src/types/marketplace.ts:160-162 (schema)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(), });
- src/tools/marketplace.ts:245-245 (registration)Registers the deleteMarketplaceListingTool with the FastMCP server instance inside the registerMarketplaceTools function.server.addTool(deleteMarketplaceListingTool);
- src/tools/index.ts:17-17 (registration)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);