Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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'); }
  • 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: {} }, },
  • 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; }

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