siigo_get_warehouses
Retrieve the complete catalog of warehouses from Siigo's accounting system to access inventory locations and storage facility information.
Instructions
Get warehouses catalog
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/siigo-client.ts:230-232 (handler)Core handler function that executes the tool logic by making an authenticated GET request to the Siigo API endpoint '/v1/warehouses'.async getWarehouses(): Promise<SiigoApiResponse<any>> { return this.makeRequest<any>('GET', '/v1/warehouses'); }
- src/index.ts:1096-1099 (handler)MCP server handler method that invokes the SiigoClient.getWarehouses() and formats the result as MCP content response.private async handleGetWarehouses(args: any) { const result = await this.siigoClient.getWarehouses(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/index.ts:157-158 (registration)Dispatch/registration case in the CallToolRequest handler switch statement that routes to the tool handler.case 'siigo_get_warehouses': return await this.handleGetWarehouses(args);
- src/index.ts:702-706 (registration)Tool registration in the ListTools response: defines name, description, and empty input schema.{ name: 'siigo_get_warehouses', description: 'Get warehouses catalog', inputSchema: { type: 'object', properties: {} }, },
- src/types.ts:145-161 (schema)Type definition for the API response structure used by getWarehouses().export interface SiigoApiResponse<T> { data?: T; pagination?: { page: number; page_size: number; total_results: number; }; results?: T[]; _links?: any; errors?: Array<{ Code: string; Message: string; Params?: string[]; Detail?: string; }>; Status?: number; }