shipment_summary
Analyze a shipment in one call: compute CBM, gross and chargeable weight, mode-specific LDM or volumetric weight, suggested vehicle or container, dangerous-goods presence and UK duty estimates.
Instructions
Composite shipment analysis in one call: volume (CBM), gross and chargeable weight, and by mode road LDM with pallet floor positions and a suggested vehicle, air volumetric weight, or sea revenue tonnes with a suggested container; plus dangerous-goods presence for items with un_number and UK duty estimates for items with hs_code + customs_value. weight and customs_value are PER ITEM; adr_quantity is the TOTAL for the dangerous-goods line, all pieces together. An item with no stackable flag is not stacked. Sections that cannot run surface in warnings instead of failing the call. Its result uses camelCase field names (legacy shape). For canonical snake_case lines[] totals with advisory flags use consignment_calculator; single figures cbm_calculator, chargeable_weight_calculator, ldm_calculator; ldm_calculator, adr_lookup and uk_duty_calculator are the engines it calls. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Fields are checked by name: a field the tool does not read is refused with a tool error naming it and listing the accepted ones, never ignored. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. A planning summary, not a quotation or compliance determination.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "shipment_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Transport mode — selects the mode-specific section of the result. Required unless consignment is sent. | |
| as_of | No | The date the answer is for, YYYY-MM-DD (default today, UTC). | |
| items | No | Required unless consignment is sent. Shipment items with dimensions, weight and optional HS/UN codes. | |
| origin | No | Origin — ISO country code and optional UN/LOCODE. | |
| edition | No | ADR edition; wins over as_of. Omitted: as_of picks it. | |
| incoterm | No | Incoterms 2020 three-letter code. | |
| consignment | No | The consignment object, instead of the other arguments. Send it alone. | |
| destination | No | Destination — ISO country code and optional UN/LOCODE. | |
| freight_cost | No | Freight cost in GBP for the duty calculation, 0 or more. Default: 0. | |
| insurance_cost | No | Insurance cost in GBP for the duty calculation, 0 or more. Default: 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| _meta | No | ||
| as_of | No | ||
| result | Yes | ||
| status | No | ||
| _source | Yes | ||
| edition | No | ||
| citation | Yes | ||
| validity | No | ||
| warnings | No | ||
| confidence | Yes | ||
| missing_inputs | No | ||
| blocking_errors | No | ||
| envelope_version | Yes | ||
| normalized_input | No |