get_account_stats
Retrieve account statistics including balance, items, and sales data for consignment business management and analytics.
Instructions
Get statistics for a specific account (balance, items, sales)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Account ID |
Implementation Reference
- src/server.ts:194-204 (schema)Input schema for get_account_stats tool requiring account ID{ name: 'get_account_stats', description: 'Get statistics for a specific account (balance, items, sales)', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Account ID' }, }, required: ['id'], }, },
- src/server.ts:418-420 (registration)Registration of all tools including get_account_stats via listTools handler using createTools()server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools, }));
- src/server.ts:473-474 (handler)MCP tool handler for get_account_stats that delegates to client.getAccountStats(id)case 'get_account_stats': return { content: [{ type: 'text', text: JSON.stringify(await client.getAccountStats((args as any).id), null, 2) }] };
- src/client.ts:232-235 (helper)Client method implementation that calls the ConsignCloud API endpoint /accounts/{id}/stats to fetch account statisticsasync getAccountStats(id: string): Promise<any> { const response = await this.client.get(`/accounts/${id}/stats`); return response.data; }