get_item_stats
Retrieve comprehensive inventory statistics for consignment and retail business operations, including stock levels, sales data, and vendor analytics.
Instructions
Get overall inventory statistics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:131-134 (handler)Core handler implementation in ConsignCloudClient that fetches item statistics from the '/items/stats' API endpoint and returns the data.async getItemStats(): Promise<any> { const response = await this.client.get('/items/stats'); return response.data; }
- src/server.ts:446-447 (handler)MCP server tool execution handler that dispatches to client.getItemStats() and formats the response as MCP content.case 'get_item_stats': return { content: [{ type: 'text', text: JSON.stringify(await client.getItemStats(), null, 2) }] };
- src/server.ts:90-97 (registration)Tool registration definition including name, description, and empty input schema in the createTools() array.{ name: 'get_item_stats', description: 'Get overall inventory statistics', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:90-97 (schema)Input schema definition for the get_item_stats tool (empty object, no parameters required).{ name: 'get_item_stats', description: 'Get overall inventory statistics', inputSchema: { type: 'object', properties: {}, }, },