Validate Card Number
validate_card_numberValidate a credit card number via the Luhn checksum. Input digits only, 8–19 characters.
Instructions
Checks whether a card number passes the Luhn checksum algorithm. Accepts digits only (spaces/dashes should be stripped by the caller).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cardNumber": "<cardNumber>"
},
"name": "validate_card_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardNumber | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes |