siigo_get_journal
Retrieve a specific journal entry by its ID from the Siigo accounting system to access detailed transaction records and financial data.
Instructions
Get a specific journal by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Journal ID |
Implementation Reference
- src/index.ts:1061-1064 (handler)MCP server handler for 'siigo_get_journal' tool. Extracts ID from args, calls SiigoClient.getJournal, and returns the result as JSON text content.private async handleGetJournal(args: any) { const result = await this.siigoClient.getJournal(args.id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/siigo-client.ts:201-203 (handler)Core implementation of journal retrieval. Makes an authenticated GET request to Siigo API /v1/journals/{id} using the shared makeRequest method.async getJournal(id: string): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', `/v1/journals/${id}`); }
- src/index.ts:643-653 (registration)Tool registration in getTools() array, including name, description, and input schema for validation.{ name: 'siigo_get_journal', description: 'Get a specific journal by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Journal ID' }, }, required: ['id'], }, },
- src/index.ts:646-652 (schema)Input schema definition requiring a 'id' string parameter for the tool.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Journal ID' }, }, required: ['id'], },
- src/index.ts:141-142 (handler)Switch case routing in CallToolRequestSchema handler that dispatches to handleGetJournal.case 'siigo_get_journal': return await this.handleGetJournal(args);