Validate Card
validate_cardValidate a credit/debit card number (keyless, offline): Luhn (mod-10) checksum, detected card network (Visa/Mastercard/Amex/Discover/JCB/Diners/UnionPay/Maestro), and whether the length is valid for that network. Spaces/dashes are ignored. NOTE: this checks the number is well-formed — it does NOT verify the card is real/active/funded (that needs a payment processor).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"number": "4111 1111 1111 1111"
},
"name": "validate_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The card number, e.g. "4111 1111 1111 1111". |