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

build_epcis2_pharma_event

Converts a raw pharma scan into a GS1 EPCIS 2.0 JSON-LD ObjectEvent for Saudi SFDA RSD or UAE Tatmeen reporting.

Instructions

Generate a GS1 EPCIS 2.0 JSON-LD ObjectEvent (SGTIN / SGLN URIs) for Saudi SFDA RSD or UAE Tatmeen reporting.

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": "build_epcis2_pharma_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
regimeNoSFDA_RSD
raw_scanYes
sender_glnNo6281000000013
action_typeNoDISPENSE
receiver_glnNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it only discloses the output format (EPCIS 2.0 JSON-LD). It says nothing about whether anything is persisted or sent, whether the generated event is validated before return, how malformed raw_scan input is handled, or what the caller receives on success versus failure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the verb, artifact, identifier scheme, and target regimes all appear immediately. Nothing needs to be trimmed.

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?

For a five-parameter generation tool with zero schema coverage, no annotations, and no output schema, one sentence is not enough. An agent still cannot tell what raw_scan should contain, how the defaults behave, or what the returned object looks like, all of which are required to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must compensate and largely does not. It hints at the regime choice (SFDA RSD vs Tatmeen) and the SGTIN/SGLN identifier types, but the required raw_scan parameter's expected format, the GLN defaults, and the meaning of the four action_type enum values are all left unexplained.

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 names a specific verb and artifact: generating a GS1 EPCIS 2.0 JSON-LD ObjectEvent with SGTIN/SGLN URIs, scoped to SFDA RSD or UAE Tatmeen reporting. That is clearly distinct from the validate_/verify_ siblings, which check rather than produce artifacts, though no sibling is named explicitly.

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 phrase 'for Saudi SFDA RSD or UAE Tatmeen reporting' implies the reporting context in which to use it, and the regime parameter reinforces the two target jurisdictions. There is no explicit when-to-use vs when-not guidance, and no statement about whether output should then be passed to a sibling validator.

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