Verify US/Canada Driver License (Front OCR + Back PDF417)
verify_driver_licenseVerify US and Canadian driver licenses by decoding the back PDF417 barcode and cross-checking front OCR, DD/DCF, expiry, and optional minimum age from uploaded images.
Instructions
Single-call US & Canadian driver license verification (POST /v1/driver-license-verify, 4 credits, strict Zero Data Retention). Runs back AAMVA PDF417 barcode decode first, then front OCR cross-check, Document Discriminator (DD vs. DCF), expiry, and optional minimum age check. Unreadable back barcodes return HTTP 422 with failed_side/capture_issue and automatically refund all 4 credits. Card-level consistency check only (does not query DMV registries). Supports JPG, PNG, WebP, and HEIC up to 4.5 MB each.
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": {
"front_file": "<front_file>",
"back_file": "<back_file>"
},
"name": "verify_driver_license"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| min_age | No | Optional minimum age threshold to verify (1-120, e.g. 18 or 21). | |
| back_file | Yes | Local file path, base64 string, or data URL of the back of the driver license showing the PDF417 barcode (JPG/PNG/WebP/HEIC, max 4.5 MB). | |
| front_file | Yes | Local file path, base64 string, or data URL of the front of the driver license (JPG/PNG/WebP/HEIC, max 4.5 MB). |