Get the warehouse, its closures and delivery days
get_warehouseThe importer's warehouse where containers are delivered: name, address, country, the weekdays it is open (open_days), the public-holiday region its calendar uses (effective_holiday_region), the closures that end today or later, next to end first (closures, with closures_has_more when there are more than are shown; open: true means it works that day although the calendar says shut) and the next 14 days (delivery_days), each with usable and the reason: open, closure_open, closure, weekday, warehouse_holiday or port_holiday. Use it for "is the warehouse open on the 26th" or "why is the collect-by date Tuesday and not Monday" (a shipment's free_time.collect_by already skips the unusable days). Opening hours are not recorded. Port holidays are only counted when you pass shipment_id, the shipment whose discharge port matters. Without warehouse_id it answers for the warehouse of the shipment you pass in shipment_id (the one its collect-by date is counted for), else for the default warehouse; an organization with none set gets an error.
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_warehouse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shipment_id | No | A shipment id such as "shp_123", as returned by search_shipments. | |
| warehouse_id | No | A warehouse id such as "whs_12". Omit for the shipment's warehouse, or the default one when there is no shipment. |