Skip to main content
Glama

EUDAMED Basic UDI-DI & UDI-DI / PI GS1 Modulo-10 Barcode Validator

eudamed_udi_di_validator
Read-onlyIdempotent

[EUDAMED Basic UDI-DI & UDI-DI / PI GS1 modulo-10 barcode validator. Pure calculation, read-only, side-effect free]. Audits Basic UDI-DI and UDI-DI / UDI-PI structures under Regulation (EU) 2017/745 Article 27 and Implementing Regulation (EU) 2021/1239, verifying GS1 GTIN-14 modulo-10 check digits and production identifiers. Usage: Pass agency, Basic UDI-DI, and UDI-DI/PI strings to audit EUDAMED registration readiness and format human-readable text. Returns: JSON object with { issuingAgency: string, basicUdiDi: string, isBasicUdiDiValid: boolean, udiDi: string, isUdiDiValid: boolean, udiDiCheckDigitCalculated: number, udiPiElementsPresent: array, eudamedRegistrationReady: boolean, statutoryVerdict: string, formattedHumanReadableRepresentation: string }.

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": {
      "issuingAgency": "<issuingAgency>",
      "basicUdiDi": "<basicUdiDi>",
      "udiDi": "<udiDi>"
    },
    "name": "eudamed_udi_di_validator"
  }
}

Input Schema

NameRequiredDescriptionDefault
udiDiYesUDI-DI static device identifier (e.g. 14-digit GTIN for GS1)
basicUdiDiYesBasic UDI-DI (Model identifier registered in EUDAMED)
issuingAgencyYesDesignated UDI issuing agency ex Commission Implementing Decision (EU) 2019/939
udiPiLotNumberNoBatch/Lot number production identifier (AI 10)
udiPiSerialNumberNoSerial number production identifier (AI 21)
udiPiSoftwareVersionNoSoftware identification version for SaMD (AI 8012)
udiPiExpirationDateYymmddNoExpiration date in YYMMDD format (AI 17)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description restates that with 'pure calculation, read-only, side-effect free' — useful confirmation but not new information. It does add genuinely behavioral context the annotations cannot: the deterministic check-digit computation, the statutory basis for the verdict, and the full list of returned fields in the absence of an output schema. The main gap is that it only describes GS1 modulo-10 validation while issuingAgency accepts HIBCC, ICCBBA and IFA, leaving the behavior for those agencies undisclosed.

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 a bracketed one-line summary of purpose and safety, followed by clearly labelled Usage and Returns blocks. Slightly redundant in repeating 'read-only, side-effect free' and in re-listing output fields in a dense single paragraph, but no sentence is wasted.

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?

With no output schema, the explicit Returns field list is essential and is provided, and the regulatory framing covers why the tool exists. For a 7-parameter validator the definition is largely complete, but the silent non-GS1 agency path (HIBCC/ICCBBA/IFA) and the meaning of 'eudamedRegistrationReady' versus 'statutoryVerdict' are left unexplained.

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 all seven parameters (including each UDI-PI element and its AI code) are already documented in the input schema. The description only restates that agency, Basic UDI-DI and UDI-DI/PI strings are passed, adding no format, normalization, or conditional requirements (e.g. which PI elements are mandatory per agency). Baseline 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?

The description names a specific verb ('audits', 'verifying') and a highly specific resource (EUDAMED Basic UDI-DI and UDI-DI/UDI-PI structures, GS1 GTIN-14 modulo-10 check digits), plus the governing regulations (EU 2017/745 Art. 27, EU 2021/1239). The resource is distinctive enough that an agent can separate it from siblings like clp_ufi_code_validator or taric_hs_validator 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 Guidelines3/5

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

The 'Usage:' line describes how to invoke it (pass agency, Basic UDI-DI, and UDI-DI/PI strings to audit EUDAMED registration readiness) and what goal it serves, which implies the when. But there is no explicit when-not condition, no prerequisite statement (e.g. data must already exist in EUDAMED), and no routing to any alternative tool.

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