Skip to main content
Glama

AGOS European Compliance & Operations

EU CLP Annex VIII ECHA UFI Generator/Validator & ADR 2025 1,000-Points Calculator

check_eu_chemicals_adr
Read-onlyIdempotent

Executes official EU chemical & hazmat compliance calculations offline: (1) generates, validates, and round-trip decodes ECHA Unique Formula Identifiers (UFI, CLP Regulation (EC) 1272/2008 Annex VIII) across all 35 EU/EEA VAT formats & Company Keys using exact 74-bit BigInt arithmetic, Base-31 alphabet (excluding B, I, L, O, Z), Table 2-4 permutation, and Mod-31 check character; (2) calculates ADR 2025 Section 1.1.3.6 1,000-point dangerous goods exemptions across 62 curated UN entries (incl. ADR 2025 Sodium-ion UN3551/UN3552, Cat 0 never-exempt, Cat 1 footnote "a" x20), ADR 8.6.4 tunnel clearance, and ADR 7.5.2 mixed-loading alerts.

Input Schema

NameRequiredDescriptionDefault
unNoAlias for unNumber.
ufiNo16-character ECHA UFI code (XXXX-XXXX-XXXX-XXXX or compact) for validate_ufi.
itemsNoDangerous goods shipment items for calculate_adr.
actionNoOperation mode (optional — auto-inferred from ufi, items, unNumber, or vatNumber/companyKey if omitted).
unNumberNoUN number to look up in the ADR 2025 catalog (for lookup_un).
vatNumberNoEU/EEA VAT number for generate_ufi (e.g. "DE123456789", "FRRF987654321").
companyKeyNoOptional 41-bit ECHA Company Key (Group 0) when not using a VAT number.
countryKeyNoOptional 2-letter EU/EEA ISO code or 0 for Company Key.
carriageTypeNoCarriage mode for ADR tunnel restriction code resolution (default: "packages").packages
packingGroupNoOptional packing group for lookup_un.
tunnelCategoryNoOptional ADR 8.6.4 tunnel category on route to evaluate passage clearance.
expectedVatNumberNoOptional VAT number to verify ownership against decoded UFI.
formulationNumberNo28-bit internal formulation number (0..268435455) for generate_ufi.
expectedCompanyKeyNoOptional Company Key to verify against decoded UFI.
expectedFormulationNumberNoOptional formulation number to verify against decoded UFI.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, openWorldHint=false), yet the description adds real behavioral substance: execution is offline, UFI math is exact 74-bit BigInt with a Mod-31 check character, and ADR rules include 'Cat 0 never-exempt' and the Cat 1 footnote 'a' x20 multiplier. It still omits what the calculation actually returns (pass/fail, point totals, tunnel verdict).

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 the tool's purpose and split into two clearly numbered capabilities, so the structure is sound. It is dense, however, with implementation trivia (Base-31 alphabet exclusions, Table 2-4 permutation, 74-bit arithmetic) that helps neither selection nor invocation, and it still costs length without covering lookup_un.

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

Completeness3/5

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

For a 15-parameter, four-mode tool with no output schema, the description should say what each mode returns (validation verdict, UFI string, point total, tunnel clearance result). It covers the domain rules well but leaves the response shape entirely unstated, which is a real gap given the absent output schema.

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% and each parameter is individually documented, so the baseline is 3. The description adds some interpretive context (35 EU/EEA VAT formats, Company Keys, the x20 vs x50 footnote distinction) but no detail on parameter interaction beyond what the schema already states.

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

Purpose4/5

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

States specific verbs and resources: 'generates, validates, and round-trip decodes' UFIs and 'calculates ADR 2025 Section 1.1.3.6 ... exemptions', plus tunnel clearance and mixed-loading alerts. However, the schema exposes four action modes (generate_ufi, validate_ufi, calculate_adr, lookup_un) and the description never mentions the UN catalog lookup operation, so the tool's full scope is not fully conveyed.

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

Usage Guidelines3/5

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

The two parenthetical branches imply when each capability applies, and the schema's action enum carries the auto-inference rule ('auto-inferred from ufi, items, unNumber, or vatNumber/companyKey if omitted'). But the description itself gives no explicit when-to-use, when-not-to-use, or routing guidance between the four modes, leaving the agent to infer selection from parameters.

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.

Resources