siigo_create_journal
Create accounting journals in Siigo software to record financial transactions and maintain accurate bookkeeping records for Colombian businesses.
Instructions
Create a new accounting journal
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| journal | Yes | Journal data |
Implementation Reference
- src/siigo-client.ts:205-207 (handler)Core implementation of the siigo_create_journal tool: sends POST request to Siigo API /v1/journals endpoint.async createJournal(journal: any): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('POST', '/v1/journals', journal); }
- src/index.ts:1066-1069 (handler)MCP server handler method that calls SiigoClient.createJournal and returns JSON-formatted response.private async handleCreateJournal(args: any) { const result = await this.siigoClient.createJournal(args.journal); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:654-664 (schema)Tool registration including name, description, and input schema requiring a 'journal' object.{ name: 'siigo_create_journal', description: 'Create a new accounting journal', inputSchema: { type: 'object', properties: { journal: { type: 'object', description: 'Journal data' }, }, required: ['journal'], }, },
- src/index.ts:143-144 (registration)Switch case registration dispatching 'siigo_create_journal' tool calls to the handler.case 'siigo_create_journal': return await this.handleCreateJournal(args);