Skip to main content
Glama

siigo_get_cost_centers

Retrieve the catalog of cost centers from Siigo accounting software to organize and track business expenses by department or project.

Instructions

Get cost centers catalog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler implementing the tool logic: makes authenticated GET request to Siigo API /v1/cost-centers.
    async getCostCenters(): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/cost-centers'); }
  • MCP server wrapper handler that calls SiigoClient.getCostCenters() and formats response as MCP content.
    private async handleGetCostCenters(args: any) { const result = await this.siigoClient.getCostCenters(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • src/index.ts:692-696 (registration)
    Tool registration in getTools(): defines name, description, and empty input schema.
    { name: 'siigo_get_cost_centers', description: 'Get cost centers catalog', inputSchema: { type: 'object', properties: {} }, },
  • src/index.ts:153-154 (registration)
    Dispatch case in main CallToolRequest handler switch statement.
    case 'siigo_get_cost_centers': return await this.handleGetCostCenters(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