Skip to main content
Glama

Fortitude21 Dangerous Goods, Packaging and CBAM Tools

Decode a UN packaging mark

decode_un_packaging_mark
Read-onlyIdempotent

Decode a UN packaging mark part by part: packaging code, performance level, density or gross mass, test pressure, year, state and maker, for packagings, IBCs, large packagings, salvage and reconditioned marks. Use when: the user has read a mark off a drum, jerrican, box or IBC. Instead: un_number_packaging to find which codes a substance may use; ibc_inspection_dates for an IBC's test dates. Inputs: mark alone decodes. Adding un also checks, against ADR 2025 Table A, whether that container may carry that substance, using the density limit printed in the mark. A bare code such as 3H1 decodes to its meaning only. If the user has not read the mark, ask for it rather than describing the container. Behaviour: text it cannot read as a mark returns ok:false, and only the first 120 characters are read. If un is not one of the 157 covered numbers, the mark still decodes and check carries the error. Unknown arguments are ignored and named in assumed. Constraints: no authentication, key or headers. At most 10 requests per 10 seconds per IP address; above that HTTP 429, so space out repeated calls.

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": {
      "mark": "<mark>"
    },
    "name": "decode_un_packaging_mark"
  }
}

Input Schema

NameRequiredDescriptionDefault
unNoOptional UN number (four digits) to check the container against, e.g. "1203"
markYesThe mark as printed, parts separated by slashes, e.g. "UN 3H1/Y1.9/150/26/D/BAM 12345" or an IBC mark "31HA1/Y/03 22/D/BAM 12345/10800/1200"

Output Schema

NameRequiredDescriptionDefault
okNotrue with an answer. false when the tool needs one more input or cannot answer; error then says what to send
citeNoCredit line with a link, for quoting the answer
codeNoThe UN packaging code, e.g. 3H1
docsNoDocumentation for this tool
markNoThe mark as read
nounNoWhat the code describes, e.g. plastic jerrican, non-removable head
specNoThe code with its performance level
toolNoLink to the same answer on the interactive tool page
checkNoWith un: whether the container may carry that substance, and why
errorNoWhen ok is false: what is missing or could not be read, and what to send instead
notesNoPoints to watch for this mark
partsNoEach part of the mark with its meaning
sourceNoThe regulations the reading follows
assumedNoEach value the tool inferred or defaulted, in words, so it can be checked with the user
our_rangeNoFortitude21 containers made to this code
publisherNoWho publishes the tool, the Fortitude21 products that fit, with links, and quote_url, a link to ask for a quotation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / mark / description
      Previous value: -"The mark as printed, e.g. \"UN 3H1/Y1.9/150/26/D/BAM 12345\""New value: +"The mark as printed, parts separated by slashes, e.g. \"UN 3H1/Y1.9/150/26/D/BAM 12345\" or an IBC mark \"31HA1/Y/03 22/D/BAM 12345/10800/1200\""
    • changedInput schema / properties / un / description
      Previous value: -"Optional UN number to check the mark against"New value: +"Optional UN number (four digits) to check the container against, e.g. \"1203\""
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "assumed": {
      +      "description": "Each value the tool inferred or defaulted, in words, so it can be checked with the user",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "check": {
      +      "description": "With un: whether the container may carry that substance, and why"
      +    },
      +    "cite": {
      +      "description": "Credit line with a link, for quoting the answer",
      +      "type": "string"
      +    },
      +    "code": {
      +      "description": "The UN packaging code, e.g. 3H1"
      +    },
      +    "docs": {
      +      "description": "Documentation for this tool",
      +      "type": "string"
      +    },
      +    "error": {
      +      "description": "When ok is false: what is missing or could not be read, and what to send instead",
      +      "type": "string"
      +    },
      +    "mark": {
      +      "description": "The mark as read"
      +    },
      +    "notes": {
      +      "description": "Points to watch for this mark"
      +    },
      +    "noun": {
      +      "description": "What the code describes, e.g. plastic jerrican, non-removable head"
      +    },
      +    "ok": {
      +      "description": "true with an answer. false when the tool needs one more input or cannot answer; error then says what to send",
      +      "type": "boolean"
      +    },
      +    "our_range": {
      +      "description": "Fortitude21 containers made to this code"
      +    },
      +    "parts": {
      +      "description": "Each part of the mark with its meaning"
      +    },
      +    "publisher": {
      +      "description": "Who publishes the tool, the Fortitude21 products that fit, with links, and quote_url, a link to ask for a quotation"
      +    },
      +    "source": {
      +      "description": "The regulations the reading follows"
      +    },
      +    "spec": {
      +      "description": "The code with its performance level"
      +    },
      +    "tool": {
      +      "description": "Link to the same answer on the interactive tool page"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description layers on operational behaviour that the annotations cannot express: unreadable input returns ok:false, only the first 120 characters are read, a `un` outside the 157 covered numbers still decodes but surfaces the error in `check`, unknown arguments are ignored and named in `assumed`, no auth needed, and a 10-request/10-second per-IP limit with HTTP 429. This is exactly the un-structured context an agent needs to call it correctly and back off on rate limits.

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 verb+resource, then labelled blocks (Use when / Instead / Inputs / Behaviour / Constraints) that an agent can scan. Nearly every sentence carries distinct information, including the ask-for-the-mark rule; the dense comma-separated lists of mark components and edge cases make it slightly heavy but not padded.

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?

An output schema exists, so return shape need not be described, and everything else is covered: input format expectations, partial-decode failure semantics, the coverage limit of the `un` check, argument handling, auth, and rate limits. For a 2-parameter, closed-world, read-only decoder, nothing material is left for the agent to guess.

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 coverage is 100%, so the baseline is 3, but the description goes further by explaining the interaction between the two parameters: `mark` alone merely decodes, while adding `un` performs a compatibility check against ADR 2025 Table A using the density limit printed in the mark. It also clarifies that a bare code like 3H1 yields meaning only. The only small gap is that the 157-number coverage boundary is stated in Behaviour rather than attached to the `un` parameter.

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?

Opens with a specific verb and resource ("Decode a UN packaging mark part by part") and enumerates exactly what is extracted: packaging code, performance level, density or gross mass, test pressure, year, state and maker, across packagings, IBCs, large packagings, salvage and reconditioned marks. That scope statement lets an agent distinguish it from the sibling lookup tools without opening the 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?

Explicit when-to-use ("the user has read a mark off a drum, jerrican, box or IBC") plus two named alternatives with their selecting conditions: un_number_packaging for which codes a substance may use, ibc_inspection_dates for an IBC's test dates. It even handles the negative case – if the mark has not been read, ask for it rather than describing the container.

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