Skip to main content
Glama

siigo_get_account_groups

Retrieve the account groups catalog from Siigo accounting software to organize and categorize financial accounts for Colombian businesses.

Instructions

Get account groups catalog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of the tool: makes authenticated GET request to Siigo API endpoint /v1/account-groups to retrieve account groups.
    async getAccountGroups(): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/account-groups'); }
  • MCP server wrapper handler that calls the SiigoClient method and formats the response as MCP content.
    private async handleGetAccountGroups(args: any) { const result = await this.siigoClient.getAccountGroups(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • src/index.ts:712-716 (registration)
    Tool registration in the list returned by ListToolsRequestHandler, including name, description, and empty input schema.
    { name: 'siigo_get_account_groups', description: 'Get account groups catalog', inputSchema: { type: 'object', properties: {} }, },
  • Dispatch case in CallToolRequestHandler switch that routes the tool call to the specific handler.
    case 'siigo_get_account_groups': return await this.handleGetAccountGroups(args);
  • Generic helper method used by all API calls, handles authentication and makes the axios request.
    private async makeRequest<T>(method: string, endpoint: string, data?: any, params?: any): Promise<SiigoApiResponse<T>> { await this.authenticate(); try { const response: AxiosResponse<SiigoApiResponse<T>> = await this.httpClient.request({ method, url: endpoint, data, params, }); return response.data; } catch (error: any) { if (error.response?.data) { return error.response.data; } throw new Error(`API request failed: ${error.message}`); } }

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