gtin_check_digit

Pack: gtin · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/gtin_check_digit for the schema, then POST the same URL with its arguments for the data.

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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the gtin pack
{
  "mcpServers": {
    "gtin": {
      "url": "https://gateway.pipeworx.io/gtin/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 29, 2026