Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

create_marketplace_order_message

Add messages to Discogs marketplace order logs to document communication, update status, and maintain transaction records for music sales.

Instructions

Adds a new message to the order's message log

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes
messageNo
statusNo

Implementation Reference

  • The MCP tool definition including the execute handler function that creates an order message using MarketplaceService.
    export const createMarketplaceOrderMessageTool: Tool<
      FastMCPSessionAuth,
      typeof OrderCreateMessageParamsSchema
    > = {
      name: 'create_marketplace_order_message',
      description: `Adds a new message to the order's message log`,
      parameters: OrderCreateMessageParamsSchema,
      execute: async (args) => {
        try {
          const marketplaceService = new MarketplaceService();
          const message = await marketplaceService.createOrderMessage(args);
    
          return JSON.stringify(message);
        } catch (error) {
          throw formatDiscogsError(error);
        }
      },
    };
  • Zod schema defining the input parameters for the create_marketplace_order_message tool, extending OrderIdParamSchema with optional message and status.
    export const OrderCreateMessageParamsSchema = OrderIdParamSchema.extend({
      message: z.string().optional(),
      status: OrderStatusSchema.optional(),
    });
  • Registers the createMarketplaceOrderMessageTool with the FastMCP server instance.
    server.addTool(createMarketplaceOrderMessageTool);
  • Calls registerMarketplaceTools which includes the marketplace order message tool registration.
    registerMarketplaceTools(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