validate_credit_card
Validate a credit card number using Luhn algorithm.
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": {
"number": "<number>"
},
"name": "validate_credit_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Credit card number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| number | Yes | ||
| reason | No | ||
| is_valid | Yes | ||
| card_type | No |