get_marketplace_order
Retrieve marketplace order details from the Discogs API by specifying the order ID. Use this tool to access and manage your Discogs collection data efficiently.
Instructions
Get a marketplace order
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes |
Implementation Reference
- src/tools/marketplace.ts:103-117 (handler)The primary handler for the 'get_marketplace_order' tool. It instantiates MarketplaceService and calls getOrder(args), returning the JSON-stringified result or a formatted error.export const getMarketplaceOrderTool: Tool<FastMCPSessionAuth, typeof OrderIdParamSchema> = { name: 'get_marketplace_order', description: 'Get a marketplace order', parameters: OrderIdParamSchema, execute: async (args) => { try { const marketplaceService = new MarketplaceService(); const order = await marketplaceService.getOrder(args); return JSON.stringify(order); } catch (error) { throw formatDiscogsError(error); } }, };
- src/types/marketplace.ts:192-194 (schema)Zod schema defining the input parameters for the tool: requires 'order_id' as a number.export const OrderIdParamSchema = z.object({ order_id: z.number(), });
- src/tools/marketplace.ts:246-246 (registration)Registers the getMarketplaceOrderTool with the FastMCP server inside registerMarketplaceTools function.server.addTool(getMarketplaceOrderTool);
- src/tools/index.ts:17-17 (registration)Top-level call to register all marketplace tools, including get_marketplace_order, with the server.registerMarketplaceTools(server);