gtin_check_digit

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

Compute the mod-10 check digit for GTIN/EAN/UPC data digits (all digits EXCEPT the check digit). Use to generate or repair a barcode.

Parameters

NameTypeRequiredDescription
datastringyesThe data digits without the check digit, e.g. “400638133393”.

Example call

Arguments

{
  "data": "400638133393"
}

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":"gtin_check_digit","arguments":{"data":"400638133393"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('gtin_check_digit', {
  "data": "400638133393"
});

More examples

{
  "data": "003600029145"
}

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