siigo_get_warehouses
Retrieve the complete list of warehouses from Siigo's accounting system to manage inventory locations and stock tracking.
Instructions
Get warehouses catalog
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1096-1099 (handler)MCP server handler for siigo_get_warehouses tool: calls SiigoClient.getWarehouses() and formats the response as text content.private async handleGetWarehouses(args: any) { const result = await this.siigoClient.getWarehouses(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/siigo-client.ts:230-232 (helper)SiigoClient method implementing the core logic: authenticated GET request to Siigo API endpoint /v1/warehouses.async getWarehouses(): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/warehouses'); }
- src/index.ts:702-706 (registration)Tool registration in getTools(): defines name, description, and input schema (no required params).{ name: 'siigo_get_warehouses', description: 'Get warehouses catalog', inputSchema: { type: 'object', properties: {} }, },
- src/index.ts:705-705 (schema)Input schema definition: empty object, no parameters required.inputSchema: { type: 'object', properties: {} },
- src/index.ts:157-158 (handler)Dispatch case in the main CallToolRequestSchema handler switch statement.case 'siigo_get_warehouses': return await this.handleGetWarehouses(args);