Match an expected container to a shipment
match_expected_containerChanges data: ties a planned expected container to the tracked shipment it turned out to be, as the person who connected this app, and records it in the organization's audit log. The container becomes matched, the proformas held on it are copied onto the shipment as documents, and the line's other suggestions are discarded for good and never come back. Use it only when the user says which shipment the container is, or after they accept a suggestion, and say what you are about to match first. If the container has suggestions, accept_expected_container_suggestion does the same for one of them. Matching a container to the shipment it is already matched to changes nothing. A container matched to another shipment, or canceled, is refused, and so is a shipment that already holds all the containers it can. Undo it with unmatch_expected_container. Sends nothing and calls no AI. Get the expected_container_id from list_expected_containers and the shipment_id from search_shipments.
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>",
"shipment_id": "<shipment_id>"
},
"name": "match_expected_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. | |
| expected_container_id | Yes | An expected container id such as "exs_90", as returned by list_expected_containers. |