Booking Check
booking_checkCheck a road booking before the job is created: from the booking's fields it returns three lists — MISSING (fields the booking lacks, each with the calculation that needs it), NEEDS (volume, gross and chargeable weight, loading metres, whether the load fits the booked vehicle, the ADR consignment check's result for dangerous goods) and STOPS (a code that does not resolve, a load the vehicle cannot take, a dangerous-goods check that fails or refuses) — and a verdict: no_blocker_found, missing_information or blocker_found. Use it as an intake agent's gate between reading a booking and creating the job; for dangerous goods alone use adr_consignment_check, for volume and chargeable weight alone consignment_calculator. Road only in this version. It composes the existing calculators and lookups and adds no rule; every line cites the engine it came from. Short by default; detail: true adds each engine's full answer. Nothing is stored; party names, addresses and free text are ignored and never echoed. Not a booking system, no rate, route, drivers' hours or legal clearance; a clean answer means no engine found a blocker in the fields sent. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets.
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": "booking_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date of carriage (YYYY-MM-DD) for the dangerous-goods check; picks the ADR edition. | |
| mode | No | Transport mode. This version answers "road" only. | |
| detail | No | true adds each engine's full answer and the receipt's hashed fields. Default false (short). | |
| origin | No | Origin as a UN/LOCODE (5 characters, e.g. GBMNC), an IATA airport code (3 letters) or an ISO 3166 country code (2 letters). | |
| pieces | No | The pieces, 1–50 lines: { quantity, dims: { l, w, h, unit: mm|cm|m|in }, weight: { value, unit: kg|g|t|lb } per piece, stackable? }. A line without dims or weight is listed as missing. | |
| vehicle | No | The booked vehicle, as a vehicle_lookup slug (e.g. standard-curtainsider, 7-5t-rigid, luton-van). Leave it out when none is booked. | |
| destination | No | Destination, as origin. | |
| dangerous_goods | No | Dangerous-goods lines, exactly as adr_consignment_check takes its lines[] (un_number, packing_group, quantity { value, unit, basis }, packages …). | |
| tunnels_on_route | No | Tunnel categories on the route (B, C, D, E) for the dangerous-goods check. |
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 |