Change an expected container
update_expected_containerChanges data: corrects what was planned for one expected container (the supplier, order number, produce, variety, calibre, boxes, pallets, week, origin, destination, price or notes), as the person who connected this app, and records it in the organization's audit log. What it replaces is gone, and null clears a field that can be empty. Use it only when the user asks to change a container, and say what will change before calling it. Only the arguments you send change; the rest stay, and sending the values it already has changes nothing. It works on a container in any status and does not match or cancel it. Sends nothing and calls no AI. Get the expected_container_id from list_expected_containers. Answers with the container as it is now.
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_container_id": "<expected_container_id>"
},
"name": "update_expected_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | No | How many boxes are expected. | |
| notes | No | Free-text notes. | |
| 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 | No | 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. | |
| expected_container_id | Yes | An expected container id such as "exs_90", as returned by list_expected_containers. |