Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYesJournal ID

Implementation Reference

  • 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) }] }; }
  • 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'], }, },
  • Input schema definition requiring a 'id' string parameter for the tool.
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Journal ID' }, }, required: ['id'], },
  • Switch case routing in CallToolRequestSchema handler that dispatches to handleGetJournal.
    case 'siigo_get_journal': return await this.handleGetJournal(args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jdlar1/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server