Skip to main content
Glama
cswkim

Discogs MCP Server

by cswkim

get_inventory_exports

Retrieve a detailed list of recent inventory exports from your Discogs collection to manage and track your music catalog data efficiently.

Instructions

Get a list of all recent exports of your inventory

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The getInventoryExportsTool object defines the tool 'get_inventory_exports'. The 'execute' function is the handler that instantiates InventoryService and calls getExports() to fetch the list of inventory exports, returning them as JSON string.
    export const getInventoryExportsTool: Tool<FastMCPSessionAuth, ToolParameters> = { name: 'get_inventory_exports', description: 'Get a list of all recent exports of your inventory', parameters: z.object({}), execute: async () => { try { const inventoryService = new InventoryService(); const exports = await inventoryService.getExports(); return JSON.stringify(exports); } catch (error) { throw formatDiscogsError(error); } }, };
  • Input parameters schema: an empty object (z.object({})), indicating no input parameters are required.
    parameters: z.object({}),
  • Direct registration of the getInventoryExportsTool via server.addTool() within the registerInventoryExportTool function.
    server.addTool(getInventoryExportsTool);
  • The registerInventoryExportTool function is called from the central registerTools function, indirectly registering the get_inventory_exports tool.
    registerInventoryExportTool(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