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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/inventoryExport.ts:50-64 (handler)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); } }, };
- src/tools/inventoryExport.ts:53-53 (schema)Input parameters schema: an empty object (z.object({})), indicating no input parameters are required.parameters: z.object({}),
- src/tools/inventoryExport.ts:87-87 (registration)Direct registration of the getInventoryExportsTool via server.addTool() within the registerInventoryExportTool function.server.addTool(getInventoryExportsTool);
- src/tools/index.ts:18-18 (registration)The registerInventoryExportTool function is called from the central registerTools function, indirectly registering the get_inventory_exports tool.registerInventoryExportTool(server);