check_luhn

Pack: creditcard · 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/check_luhn for the schema, then POST the same URL with its arguments for the data.

Run a raw Luhn (mod-10) check-digit validation on any numeric string (cards, IMEI, national IDs, etc.). Returns whether the check digit is valid and what the correct check digit would be.

Parameters

NameTypeRequiredDescription
numberstringyesA numeric string to Luhn-check.

Example call

Arguments

{
  "number": "4111111111111111"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('check_luhn', {
  "number": "4111111111111111"
});

More examples

{
  "number": "356938035643809"
}

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 creditcard pack
{
  "mcpServers": {
    "creditcard": {
      "url": "https://gateway.pipeworx.io/creditcard/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 29, 2026