get_item_stats
Retrieve comprehensive inventory statistics for consignment and retail 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)The core implementation of the getItemStats function in the ConsignCloudClient class, which fetches item statistics via an API call to '/items/stats'.async getItemStats(): Promise<any> { const response = await this.client.get('/items/stats'); return response.data; }
- src/server.ts:446-447 (handler)The MCP server dispatch handler for the 'get_item_stats' tool, which calls client.getItemStats() and returns the JSON-formatted result.case 'get_item_stats': return { content: [{ type: 'text', text: JSON.stringify(await client.getItemStats(), null, 2) }] };
- src/server.ts:90-97 (registration)The tool registration entry in createTools(), defining the name, description, and empty input schema for 'get_item_stats'.{ name: 'get_item_stats', description: 'Get overall inventory statistics', inputSchema: { type: 'object', properties: {}, }, },
- src/server.ts:93-96 (schema)The input schema definition for the get_item_stats tool (no required parameters).inputSchema: { type: 'object', properties: {}, },