Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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) }] }; }
  • 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: {} }, },
  • Input schema definition: empty object, no parameters required.
    inputSchema: { type: 'object', properties: {} },
  • Dispatch case in the main CallToolRequestSchema handler switch statement.
    case 'siigo_get_warehouses': return await this.handleGetWarehouses(args);

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