Skip to main content
Glama

Booking Check

booking_check
Read-onlyIdempotent

Check 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

NameRequiredDescriptionDefault
dateNoDate of carriage (YYYY-MM-DD) for the dangerous-goods check; picks the ADR edition.
modeNoTransport mode. This version answers "road" only.
detailNotrue adds each engine's full answer and the receipt's hashed fields. Default false (short).
originNoOrigin as a UN/LOCODE (5 characters, e.g. GBMNC), an IATA airport code (3 letters) or an ISO 3166 country code (2 letters).
piecesNoThe 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.
vehicleNoThe booked vehicle, as a vehicle_lookup slug (e.g. standard-curtainsider, 7-5t-rigid, luton-van). Leave it out when none is booked.
destinationNoDestination, as origin.
dangerous_goodsNoDangerous-goods lines, exactly as adr_consignment_check takes its lines[] (un_number, packing_group, quantity { value, unit, basis }, packages …).
tunnels_on_routeNoTunnel categories on the route (B, C, D, E) for the dangerous-goods check.

Output Schema

NameRequiredDescriptionDefault
okYes
_metaNo
as_ofNo
resultYes
statusNo
_sourceYes
editionNo
citationYes
validityNo
warningsNo
confidenceYes
missing_inputsNo
blocking_errorsNo
envelope_versionYes
normalized_inputNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Well beyond the annotations, which already declare readOnly/idempotent/non-destructive: the description discloses that nothing is stored, that party names, addresses and free text are ignored and never echoed, that output is short by default with detail:true expanding it, and that rate-limit errors carry reset_at. It also explains composition semantics (delegates to existing engines, adds no rule, cites the source engine per line).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, returns, and verdict before caveats and alternatives, and essentially every clause carries information. It is a single dense run-on paragraph, which makes the output-list and caveat information harder to scan than a bulleted or clause-separated structure would.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter composite checker with an output schema, the description supplies what structured fields cannot: verdict semantics ("a clean answer means no engine found a blocker in the fields sent"), explicit non-coverage (no rate, route, drivers' hours, legal clearance), and data-handling behavior. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already carries parameter meaning; the description largely restates what is there (date selects the ADR edition, vehicle as a vehicle_lookup slug, detail:true expands output). It adds little syntax or format guidance beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Check a road booking before the job is created") and enumerates exactly what it returns: three named lists (MISSING, NEEDS, STOPS) plus a verdict with named values. It also distinguishes itself from the two most plausible sibling substitutes by name, so an agent can select it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit placement in the workflow ("intake agent's gate between reading a booking and creating the job") and names the conditions that select alternatives instead ("for dangerous goods alone use adr_consignment_check, for volume and chargeable weight alone consignment_calculator"). It also bounds scope with "Road only in this version."

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.