bos_accounting_summary
Retrieve a summary of sales, purchases, expenses, and journal entries to quickly assess financial performance.
Instructions
Get sales, purchases, expenses, and journal entry summary
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/erp.ts:40-43 (handler)The tool definition for 'bos_accounting_summary' with an empty schema and a handler that calls client.get('/mcp/erp/accounting/summary').
name: 'bos_accounting_summary', description: 'Get sales, purchases, expenses, and journal entry summary', schema: {}, handler: async (_, client) => client.get('/mcp/erp/accounting/summary'), - src/tools/erp.ts:39-44 (schema)The schema for 'bos_accounting_summary' is an empty object (no input parameters required).
{ name: 'bos_accounting_summary', description: 'Get sales, purchases, expenses, and journal entry summary', schema: {}, handler: async (_, client) => client.get('/mcp/erp/accounting/summary'), }, - src/index.ts:44-44 (registration)The erpTools array (which contains bos_accounting_summary) is spread into allTools for registration.
...erpTools, - src/index.ts:55-76 (registration)The registration loop that iterates over all tools (including bos_accounting_summary) and registers them with the McpServer via server.tool().
for (const tool of allTools) { const zodSchema = toZodSchema(tool.schema); server.tool( tool.name, tool.description, zodSchema.shape, async (args: any) => { try { const result = await tool.handler(args, client); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; } catch (error: any) { return { content: [{ type: 'text' as const, text: JSON.stringify({ error: error.message || 'Unknown error' }) }], isError: true, }; } } ); } - src/client/index.ts:90-92 (helper)The BosApiClient.get() method used by the handler to call GET /mcp/erp/accounting/summary on the backend API.
async get<T>(path: string, params?: Record<string, any>): Promise<T> { return this.request<T>('GET', path, undefined, params); }