Skip to main content
Glama

siigo_get_trial_balance_by_third

Generate trial balance reports filtered by third parties in Siigo accounting software. Specify date ranges, account codes, and tax difference inclusion to analyze financial data by customer.

Instructions

Get trial balance by third party report

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_endNoEnding account code
account_startNoStarting account code
customerNoCustomer filter
includes_tax_differenceYesInclude tax differences
month_endYesEnding month (1-13)
month_startYesStarting month (1-13)
yearYesYear

Implementation Reference

  • MCP tool handler function that delegates to SiigoClient.getTrialBalanceByThird and formats the response as JSON text.
    private async handleGetTrialBalanceByThird(args: any) { const result = await this.siigoClient.getTrialBalanceByThird(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema defining parameters for the trial balance by third party report.
    inputSchema: { type: 'object', properties: { account_start: { type: 'string', description: 'Starting account code' }, account_end: { type: 'string', description: 'Ending account code' }, year: { type: 'number', description: 'Year' }, month_start: { type: 'number', description: 'Starting month (1-13)' }, month_end: { type: 'number', description: 'Ending month (1-13)' }, includes_tax_difference: { type: 'boolean', description: 'Include tax differences' }, customer: { type: 'object', description: 'Customer filter' }, }, required: ['year', 'month_start', 'month_end', 'includes_tax_difference'], },
  • src/index.ts:750-766 (registration)
    Registration of the tool in the getTools() method, including name, description, and input schema.
    { name: 'siigo_get_trial_balance_by_third', description: 'Get trial balance by third party report', inputSchema: { type: 'object', properties: { account_start: { type: 'string', description: 'Starting account code' }, account_end: { type: 'string', description: 'Ending account code' }, year: { type: 'number', description: 'Year' }, month_start: { type: 'number', description: 'Starting month (1-13)' }, month_end: { type: 'number', description: 'Ending month (1-13)' }, includes_tax_difference: { type: 'boolean', description: 'Include tax differences' }, customer: { type: 'object', description: 'Customer filter' }, }, required: ['year', 'month_start', 'month_end', 'includes_tax_difference'], }, },
  • src/index.ts:173-174 (registration)
    Dispatcher case in the CallToolRequestSchema handler that routes to the tool's handler function.
    case 'siigo_get_trial_balance_by_third': return await this.handleGetTrialBalanceByThird(args);
  • SiigoClient helper method that performs the actual API request to the Siigo /v1/trial-balance-by-third endpoint.
    async getTrialBalanceByThird(params: { account_start?: string; account_end?: string; year: number; month_start: number; month_end: number; includes_tax_difference: boolean; customer?: { identification: string; branch_office?: number; }; }): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/trial-balance-by-third', undefined, params); }

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