get_warehouses
Retrieve warehouse locations for inventory management in Siigo. Use warehouse IDs when creating products or invoices to track inventory accurately.
Instructions
Get all configured warehouses/locations.
Returns a list of warehouses for inventory management. Use warehouse IDs when creating products or invoices with inventory.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/siigo_mcp/tools/reference.py:49-56 (handler)The main handler function for the 'get_warehouses' tool. It is decorated with @mcp.tool and fetches the list of warehouses from the Siigo API endpoint '/warehouses'.@mcp.tool async def get_warehouses(ctx: Context) -> list[dict[str, Any]]: """Get all configured warehouses/locations. Returns a list of warehouses for inventory management. Use warehouse IDs when creating products or invoices with inventory. """ return await get_client(ctx).get("/warehouses")
- src/siigo_mcp/tools/discovery.py:76-76 (registration)Registration of the 'get_warehouses' tool function in the lazy-loading tool functions dictionary within _get_tool_functions()."get_warehouses": reference.get_warehouses,
- Tool discovery metadata entry in TOOL_INDEX, providing name, category, and summary for 'get_warehouses'.{"name": "get_warehouses", "category": "reference", "summary": "Get all warehouse locations"},