siigo_get_account_groups
Retrieve the account groups catalog from Siigo accounting software to organize and categorize financial accounts for reporting and analysis.
Instructions
Get account groups catalog
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1106-1109 (handler)MCP tool handler that executes the tool logic by calling SiigoClient.getAccountGroups() and returning the result as formatted JSON text content.
private async handleGetAccountGroups(args: any) { const result = await this.siigoClient.getAccountGroups(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } - src/siigo-client.ts:238-240 (helper)Core implementation in SiigoClient that performs the authenticated GET request to the Siigo API endpoint /v1/account-groups.
async getAccountGroups(): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/account-groups'); } - src/index.ts:712-716 (registration)Tool registration in the getTools() method, defining the tool name, description, and input schema (no required parameters).
{ name: 'siigo_get_account_groups', description: 'Get account groups catalog', inputSchema: { type: 'object', properties: {} }, }, - src/index.ts:715-715 (schema)Input schema definition for the tool, specifying an empty object (no input parameters needed).
inputSchema: { type: 'object', properties: {} }, - src/index.ts:161-162 (handler)Dispatch case in the CallToolRequest handler switch statement that routes to the specific tool handler.
case 'siigo_get_account_groups': return await this.handleGetAccountGroups(args);