Check a quote, invoice or ad against a license
check_documentCheck whether a contractor's quote, invoice, contract, business card, ad or truck photo matches a California license in this dataset. Send the document as text, as a PNG or JPEG image (base64), or both, plus the license number to check against (if the text shows a license number from the dataset, it is used). Returns a verdict (consistent, number_only, mismatch or unclear; number_only means only the license number matched, which anyone could copy), whether the business name and license number on the document match the record, whether the work described falls outside the license's classifications, and the license's status, bond and workers' comp checks. The verdict is a reading of the document, not proof. The document is read by TypeSafe's Jev model and is not stored by Swapwire; remove a homeowner's personal details before sending if you can.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The document's text, e.g. a pasted quote or ad. Up to 20,000 characters. | |
| image_base64 | No | A photo or scan of the document, base64-encoded PNG or JPEG, up to 5 MB. | |
| image_format | No | Format of image_base64, if it can't be detected. | |
| license_number | No | CSLB license number to check against, digits only. Optional if the text shows it. |