Skip to main content
Glama
nbrain-pharma-islamic-customs-mcp

nbrain-pharma-islamic-customs-mcp

sfda_gs1_encode_datamatrix

Encodes GTIN-14, YYMMDD expiry, batch/lot, and serial into FNC1 DataMatrix and GS1 Digital Link for Saudi SFDA pharma compliance.

Instructions

Encodes GTIN-14, YYMMDD expiry, Batch/Lot, and Serial into optimal FNC1 DataMatrix & GS1 Digital Link.

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": {
      "gtin": "<gtin>",
      "expiry_yymmdd": "<expiry_yymmdd>",
      "batch_lot": "<batch_lot>",
      "serial": "<serial>"
    },
    "name": "sfda_gs1_encode_datamatrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
gtinYes
serialYes
batch_lotYes
expiry_yymmddYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 behavioral burden. It discloses the output formats (FNC1 DataMatrix and GS1 Digital Link), which is useful, but says nothing about validation behavior (e.g., GTIN check digit, malformed dates), error handling, whether both encodings are always returned, or how the result is structured. That leaves meaningful behavioral gaps for an encoding tool with four required inputs.

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 zero filler. Every clause names either an input or an output artifact, so nothing is wasted.

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 four-required-parameter encoding tool with no annotations and no output schema, the description is too thin. An agent still cannot tell what the return value looks like (one combined string, separate image and URL fields, binary?), how invalid inputs are handled, or whether the tool validates GS1 syntax. These are material omissions for correct invocation and result handling.

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 0%, so the description must compensate for all parameter meaning. It does add format guidance for two parameters (GTIN-14 implies a 14-digit form, YYMMDD implies a six-digit date), but gives no constraints for batch_lot or serial (length, allowed characters, empty handling) and does not mention GTIN check-digit validation. Partial compensation, so a mid score.

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 uses a specific verb ('Encodes') and enumerates exactly which four fields are consumed (GTIN-14, YYMMDD expiry, Batch/Lot, Serial) plus the two output artifacts (FNC1 DataMatrix and GS1 Digital Link). This is far more specific than the bare tool name. It does not differentiate from siblings, but the listed siblings are unrelated domains, so there is little to distinguish against.

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?

There is no statement of when to use this tool versus alternatives, no prerequisites, and no exclusions. The only implied usage is 'encode these fields', which an agent must infer from the input list. No guidance is given about when a DataMatrix is needed versus a Digital Link, even though the tool produces both.

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