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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/siigo-client.ts:222-224 (handler)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'); }
- src/index.ts:1086-1089 (handler)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);