Gs1 element string parse

gs1-element-string-parse · version 1.0.0 · Identifiers & check digits · free, no key needed

Parse a bracketed or FNC1-separated GS1 element string into typed AI fields: implied decimals, dates and check digits.

Use when you need to: parse a gs1 element string · decode gs1-128 application identifiers · split a gtin barcode payload into ai fields.

Decide before calling

Read the versioned contract and the supported scope below. Reuse gs1-element-string-parse@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use gs1-element-string-parse@1.0.0 for parse a gs1 element string. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "text": "(01)04006381333931",
  "mode": "bracketed"
}

Response:

{
  "result": {
    "elements": [
      {
        "ai": "01",
        "title": "GTIN",
        "value": "04006381333931",
        "decimal": null,
        "date": null,
        "check_digit_valid": true
      }
    ],
    "data_version": "gs1-ai-subset-8-2026-10-01.1ea02f4e3b81"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "gs1-element-string-parse",
  "version": "1.0.0",
  "input": {
    "text": "(01)04006381333931",
    "mode": "bracketed"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/gs1-element-string-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"(01)04006381333931","mode":"bracketed"}'

The machine-readable contract is at /v1/tools/gs1-element-string-parse/versions/1.0.0.

CLI

node cli.mjs run gs1-element-string-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.