Skip to main content
Glama

Check digits of UFI, CAS, EC and GTIN

check_identifier_codes
Read-onlyIdempotent

Use this when someone wants to know whether a UFI, CAS number, EC number or GTIN/EAN is well formed: "Is CAS 64-17-5 valid?", "Check this UFI". Checks the check digit of identifiers found on data sheets and labels: UFI, CAS number, EC number, GTIN/EAN. One code per line or separated by semicolons. It says whether a code is well formed, never whether it was issued or belongs to a product. Nothing is stored. Do not use to find out which substance or product a code belongs to or whether it was ever issued; it only checks the check digit.

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": {
      "codes": "<codes>"
    },
    "name": "check_identifier_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
codesYesCodes, one per line, e.g. "CAS 64-17-5 N1Q0-30DW-K00N-4VKE 9006543210017"
languageNoLanguage of the answer: "de" (German, default), "en" (English) or "pl" (Polish). Product and account answers are written in German and English; content without a translation comes in German.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive, closed-world), so the bar is lower. The description still adds real scope disclosure: it checks only well-formedness of the check digit, never issuance or product ownership, and stores nothing. Slightly redundant with readOnlyHint on the storage point, and it doesn't say how per-code failures are reported.

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 trigger condition and bounded by an explicit exclusion, so it reads well for an agent. It does repeat the identifier list three times and restates the "not issued / not a product" limitation twice, which costs a little density.

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

Completeness4/5

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

For a two-parameter, no-output-schema tool, the description conveys input format, the semantic limit of the result, and the no-side-effect guarantee. What is missing is only the return shape when multiple codes are mixed valid and malformed, which keeps it short of 5.

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 baseline is 3, but the description adds a delimiter rule not present in the schema ("one code per line or separated by semicolons"), which matters for batching. The language parameter is left entirely to the schema, which is acceptable since it is fully self-documented with an enum.

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 (check) and a specific resource set (check digits of UFI, CAS, EC, GTIN/EAN), and enumerates the identifier types unambiguously. The title and first sentence let an agent distinguish this from siblings like check_sds_structure or check_gpsr_information 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?

Gives concrete trigger phrasings ("Is CAS 64-17-5 valid?", "Check this UFI") plus an explicit when-not: do not use to find the substance/product a code belongs to or whether it was ever issued. That is a positive use case and a negative boundary, which is the full standard.

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