List a shipment's documents
list_documentsThe documents attached to one shipment (bill of lading, commercial invoice, packing list, certificates and so on), each with an id such as "doc_45", its type, file name and processing status. Use it for "which documents does shipment shp_123 have" or "is the certificate of origin missing". Use get_document_data for what a document says, and get_document_file to read the original when downloadable is true. By default it lists the current paperwork. view "reference_only" lists the documents held out as reference material (set_document_relevance can file them) and view "superseded" the older versions that a newer file replaced (restore_document can bring one back); each entry says its relevance and superseded_by. Each entry has a shipment_url: link the shipment's container or air waybill number to it, never a made-up URL.
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": {
"shipment_id": "<shipment_id>"
},
"name": "list_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | "current" (default) for the shipment's paperwork, "reference_only" for documents held out of it, "superseded" for replaced older versions. | current |
| shipment_id | Yes | A shipment id such as "shp_123", as returned by search_shipments. |