Skip to main content
Glama

Verify US/Canada Driver License (Front OCR + Back PDF417)

verify_driver_license
Read-onlyIdempotent

Verify 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

NameRequiredDescriptionDefault
min_ageNoOptional minimum age threshold to verify (1-120, e.g. 18 or 21).
back_fileYesLocal 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_fileYesLocal file path, base64 string, or data URL of the front of the driver license (JPG/PNG/WebP/HEIC, max 4.5 MB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover the safety profile (readOnly, idempotent, non-destructive, openWorld). The description adds substantial behavior they don't: cost of 4 credits, Zero Data Retention, internal processing order (back barcode first, then front OCR), the exact failure mode (HTTP 422 with failed_side/capture_issue), and automatic full credit refund on unreadable barcodes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, endpoint, cost and scope, then the check pipeline, then failure/refund behavior, then input constraints. Dense but every clause carries operational information; nothing is redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter tool with no output schema, the definition covers inputs, cost, data retention, processing order and the error path thoroughly. The remaining gap is the success response shape (what verdict fields come back on a match/mismatch), which an agent must call to discover.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds relational meaning the schema cannot: the back file is consumed for AAMVA PDF417 decode first and the front is cross-checked against it, which explains why both are required and how they interact. It also frames min_age as an optional age threshold check, though it adds no new constraints beyond the schema's formats and size limit.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb, resource and scope: 'Single-call US & Canadian driver license verification' with the backing endpoint, plus the concrete checks performed (PDF417 decode, front OCR cross-check, DD vs. DCF, expiry, min age). An agent can distinguish this from generic siblings like scan_document or extract_pdf because the description pins the operation to driver-license verification specifically.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear preconditions (need both front and back images, back must show the PDF417 barcode, US/Canada only) and an explicit scope exclusion: 'Card-level consistency check only (does not query DMV registries).' It stops short of naming a sibling alternative for out-of-scope cases (e.g., non-AAMVA or non-North American licenses), so routing in edge cases is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.