siigo_get_journals
Retrieve accounting journal entries from Siigo software to track financial transactions and maintain accurate records.
Instructions
Get list of accounting journals from Siigo
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number | |
| page_size | No | Number of items per page |
Implementation Reference
- src/siigo-client.ts:197-199 (handler)Core implementation of the siigo_get_journals tool: performs a GET request to Siigo API endpoint '/v1/journals' with optional pagination parameters.async getJournals(params?: { page?: number; page_size?: number }): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/journals', undefined, params); }
- src/index.ts:1056-1058 (handler)MCP tool handler that invokes SiigoClient.getJournals and returns the JSON-formatted result as MCP content.private async handleGetJournals(args: any) { const result = await this.siigoClient.getJournals(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
- src/index.ts:139-140 (handler)Switch case in the CallToolRequestSchema handler that dispatches to handleGetJournals for siigo_get_journals.case 'siigo_get_journals': return await this.handleGetJournals(args);
- src/index.ts:632-642 (registration)Tool registration in getTools(): defines name, description, and input schema for siigo_get_journals.{ name: 'siigo_get_journals', description: 'Get list of accounting journals from Siigo', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'Page number' }, page_size: { type: 'number', description: 'Number of items per page' }, }, }, },