Skip to main content
Glama

get_warehouses

Retrieve all configured 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 @mcp.tool decorated handler function that fetches all configured warehouses from the Siigo API using get_client(ctx).get('/warehouses'). No input parameters required.
    @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 mapping in the lazy-loading tool functions dictionary, linking 'get_warehouses' to the reference.get_warehouses function.
    "get_warehouses": reference.get_warehouses,
  • Tool index entry in TOOL_INDEX list for discovery tools (list_siigo_tools), providing name, category, and summary for get_warehouses.
    {"name": "get_warehouses", "category": "reference", "summary": "Get all warehouse locations"},
  • Import statement that brings in the reference module containing the get_warehouses handler, used in lazy loading.
    from siigo_mcp.tools import reference, customers, products, invoices, credit_notes, journals

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