Skip to main content
Glama

ADR Consignment Check

adr_consignment_check
Read-onlyIdempotent

One call on the consignment object for the ADR picture of a road load: the 1.1.3.6 small-load verdict, the limited / excepted quantity check of each line, the tunnel restriction code of the whole load against the tunnels on the route, each line's transport-document entry, mixed loading (7.5.2, with the foodstuffs precautions of 7.5.4), and the vehicle side — orange-coloured plates and placards (5.3), the documents, fire extinguishers and equipment on the transport unit (8.1), and driver training (8.2); and the UN packaging mark of each line (6.1.3.1). The rules are page-cited to the free UNECE ADR 2025 publication. For the 1.1.3.6 check alone use adr_exemption_calculator; LQ / EQ alone adr_lq_eq_check; a row's columns adr_lookup.

Send lines[] (un_number, quantity {value, unit, basis} and, where they apply, packing_group / variant_index, packages with un_mark, inner_packaging) and optionally journey, vehicle and crew; journey.date is the default as_of, and an as_of that contradicts it is refused. A check whose input is not sent is conditional, the input named in missing_inputs — never assumed. status is pass | fail | conditional | insufficient_data; a relief that does not apply is not_applicable, not fail. edition ("2025" | "2027") and as_of choose the ADR edition; neither sent, ADR 2025 until 2027-01-01. Rate-limited: a limit error carries reset_at, the UTC time the allowance resets. Not checked: whether the packaging kind is one the packing instruction allows, IBC / large-packaging marks, the vehicle approval of Part 9, the elevated temperature mark (5.3.3), handling and stowage (7.5.7). Not legal advice, verify against the current UNECE ADR text.

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": {
      "lines": "<lines>"
    },
    "name": "adr_consignment_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
crewNoThe crew, for the driver-training and document checks. Facts only — no name.
as_ofNoThe date the answer is for, YYYY-MM-DD (default today, UTC).
linesYesThe lines of the load (1–50). Required.
editionNoADR edition; wins over as_of. Omitted: as_of picks it.
journeyNo
optionsNoThe consignment object's options; not read by this check.
vehicleNoThe vehicle-side inputs (ADR 5.3, 7.5.4, 8.1).

Output Schema

NameRequiredDescriptionDefault
okYes
as_ofYes
resultYes
statusYes
_sourceYes
editionYes
citationYes
warningsNo
confidenceYes
missing_inputsYes
blocking_errorsNo
envelope_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • removedOutput schema / properties / _meta
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "check_id": {
      -      "type": "string"
      -    },
      -    "edition_basis": {
      -      "type": "string"
      -    },
      -    "ids": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "pattern": {
      -          "type": "string"
      -        },
      -        "scheme": {
      -          "maximum": 9007199254740991,
      -          "minimum": -9007199254740991,
      -          "type": "integer"
      -        }
      -      },
      -      "required": [
      -        "scheme",
      -        "pattern"
      -      ],
      -      "type": "object"
      -    },
      -    "receipt": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "created_at": {
      -          "type": "string"
      -        },
      -        "dataset_version": {
      -          "additionalProperties": {
      -            "type": "string"
      -          },
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "engine_version": {
      -          "type": "string"
      -        },
      -        "inputs": {},
      -        "reason": {
      -          "enum": [
      -            "key_required",
      -            "quota"
      -          ],
      -          "type": "string"
      -        },
      -        "receipt_hash": {
      -          "type": "string"
      -        },
      -        "result": {
      -          "additionalProperties": {},
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "schema_version": {
      -          "type": "string"
      -        },
      -        "stored": {
      -          "const": false,
      -          "type": "boolean"
      -        },
      -        "tool": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "stored",
      -        "reason",
      -        "schema_version",
      -        "receipt_hash",
      -        "created_at",
      -        "tool",
      -        "inputs",
      -        "dataset_version",
      -        "engine_version",
      -        "result"
      -      ],
      -      "type": "object"
      -    },
      -    "receipt_url": {
      -      "type": "string"
      -    },
      -    "upstream": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "datasets": {
      -          "additionalProperties": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "kind": {
      -                "anyOf": [
      -                  {
      -                    "enum": [
      -                      "watched",
      -                      "checksum-only",
      -                      "manual"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "last_success": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "reason": {
      -                "type": "string"
      -              },
      -              "stale": {
      -                "type": "boolean"
      -              },
      -              "state": {
      -                "enum": [
      -                  "in_step",
      -                  "changed_upstream",
      -                  "schema_drift",
      -                  "unreachable",
      -                  "window_missed",
      -                  "unknown"
      -                ],
      -                "type": "string"
      -              },
      -              "window_days": {
      -                "type": [
      -                  "number",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "state",
      -              "kind",
      -              "last_success",
      -              "window_days",
      -              "stale"
      -            ],
      -            "type": "object"
      -          },
      -          "propertyNames": {
      -            "type": "string"
      -          },
      -          "type": "object"
      -        },
      -        "stale": {
      -          "type": "boolean"
      -        },
      -        "state": {
      -          "enum": [
      -            "in_step",
      -            "changed_upstream",
      -            "schema_drift",
      -            "unreachable",
      -            "window_missed",
      -            "unknown"
      -          ],
      -          "type": "string"
      -        },
      -        "state_read_at": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "required": [
      -        "state",
      -        "stale",
      -        "state_read_at",
      -        "datasets"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / normalized_input
      Removed value: -{
      -  "additionalProperties": {},
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / validity
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "as_of": {
      -      "type": "string"
      -    },
      -    "effective_from": {
      -      "type": "string"
      -    },
      -    "effective_to": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "as_of"
      -  ],
      -  "type": "object"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "envelope_version",
      -  "ok",
      -  "result",
      -  "confidence",
      -  "_source",
      -  "citation"
      -]New value: +[
      +  "envelope_version",
      +  "ok",
      +  "status",
      +  "missing_inputs",
      +  "edition",
      +  "as_of",
      +  "result",
      +  "confidence",
      +  "_source",
      +  "citation"
      +]
  2. Changed32 schema fields changed
    • changedInput schema / properties / as_of / description
      Previous value: -"YYYY-MM-DD the answer is for (default today, UTC); picks the ADR edition when edition is omitted, and is echoed in the answer and its check receipt."New value: +"The date the answer is for, YYYY-MM-DD (default today, UTC)."
    • changedInput schema / properties / crew / description
      Previous value: -"The vehicle crew, for the driver-training and document checks (ADR 8.2, 8.1.2). Facts only — no name."New value: +"The crew, for the driver-training and document checks. Facts only — no name."
    • addedInput schema / properties / crew / properties / adr_training_certificate / description
      Added value: +"The driver holds the ADR 8.2.1 training certificate."
    • addedInput schema / properties / crew / properties / awareness_training_1_3 / description
      Added value: +"The driver is trained according to Chapter 1.3 (8.2.3)."
    • addedInput schema / properties / crew / properties / photo_identification / description
      Added value: +"Each crew member carries identification with a photograph (8.1.2.1 (d))."
    • addedInput schema / properties / crew / properties / specialisations / description
      Added value: +"The specialisations on the certificate."
    • changedInput schema / properties / edition / description
      Previous value: -"ADR edition: \"2025\" or \"2027\". Wins over as_of. Omit it and as_of picks the edition by the legal timeline: before 2027-01-01 ADR 2025; from 2027-01-01 ADR 2027 (ADR 2025 may still be applied until 2027-06-30 under 1.6.1.1 — edition \"2025\" answers on it until then); from 2027-07-01 ADR 2027 only. An ADR 2027 answer for a date before 2027-01-01 carries an EDITION_NOT_YET_APPLICABLE warning."New value: +"ADR edition; wins over as_of. Omitted: as_of picks it."
    • addedInput schema / properties / journey / properties / date / description
      Added value: +"Date of carriage, YYYY-MM-DD — the default as_of."
    • addedInput schema / properties / journey / properties / tunnels_on_route / description
      Added value: +"ADR tunnel categories on the route (A–E)."
    • addedInput schema / properties / lines / items / properties / description / description
      Added value: +"What the line is, at most 200 characters."
    • addedInput schema / properties / lines / items / properties / icao_limited_quantity / description
      Added value: +"ID-prefixed line only: the packages are ICAO Technical Instructions limited quantities (3.4.8 mark / 3.4.10)."
    • addedInput schema / properties / lines / items / properties / inner_packaging / description
      Added value: +"The inner packaging, for the limited / excepted quantity check."
    • addedInput schema / properties / lines / items / properties / inner_packaging / properties / per_outer / description
      Added value: +"Inner packagings in one outer packaging (default 1) — the excepted-quantity outer limit."
    • addedInput schema / properties / lines / items / properties / inner_packaging / properties / quantity / description
      Added value: +"The quantity in ONE inner packaging."
    • addedInput schema / properties / lines / items / properties / inner_packaging / properties / regime / description
      Added value: +"The exemption the line is meant to use (a stated regime that is missed fails); omitted, both are checked and a line that fits neither is not_applicable."
    • addedInput schema / properties / lines / items / properties / packages / description
      Added value: +"The pieces; a line in packages is \"other carriage\" for the ADR 8.6.4 tunnel table."
    • addedInput schema / properties / lines / items / properties / packages / properties / un_mark / description
      Added value: +"The UN packaging mark as printed (ADR 6.1.3.1), e.g. \"UN 4G/Y145/S/02/NL/VL823\"."
    • addedInput schema / properties / lines / items / properties / packing_group / description
      Added value: +"Packing group, to pin one ADR Table A row of a multi-row UN."
    • addedInput schema / properties / lines / items / properties / quantity / description
      Added value: +"The dangerous-goods quantity (ADR 1.1.3.6.3)."
    • addedInput schema / properties / lines / items / properties / quantity / properties / basis / description
      Added value: +"\"net\" or \"gross\"; a gross mass on a mass-counted row is an upper bound."
    • addedInput schema / properties / lines / items / properties / quantity / properties / unit / description
      Added value: +"L or kg, checked against the dimension ADR 1.1.3.6.3 counts."
    • addedInput schema / properties / lines / items / properties / quantity / properties / value / description
      Added value: +"The dangerous-goods quantity for the whole line, all packages together; 0 = not carried."
    • addedInput schema / properties / lines / items / properties / un_number / description
      Added value: +"UN number (\"1203\", \"UN1203\") or ID-prefixed air-only number (\"ID 8000\"); a line without one is not a dangerous-goods line."
    • addedInput schema / properties / lines / items / properties / variant_index / description
      Added value: +"ADR Table A variant index (as adr_lookup returns it), to pin one row."
    • changedInput schema / properties / vehicle / description
      Previous value: -"Read: max_mass_t (8.1.4.1, 3.4.13), foodstuffs_carried (7.5.4) and the vehicle-side inputs (5.3, 8.1)."New value: +"The vehicle-side inputs (ADR 5.3, 7.5.4, 8.1)."
    • addedInput schema / properties / vehicle / properties / equipment_8_1_5 / description
      Added value: +"The ADR 8.1.5 items on board; an item not listed is read as not on board."
    • addedInput schema / properties / vehicle / properties / fire_extinguishers_kg / description
      Added value: +"Each portable fire extinguisher on board, kg (ADR 8.1.4)."
    • addedInput schema / properties / vehicle / properties / foodstuffs_carried / description
      Added value: +"Foodstuffs or animal feeds are carried in the same vehicle or container (ADR 7.5.4)."
    • addedInput schema / properties / vehicle / properties / instructions_in_writing / description
      Added value: +"The ADR 5.4.3 instructions in writing are in the cab."
    • addedInput schema / properties / vehicle / properties / max_mass_t / description
      Added value: +"The transport unit's maximum permissible mass, tonnes."
    • addedInput schema / properties / vehicle / properties / orange_plates_displayed / description
      Added value: +"The two orange-coloured plates are displayed."
    • addedInput schema / properties / vehicle / properties / placards_displayed / description
      Added value: +"The placards ADR 5.3.1.5 requires are displayed."
  3. Changed1 schema field changed
    • addedOutput schema / properties / _meta / properties / upstream
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "datasets": {
      +      "additionalProperties": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "kind": {
      +            "anyOf": [
      +              {
      +                "enum": [
      +                  "watched",
      +                  "checksum-only",
      +                  "manual"
      +                ],
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "last_success": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "stale": {
      +            "type": "boolean"
      +          },
      +          "state": {
      +            "enum": [
      +              "in_step",
      +              "changed_upstream",
      +              "schema_drift",
      +              "unreachable",
      +              "window_missed",
      +              "unknown"
      +            ],
      +            "type": "string"
      +          },
      +          "window_days": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "state",
      +          "kind",
      +          "last_success",
      +          "window_days",
      +          "stale"
      +        ],
      +        "type": "object"
      +      },
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "stale": {
      +      "type": "boolean"
      +    },
      +    "state": {
      +      "enum": [
      +        "in_step",
      +        "changed_upstream",
      +        "schema_drift",
      +        "unreachable",
      +        "window_missed",
      +        "unknown"
      +      ],
      +      "type": "string"
      +    },
      +    "state_read_at": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "stale",
      +    "state_read_at",
      +    "datasets"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedOutput schema / properties / _meta / properties / ids
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "pattern": {
      +      "type": "string"
      +    },
      +    "scheme": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scheme",
      +    "pattern"
      +  ],
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / lines / items / properties / packages / properties / un_mark
      Added value: +{
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
  6. Changed7 schema fields changed
    • addedInput schema / properties / crew
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The vehicle crew, for the driver-training and document checks (ADR 8.2, 8.1.2). Facts only — no name.",
      +  "properties": {
      +    "adr_training_certificate": {
      +      "type": "boolean"
      +    },
      +    "awareness_training_1_3": {
      +      "type": "boolean"
      +    },
      +    "photo_identification": {
      +      "type": "boolean"
      +    },
      +    "specialisations": {
      +      "items": {
      +        "enum": [
      +          "class_1",
      +          "class_7",
      +          "tanks"
      +        ],
      +        "type": "string"
      +      },
      +      "maxItems": 3,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / vehicle / description
      Previous value: -"Only foodstuffs_carried is read (mixed loading, 7.5.4)."New value: +"Read: max_mass_t (8.1.4.1, 3.4.13), foodstuffs_carried (7.5.4) and the vehicle-side inputs (5.3, 8.1)."
    • addedInput schema / properties / vehicle / properties / equipment_8_1_5
      Added value: +{
      +  "items": {
      +    "enum": [
      +      "wheel_chock",
      +      "warning_signs",
      +      "eye_rinsing_liquid",
      +      "warning_vest",
      +      "portable_lighting",
      +      "protective_gloves",
      +      "eye_protection",
      +      "emergency_escape_mask",
      +      "shovel",
      +      "drain_seal",
      +      "collecting_container"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 11,
      +  "type": "array"
      +}
    • addedInput schema / properties / vehicle / properties / fire_extinguishers_kg
      Added value: +{
      +  "items": {
      +    "exclusiveMinimum": 0,
      +    "maximum": 100,
      +    "type": "number"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / vehicle / properties / instructions_in_writing
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / vehicle / properties / orange_plates_displayed
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / vehicle / properties / placards_displayed
      Added value: +{
      +  "type": "boolean"
      +}
  7. Changed2 schema fields changed
    • changedInput schema / properties / vehicle / description
      Previous value: -"Not read in version 2a."New value: +"Only foodstuffs_carried is read (mixed loading, 7.5.4)."
    • addedInput schema / properties / vehicle / properties / foodstuffs_carried
      Added value: +{
      +  "type": "boolean"
      +}
  8. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, closed-world read, and the description adds substantial behavior beyond that: inputs not sent become 'conditional' with the gap named in missing_inputs and never assumed; status vocabulary pass|fail|conditional|insufficient_data with a relief that does not apply being not_applicable rather than fail; edition/as_of precedence with a 2025 fallback until 2027-01-01; an as_of contradicting journey.date is refused; and rate-limit behavior with reset_at in UTC. It also carries a legal-advice disclaimer and directs verification against the UNECE text.

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?

Purpose and alternatives are front-loaded, then inputs, result semantics, edition rules, rate limits, and exclusions in a logical order. Every sentence carries content, but the long semicolon-chained enumerations of ADR clauses make it dense and harder to scan than it needs to be for an agent parsing it quickly.

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 highly complex, deeply nested tool with 50-line arrays and many optional conditional inputs, the description covers scope, alternatives, status semantics, defaults, limits, and explicit non-coverage. An output schema exists, so return-value structure need not be explained, and the description still defines the status vocabulary an agent needs to interpret results.

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

Parameters4/5

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

Schema description coverage is already 86%, so the schema carries most parameter meaning. The description still adds cross-parameter semantics the schema does not express: journey.date is the default as_of and a conflicting as_of is refused, quantity unit is checked against what ADR 1.1.3.6.3 counts, and unsent inputs yield conditional results rather than assumptions. It also sketches the lines[] shape (un_number, quantity, packing_group/variant_index, packages with un_mark, inner_packaging) without adding much beyond the already-described schema fields.

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?

The description names a specific verb and resource ('one call on the consignment object for the ADR picture of a road load') and then enumerates the concrete checks performed (1.1.3.6 verdict, LQ/EQ per line, tunnel restriction, mixed loading 7.5.2/7.5.4, 5.3 plates/placards, 8.1 equipment, 8.2 training, 6.1.3.1 UN marks). It explicitly carves itself out from siblings: adr_exemption_calculator for the 1.1.3.6 check alone, adr_lq_eq_check for LQ/EQ alone, adr_lookup for a row's columns.

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?

It gives explicit routing to three named alternatives with the exact conditions that select them, plus a 'Not checked' exclusion list (packing-instruction compatibility, IBC/large-packaging marks, Part 9 approval, 5.3.3 elevated temperature mark, 7.5.7 handling and stowage). The scope boundary is fully stated so an agent can decide when this tool is and is not the right call.

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.