Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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")
  • 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"},

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/dsfaccini/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server