Add a warehouse closure or opening
add_warehouse_closureChanges data: adds a run of days to the warehouse calendar, as the person who connected this app, and records it in the organization's audit log. By default the days are a closure (stock-taking, an inventory week); with open: true they are days the warehouse works although its calendar says it is shut, such as a public holiday it works through. Closures move the collect_by dates of every shipment for everyone in the organization straight away, so use it only when the user asks to close or open the warehouse on given days, and say which days before calling. starts_on and ends_on are YYYY-MM-DD dates; omit ends_on for a single day. A run is at most 366 days. Without warehouse_id it changes the default warehouse. Answers with the closure and its id such as "wcl_9", which remove_warehouse_closure needs; get_warehouse lists the existing ones and shows the effect on the next delivery days. It is not idempotent: once it has answered, never call it again for the same days, since a retry adds a duplicate closure; check get_warehouse first if unsure.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"starts_on": "<starts_on>"
},
"name": "add_warehouse_closure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why, such as "Stock-taking". | |
| open | No | True when the warehouse is open on these days although its calendar says shut. Default false: closed. | |
| ends_on | No | Last day, YYYY-MM-DD, not before starts_on. Omit for a single day. | |
| starts_on | Yes | First day, YYYY-MM-DD. | |
| warehouse_id | No | A warehouse id such as "whs_12". Omit for the default warehouse. |