validate_gtin

Pack: gtin · Endpoint: https://gateway.pipeworx.io/gtin/mcp

Validate a barcode number — EAN-13, UPC-A (12), EAN-8, or GTIN-14 (keyless, offline). Checks the mod-10 check digit, reports the format, normalizes to GTIN-14, and returns the GS1 prefix + issuing country/region. Spaces/dashes ignored. Validates the number, not the product.

Parameters

NameTypeRequiredDescription
codestringyesA barcode/GTIN, e.g. “0036000291452” or “4006381333931”.

Example call

Arguments

{
  "code": "0036000291452"
}

curl

curl -X POST https://gateway.pipeworx.io/gtin/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"validate_gtin","arguments":{"code":"0036000291452"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('validate_gtin', {
  "code": "0036000291452"
});

More examples

{
  "code": "4006381333931"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "gtin": {
      "url": "https://gateway.pipeworx.io/gtin/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 15, 2026