Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

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
NameRequiredDescriptionDefault
order_idYes

Implementation Reference

  • 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); } }, };
  • Zod schema defining the input parameters for the tool: requires 'order_id' as a number.
    export const OrderIdParamSchema = z.object({ order_id: z.number(), });
  • Registers the getMarketplaceOrderTool with the FastMCP server inside registerMarketplaceTools function.
    server.addTool(getMarketplaceOrderTool);
  • Top-level call to register all marketplace tools, including get_marketplace_order, with the server.
    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