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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_warehouses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/siigo_mcp/tools/reference.py:49-57 (handler)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") - src/siigo_mcp/tools/discovery.py:76-76 (registration)Registration mapping in the lazy-loading tool functions dictionary, linking 'get_warehouses' to the reference.get_warehouses function.
"get_warehouses": reference.get_warehouses, - src/siigo_mcp/tools/discovery.py:22-22 (registration)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