Plan expected containers
create_expected_containersChanges data: plans what a supplier has agreed to send, before any shipping document exists, as the person who connected this app, and records it in the organization's audit log once. One container, or a schedule such as "5 a week for 2 weeks, then 3 a week for 5" with phases (up to 200 containers in all), every container with the same fields and its week one after the last. Use it only when the user asks to plan containers, and say what you are about to plan first: it is not idempotent, calling it twice plans twice, so check list_expected_containers before repeating. Only expected_week_start is required. A price needs its price_basis and a currency. A supplier that is not in the organization is refused: find it with list_companies. Sends nothing and calls no AI. Answers with the containers made and their ids such as "exs_90". Change one with update_expected_container; canceling and reopening are done in Trackberry only.
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": {
"expected_week_start": "<expected_week_start>"
},
"name": "create_expected_containers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | No | How many boxes are expected. | |
| notes | No | Free-text notes. | |
| phases | No | A schedule instead of one container: each phase is `per_week` containers a week for `weeks` weeks, one phase starting the week after the previous ends. One container for one week when left out. | |
| calibre | No | The produce's size grade. | |
| pallets | No | How many pallets are expected. | |
| variety | No | The produce's variety. | |
| currency | No | The three-letter currency code of the price, such as "USD". Required with `unit_price`. | |
| unit_price | No | The agreed price, in the unit `price_basis` names. | |
| price_basis | No | What `unit_price` is the price of: one "box", the whole "container", or the "total" for the line's boxes. Required with `unit_price`. | |
| supplier_id | No | The supplier: a company id such as "cmp_41", as returned by list_companies. | |
| order_number | No | The organization's purchase order number for the container. | |
| produce_name | No | The produce expected, such as "Hass avocado". | |
| origin_location | No | Where the container is expected to leave from. | |
| expected_week_start | Yes | Any day of the week the container is expected to leave the origin, YYYY-MM-DD; it is moved to that week's Monday. | |
| destination_location | No | Where the container is expected to arrive. |