siigo_get_cost_centers
Retrieve the complete 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 implementation: sends authenticated GET request to Siigo API endpoint '/v1/cost-centers'.async getCostCenters(): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/cost-centers'); }
- src/index.ts:1086-1089 (handler)MCP tool handler: calls SiigoClient.getCostCenters() and formats the response as JSON text 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 entry 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 switch statement for routing tool calls to the handler.case 'siigo_get_cost_centers': return await this.handleGetCostCenters(args);