Skip to main content
Glama
MENA GS1 Pharmaceutical Track-and-Trace & Egypt Nafeza 19-Digit ACID MCP Server

MENA GS1 Pharmaceutical Track-and-Trace & Egypt Nafeza 19-Digit ACID MCP Server

validate_mena_pharma_pack

Parses a GS1 DataMatrix pack and validates GTIN-14, expiry, batch and serial against SFDA RSD, UAE Tatmeen or Egypt EDA rules.

Instructions

Parse and validate a 2D GS1 DataMatrix pharmaceutical pack (AI 01 GTIN-14, AI 17 YYMMDD expiry incl. DD=00 rule, AI 10 Batch, AI 21 Serial) against Saudi SFDA RSD, UAE MoHAP Tatmeen, or Egypt EDA.

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": {
      "raw_scan": "<raw_scan>"
    },
    "name": "validate_mena_pharma_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
regimeNoSFDA_RSD
raw_scanYesHRI '(01)...(17)...(10)...(21)...' or raw FNC1 GS1 string.
reference_dateNoOptional YYYY-MM-DD date override.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that the tool parses AI 01 GTIN-14, AI 17 expiry including the DD=00 rule, AI 10 Batch, and AI 21 Serial, which is concrete behavioral detail. However, it does not state whether validation is read-only, what happens on invalid input, or what kind of result is returned.

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?

The description is a single front-loaded sentence that identifies the action and resource first, then adds the relevant GS1 AIs and regimes. It is dense but largely free of filler, though the parenthetical detail makes it long and slightly harder to scan.

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

Completeness2/5

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

This is a validation tool with no output schema and no annotations, so the description should ideally describe return behavior, error reporting, and the role of reference_date. It covers the input domain well but leaves output semantics and regime-selection context unstated, which is a significant completeness gap for agent use.

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 67%, so the description should add meaning where possible. It explains the GS1 AI content expected in raw_scan and mentions the DD=00 expiry rule, which helps interpret raw_scan. It does not mention the optional reference_date parameter or explain how that date override interacts with expiry validation.

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?

The description gives a specific verb-resource pair: 'Parse and validate a 2D GS1 DataMatrix pharmaceutical pack'. It also lists the GS1 AIs and the three regulatory regimes, so the primary purpose is clear. It does not explicitly differentiate itself from sibling validation tools such as validate_egypt_nafeza_acid, which keeps it from a 5.

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

Usage Guidelines2/5

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

The description states what the tool does but gives no explicit guidance on when to use it versus alternatives, when not to use it, or how to choose among the three regimes beyond listing them. The only implied usage comes from the tool name and regime options.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.