Swapwire is an MCP server published by ai.swapwire, hosted at swapwire.ai. When last checked on 2026-11-24 it was working: it answers and lists its tools. It declares 6 tools, including get_license, search_licenses, check_document, get_area_stats, get_prices.
California contractor license checks (CSLB): status, bond, workers' comp, quote matching.
Nothing else in the archive shares these values.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Full record for one contractor license by number: status, license types, bond, insurance, workers' comp, discipline, complaints and citations where published, city permits, and the agency source link. California is the default; pass state for others. Use this when you have a license number, or after search_licenses to read a match in full (use the id it returns).
| Parameter | Type | Description |
|---|---|---|
| state | string | Two-letter state code. Default CA. License records: CO, CT, FL, IL, KS, MN, NY, OR, PA, TX, VA, WA. City permit records only (record_type permits_only, no state license data): AZ, GA, HI, LA, MA, MI, NC, NV, OH, TN. |
| license_number * | string | License number as the agency prints it, or the id from search_licenses, e.g. "1154967" (CA) or "CGC047089" (FL). |
Inferred from the host name and headers: what a server runs on, not who runs it.
{
"name": "get_license",
"title": "Get a contractor license record",
"description": "Full record for one contractor license by number: status, license types, bond, insurance, workers' comp, discipline, complaints and citations where published, city permits, and the agency source link. California is the default; pass state for others. Use this when you have a license number, or after search_licenses to read a match in full (use the id it returns).",
"inputSchema": {
"type": "object",
"required": [
"license_number"
],
"properties": {
"state": {
"type": "string",
"description": "Two-letter state code. Default CA. License records: CO, CT, FL, IL, KS, MN, NY, OR, PA, TX, VA, WA. City permit records only (record_type permits_only, no state license data): AZ, GA, HI, LA, MA, MI, NC, NV, OH, TN."
},
"license_number": {
"type": "string",
"description": "License number as the agency prints it, or the id from search_licenses, e.g. \"1154967\" (CA) or \"CGC047089\" (FL)."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"note": {
"type": "string",
"description": "Why nothing was found, when found is false."
},
"found": {
"type": "boolean",
"description": "False when the license is not in this dataset. That does not mean the contractor is unlicensed."
},
"state": {
"type": [
"string",
"null"
]
},
"alerts": {
"type": "array",
"items": {
"type": [
"string",
"null"
]
},
"description": "Plain sentences for anything that is not ok."
},
"caveat": {
"type": [
"string",
"null"
]
},
"checks": {
"type": "object",
"description": "California: one reading each of the license, bond and workers' comp, with a quotable detail sentence."
},
"status": {
"type": [
"string",
"null"
],
"description": "Other states: the agency's own status."
},
"page_url": {
"type": [
"string",
"null"
]
},
"recourse": {
"type": [
"object",
"null"
],
"description": "What to do if this contractor doesn't finish the job or pay its subs: summary (a sentence to quote), this license's bond and how to claim it, the agency to complain to, the state recovery fund if any, guide_url and checked_on. From official sources; not legal advice."
},
"data_as_of": {
"type": "string",
"description": "Date the data was copied from the agency, YYYY-MM-DD."
},
"verify_url": {
"type": [
"string",
"null"
],
"description": "Other states: the agency's live lookup."
},
"record_type": {
"type": [
"string",
"null"
],
"description": "license, or permits_only for businesses known only from city permits."
},
"status_code": {
"type": [
"string",
"null"
],
"description": "California: CSLB status, e.g. CLEAR."
},
"status_class": {
"type": [
"string",
"null"
],
"description": "Other states: active, inactive, expired, suspended, revoked or other."
},
"business_name": {
"type": [
"string",
"null"
]
},
"license_number": {
"type": [
"string",
"null"
]
},
"related_licenses": {
"type": [
"object",
"null"
],
"description": "California: suspended licenses that share a person (officer, owner or qualifier, matched by CSLB's person ID) with this one, each with a quotable sentence, reason, date and CSLB link. No names."
},
"source_record_url": {
"type": [
"string",
"null"
],
"description": "California: the live CSLB record."
},
"workers_comp_exempt_large_jobs": {
"type": [
"object",
"null"
],
"description": "California: for a license exempt from workers' comp, city permits since 2021 that declared $100,000 or more, with a quotable sentence and caveat."
}
},
"description": "One license record, or found: false with a note. California records carry checks (license, bond, workers' comp) and alerts; other states carry status_class, actions and verify_url."
},
"annotations": {
"title": "Get a contractor license record",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search contractor licenses (California by default; pass state for others) three ways. (1) By business name, as written on a quote, invoice, truck or website: typos, word forms (plumber/plumbing), missing words and Inc/LLC are handled, and other names on the CSLB record are matched too (other_business_names lists the ones that are business names). Each match has a match_level (exact, strong, partial) and says what it matched on. (2) By license number. (3) With no name, by trade and/or city to list licensed contractors. The trade can be a description of the job ("my AC is blowing warm air", "sewage backing up"); read_as says how it was read. Lists: clear licenses only by default, in a shuffled order fixed until the next data refresh, 10 per page, up to 5 pages. Lists are not rankings or recommendations. A name match is not proof of identity, so give the user the license number and ask them to confirm it with the contractor. With no state, the state is read from the city ("Seattle, WA", a ZIP, or a city only one state's records list), and a name with no close California match is tried in every state. A question ("is 50% upfront legal", "contractor took my deposit") is not searched: mode is question, with guides that answer it.
| Parameter | Type | Description |
|---|---|---|
| city | string | City or ZIP code, e.g. "Oakland", "Oakland, CA" or "94704". |
| name | string | Business name or part of it, e.g. "Diamond Plumbing". Leave out to list by trade and/or city. |
| page | integer | For lists: page number, default 1. |
| work | string | California lists only: a kind of work from city permits, e.g. "water heater", "heat pump", "sewer". Lists only contractors with San Francisco permits for that work in the last five years. |
| state | string | Two-letter state code. Default CA. License records: CO, CT, FL, IL, KS, MN, NY, OR, PA, TX, VA, WA. City permit records only (record_type permits_only, no state license data): AZ, GA, HI, LA, MA, MI, NC, NV, OH, TN. |
| trade | string | Trade in plain words or a CSLB code, e.g. "plumbing", "furnace", "water heater", "sewer line", "C-36". |
| status | string | For lists: clear (default) or all, which includes suspended and other licenses. |
| license | string | CSLB license number, if you have one. |
{
"name": "search_licenses",
"title": "Search contractor licenses",
"description": "Search contractor licenses (California by default; pass state for others) three ways. (1) By business name, as written on a quote, invoice, truck or website: typos, word forms (plumber/plumbing), missing words and Inc/LLC are handled, and other names on the CSLB record are matched too (other_business_names lists the ones that are business names). Each match has a match_level (exact, strong, partial) and says what it matched on. (2) By license number. (3) With no name, by trade and/or city to list licensed contractors. The trade can be a description of the job (\"my AC is blowing warm air\", \"sewage backing up\"); read_as says how it was read. Lists: clear licenses only by default, in a shuffled order fixed until the next data refresh, 10 per page, up to 5 pages. Lists are not rankings or recommendations. A name match is not proof of identity, so give the user the license number and ask them to confirm it with the contractor. With no state, the state is read from the city (\"Seattle, WA\", a ZIP, or a city only one state's records list), and a name with no close California match is tried in every state. A question (\"is 50% upfront legal\", \"contractor took my deposit\") is not searched: mode is question, with guides that answer it.",
"inputSchema": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "City or ZIP code, e.g. \"Oakland\", \"Oakland, CA\" or \"94704\"."
},
"name": {
"type": "string",
"description": "Business name or part of it, e.g. \"Diamond Plumbing\". Leave out to list by trade and/or city."
},
"page": {
"type": "integer",
"maximum": 5,
"minimum": 1,
"description": "For lists: page number, default 1."
},
"work": {
"type": "string",
"description": "California lists only: a kind of work from city permits, e.g. \"water heater\", \"heat pump\", \"sewer\". Lists only contractors with San Francisco permits for that work in the last five years."
},
"state": {
"type": "string",
"description": "Two-letter state code. Default CA. License records: CO, CT, FL, IL, KS, MN, NY, OR, PA, TX, VA, WA. City permit records only (record_type permits_only, no state license data): AZ, GA, HI, LA, MA, MI, NC, NV, OH, TN."
},
"trade": {
"type": "string",
"description": "Trade in plain words or a CSLB code, e.g. \"plumbing\", \"furnace\", \"water heater\", \"sewer line\", \"C-36\"."
},
"status": {
"enum": [
"clear",
"all"
],
"type": "string",
"description": "For lists: clear (default) or all, which includes suspended and other licenses."
},
"license": {
"type": "string",
"description": "CSLB license number, if you have one."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"description": "name, license or browse."
},
"note": {
"type": [
"string",
"null"
]
},
"query": {
"type": "object"
},
"state": {
"type": [
"string",
"null"
]
},
"total": {
"type": "integer"
},
"guides": {
"type": "array",
"description": "mode question: guides that answer the question (title, url)."
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Other states: the id to pass to get_license."
},
"city": {
"type": [
"string",
"null"
]
},
"json_url": {
"type": [
"string",
"null"
]
},
"page_url": {
"type": [
"string",
"null"
]
},
"match_level": {
"type": [
"string",
"null"
],
"description": "exact, strong or partial."
},
"business_name": {
"type": [
"string",
"null"
]
},
"license_number": {
"type": [
"string",
"null"
]
}
}
}
},
"read_as": {
"description": "How a plain-language trade or job description was read."
},
"data_as_of": {
"type": "string",
"description": "Date the data was copied from the agency, YYYY-MM-DD."
},
"state_inferred": {
"type": [
"string",
"null"
],
"description": "With no state given: which state was searched and why."
}
},
"description": "Matches for a name or license number, or a shuffled list for a trade and city."
},
"annotations": {
"title": "Search contractor licenses",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Check 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, whether the down payment asked for is over California's limit ($1,000 or 10% of the price, whichever is less), 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.
| Parameter | Type | Description |
|---|---|---|
| text | string | The document's text, e.g. a pasted quote or ad. Up to 20,000 characters. |
| image_base64 | string | A photo or scan of the document, base64-encoded PNG or JPEG, up to 5 MB. |
| image_format | string | Format of image_base64, if it can't be detected. |
| license_number | string | CSLB license number to check against, digits only. Optional if the text shows it. |
{
"name": "check_document",
"title": "Check a quote, invoice or ad against a license",
"description": "Check 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, whether the down payment asked for is over California's limit ($1,000 or 10% of the price, whichever is less), 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.",
"inputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The document's text, e.g. a pasted quote or ad. Up to 20,000 characters."
},
"image_base64": {
"type": "string",
"description": "A photo or scan of the document, base64-encoded PNG or JPEG, up to 5 MB."
},
"image_format": {
"enum": [
"png",
"jpg"
],
"type": "string",
"description": "Format of image_base64, if it can't be detected."
},
"license_number": {
"type": "string",
"description": "CSLB license number to check against, digits only. Optional if the text shows it."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"note": {
"type": [
"string",
"null"
]
},
"checks": {
"type": "object"
},
"reasons": {
"type": "array",
"items": {
"type": "string"
}
},
"verdict": {
"type": [
"string",
"null"
],
"description": "consistent, number_only, mismatch or unclear; or needs_license_number or license_not_in_dataset, with a note saying what to do."
},
"data_as_of": {
"type": "string",
"description": "Date the data was copied from the agency, YYYY-MM-DD."
},
"name_check": {
"type": [
"string",
"null"
]
},
"status_code": {
"type": [
"string",
"null"
]
},
"down_payment": {
"type": [
"object",
"null"
],
"description": "The down payment the text asks for, read by rule: asked_usd, asked_percent, contract_price_usd, limit_usd, over_limit (over California's $1,000 or 10% limit), detail, guide_url."
},
"number_check": {
"type": [
"string",
"null"
]
},
"business_name": {
"type": [
"string",
"null"
]
},
"license_number": {
"type": [
"string",
"null"
]
},
"source_record_url": {
"type": [
"string",
"null"
]
},
"work_outside_classifications": {
"type": "array"
}
},
"description": "A reading of the document against one license."
},
"annotations": {
"title": "Check a quote, invoice or ad against a license",
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}
}Counts for each county and trade in the dataset: licenses, how many carry workers' comp insurance or are exempt, how many have a suspension code, median years licensed and how many were issued in the last two years. Useful for saying whether one contractor's record is typical.
| Parameter | Type | Description |
|---|---|---|
| trade | string | Optional trade filter. |
| county | string | Optional county filter. |
{
"name": "get_area_stats",
"title": "Get license statistics by county and trade",
"description": "Counts for each county and trade in the dataset: licenses, how many carry workers' comp insurance or are exempt, how many have a suspension code, median years licensed and how many were issued in the last two years. Useful for saying whether one contractor's record is typical.",
"inputSchema": {
"type": "object",
"properties": {
"trade": {
"enum": [
"HVAC",
"Plumbing",
"Sewer and septic"
],
"type": "string",
"description": "Optional trade filter."
},
"county": {
"enum": [
"Alameda",
"Contra Costa"
],
"type": "string",
"description": "Optional county filter."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"trade": {
"type": "string"
},
"county": {
"type": "string"
},
"licenses": {
"type": "integer"
},
"page_url": {
"type": "string"
},
"classification": {
"type": "string"
},
"with_suspension_code": {
"type": "integer"
},
"median_years_licensed": {
"type": "number"
},
"issued_in_last_2_years": {
"type": "integer"
},
"exempt_from_workers_comp": {
"type": "integer"
},
"with_workers_comp_insurance": {
"type": "integer"
}
}
}
},
"source": {
"type": "string"
},
"data_as_of": {
"type": "string",
"description": "Date the data was copied from the agency, YYYY-MM-DD."
}
}
},
"annotations": {
"title": "Get license statistics by county and trade",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Median and middle half (25th to 75th percentile) of what common home jobs cost, from two kinds of public record. (1) Rebate, loan and incentive program records in Oregon, New York, Massachusetts, Connecticut and Delaware: installed cost of heat pumps, solar, battery storage and weatherization, statewide and by county or city. (2) City permit files in 23 US cities and counties (San Francisco, Los Angeles, Seattle, Portland, Austin, Miami-Dade and others): the job value declared on the permit for water heaters (tank, tankless, heat pump), heat pumps, mini splits, furnaces, air conditioners, sewer lines, re-pipes, roof replacements, electrical panels, solar, EV chargers and kitchen and bath remodels, kept to single-job permits at one home. Each permit series gives value_listed_share, the share of the job's permits that list a value at all; where low_value_coverage is true (under a quarter), the median is not the typical job, so do not quote it as one. A declared permit valuation is the applicant's estimate, not a paid price, and often runs low; say so when you quote one. Job words such as "hot water heater", "sewer line" or "AC" and city or county names ("Portland" also finds Multnomah County) are understood. Use it to tell a user whether a quote is in the usual range, and cite the source.
| Parameter | Type | Description |
|---|---|---|
| job | string | The job, e.g. "water heater", "sewer line", "AC", "heat pump", "roof", "solar", "weatherization". |
| area | string | City or county, e.g. "Seattle", "Oakland" or "Multnomah". Default: statewide program series and every city's permit series. |
| state | string | Two-letter state code, e.g. "OR". |
{
"name": "get_prices",
"title": "Get typical home job costs from public records",
"description": "Median and middle half (25th to 75th percentile) of what common home jobs cost, from two kinds of public record. (1) Rebate, loan and incentive program records in Oregon, New York, Massachusetts, Connecticut and Delaware: installed cost of heat pumps, solar, battery storage and weatherization, statewide and by county or city. (2) City permit files in 23 US cities and counties (San Francisco, Los Angeles, Seattle, Portland, Austin, Miami-Dade and others): the job value declared on the permit for water heaters (tank, tankless, heat pump), heat pumps, mini splits, furnaces, air conditioners, sewer lines, re-pipes, roof replacements, electrical panels, solar, EV chargers and kitchen and bath remodels, kept to single-job permits at one home. Each permit series gives value_listed_share, the share of the job's permits that list a value at all; where low_value_coverage is true (under a quarter), the median is not the typical job, so do not quote it as one. A declared permit valuation is the applicant's estimate, not a paid price, and often runs low; say so when you quote one. Job words such as \"hot water heater\", \"sewer line\" or \"AC\" and city or county names (\"Portland\" also finds Multnomah County) are understood. Use it to tell a user whether a quote is in the usual range, and cite the source.",
"inputSchema": {
"type": "object",
"properties": {
"job": {
"type": "string",
"description": "The job, e.g. \"water heater\", \"sewer line\", \"AC\", \"heat pump\", \"roof\", \"solar\", \"weatherization\"."
},
"area": {
"type": "string",
"description": "City or county, e.g. \"Seattle\", \"Oakland\" or \"Multnomah\". Default: statewide program series and every city's permit series."
},
"state": {
"type": "string",
"description": "Two-letter state code, e.g. \"OR\"."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"note": {
"type": "string"
},
"pages": {
"type": "string"
},
"total": {
"type": "integer",
"description": "Series that matched; at most 25 are returned."
},
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"n": {
"type": "integer",
"description": "Jobs behind the figures."
},
"id": {
"type": "string"
},
"p25": {
"type": [
"number",
"null"
]
},
"p75": {
"type": [
"number",
"null"
]
},
"area": {
"type": "string"
},
"kind": {
"type": "string",
"description": "\"declared_permit_valuation\" for values declared on city permits (the applicant's estimate, not a paid price); absent for rebate and program costs."
},
"unit": {
"type": "string"
},
"notes": {},
"state": {
"type": "string"
},
"title": {
"type": "string"
},
"median": {
"type": [
"number",
"null"
]
},
"source": {},
"job_type": {
"type": "string"
},
"value_basis": {
"type": "string"
},
"low_value_coverage": {
"type": "boolean",
"description": "Permit series only: true when under a quarter of the job's permits list a value, so the median describes a minority filed another way, not the typical job. Do not quote it as a typical price."
},
"value_listed_share": {
"type": [
"number",
"null"
],
"description": "Permit series only: share of that place's home permits for the job that list a declared value at all, 0 to 1."
}
}
}
},
"job_read_as": {
"type": [
"string",
"null"
],
"description": "The job type the job words were read as, e.g. \"water_heater\" for \"hot water heater\"."
}
}
},
"annotations": {
"title": "Get typical home job costs from public records",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Answers rules questions homeowners ask before hiring, for one state: how much a contractor may ask up front (deposit_limit), when a state license is needed (license_threshold), what an unlicensed handyman may do, including electrical or plumbing (handyman_exemption), whether a job needs a permit (permit_needed: give job, e.g. "water heater", and city), whether a homeowner can pull their own permit (who_can_pull_permits), required bonds and insurance, what a contract must include and the right to cancel (contract_requirements), and the official license lookup (license_lookup). Each answer is short, with its key numbers, conditions, exceptions, an official source URL for every fact, the date it was checked and a Swapwire guide link. status not_verified means Swapwire could not confirm it from an official source: send the user to the agency linked, do not guess. Permits are mostly city rules: the answer gives the state baseline and, for cities where Swapwire has permit records, the city's permit portal. States: CA, AZ, CO, CT, FL, GA, HI, IL, KS, LA, MA, MI, MN, NC, NV, NY, OH, OR, PA, TN, TX, VA, WA. Leave topic out for a one-line answer on every topic. General information, not legal advice.
| Parameter | Type | Description |
|---|---|---|
| job | string | For permit_needed: the job, in plain words or one of water_heater, hvac_replacement, roof, electrical_panel, fence, deck, bathroom_remodel. |
| city | string | For permit_needed: the city or county, e.g. "Seattle". Returns its permit portal and any job rules from the city's own pages. |
| state | string | Two-letter state code or state name, e.g. "CA" or "Texas". Optional when city names a city Swapwire has permit rules for. |
| topic | string | Which rule. Leave out for a summary of every topic. |
{
"name": "get_rules",
"title": "Get state rules on deposits, licenses, handymen and permits",
"description": "Answers rules questions homeowners ask before hiring, for one state: how much a contractor may ask up front (deposit_limit), when a state license is needed (license_threshold), what an unlicensed handyman may do, including electrical or plumbing (handyman_exemption), whether a job needs a permit (permit_needed: give job, e.g. \"water heater\", and city), whether a homeowner can pull their own permit (who_can_pull_permits), required bonds and insurance, what a contract must include and the right to cancel (contract_requirements), and the official license lookup (license_lookup). Each answer is short, with its key numbers, conditions, exceptions, an official source URL for every fact, the date it was checked and a Swapwire guide link. status not_verified means Swapwire could not confirm it from an official source: send the user to the agency linked, do not guess. Permits are mostly city rules: the answer gives the state baseline and, for cities where Swapwire has permit records, the city's permit portal. States: CA, AZ, CO, CT, FL, GA, HI, IL, KS, LA, MA, MI, MN, NC, NV, NY, OH, OR, PA, TN, TX, VA, WA. Leave topic out for a one-line answer on every topic. General information, not legal advice.",
"inputSchema": {
"type": "object",
"properties": {
"job": {
"type": "string",
"description": "For permit_needed: the job, in plain words or one of water_heater, hvac_replacement, roof, electrical_panel, fence, deck, bathroom_remodel."
},
"city": {
"type": "string",
"description": "For permit_needed: the city or county, e.g. \"Seattle\". Returns its permit portal and any job rules from the city's own pages."
},
"state": {
"type": "string",
"description": "Two-letter state code or state name, e.g. \"CA\" or \"Texas\". Optional when city names a city Swapwire has permit rules for."
},
"topic": {
"enum": [
"deposit_limit",
"license_threshold",
"handyman_exemption",
"permit_needed",
"who_can_pull_permits",
"bond_and_insurance_requirements",
"contract_requirements",
"license_lookup"
],
"type": "string",
"description": "Which rule. Leave out for a summary of every topic."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"job": {
"type": "object",
"description": "permit_needed with a job: the answer for that job; level says whether it is a city or state rule, or none on file."
},
"city": {
"type": "object",
"description": "permit_needed with a city: the city's permit portal and any job rules from the city's own pages."
},
"jobs": {
"type": "object",
"description": "permit_needed: statewide answers by job, where verified."
},
"note": {
"type": "string"
},
"state": {
"type": "string"
},
"topic": {
"type": "string",
"description": "The topic answered, or all."
},
"agency": {
"type": "object"
},
"answer": {
"type": "string",
"description": "Short plain answer to quote."
},
"status": {
"type": "string",
"description": "verified, or not_verified: could not be confirmed from an official source; send the user to the agency in sources."
},
"topics": {
"type": "array",
"items": {
"type": "object"
},
"description": "When no topic is given: one short answer per topic."
},
"checked": {
"type": "string",
"description": "Date the sources were checked, YYYY-MM-DD."
},
"numbers": {
"type": "object",
"description": "Key numbers, e.g. max_deposit_usd, max_deposit_pct, license_required_from_usd."
},
"related": {
"type": "object",
"description": "Links: the state's rules page, how to check a license, and what to do about a problem contractor."
},
"sources": {
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"supports": {
"type": "string"
}
}
}
},
"guide_url": {
"type": "string",
"description": "Swapwire guide page for this topic."
},
"conditions": {
"type": "array",
"items": {
"type": "string"
}
},
"exceptions": {
"type": "array",
"items": {
"type": "string"
}
},
"state_name": {
"type": "string"
},
"cities_with_permit_data": {
"type": "array",
"items": {
"type": "string"
}
}
},
"description": "One rules topic for one state, or a line per topic when no topic is given. Every fact has an official source and a checked date."
},
"annotations": {
"title": "Get state rules on deposits, licenses, handymen and permits",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Swapwire publishes dated facts about home-services contractor licenses, copied from public records: license status, bonds, insurance, discipline, complaints and city permits. Coverage: - California (state "CA", the default): C-20 (HVAC), C-36 (plumbing) and C-42 (sewer and septic) licenses based in Alameda and Contra Costa counties, from the CSLB file, refreshed weekly, with San Francisco permit records. - Other states (pass state): CO, CT, FL, IL, KS (Johnson County), MN, NY (mostly New York City), OR, PA (Philadelphia and Pittsburgh), TX, VA and WA contractor business licenses from each state's licensing agency (and New York City's), with discipline, complaint, bond and insurance records where the agency publishes them. - Permit-only states (pass state): AZ (Mesa, Phoenix, Scottsdale, Tempe), GA (DeKalb County), HI (Honolulu), LA (New Orleans), MA (Cambridge, Somerville), MI (Detroit), NC (Raleigh), NV (Las Vegas), OH (Cleveland, Columbus, Cincinnati) and TN (Nashville). These are businesses named as the contractor on city permits (record_type "permits_only"), with permit counts, outcomes and dates. Swapwire has no copy of these states' license records, so a status of "Not copied" says nothing about whether the business is licensed: give the user the license number printed on the permits, if any, and the state lookup link (verify_url). Which tool: - The user names a contractor or describes a job ("Diamond Plumbing in Concord", "my AC is blowing warm air in Oakland"): search_licenses. - You have a license number, or want the full record for a match: get_license. - The user has a quote, invoice, contract, ad or truck photo: check_document, with the license number if you have it. - The user asks whether a record is typical for the area: get_area_stats. - The user asks what the rules are, not about one contractor ("is 50% down legal", "do I need a permit to replace a water heater", "can a handyman do electrical", "do I need a license for drywall"): get_rules, with the state and topic (and the job and city for permits). Do not answer a rules question with a list of contractors. A usual flow is search_licenses, then get_license on the match, then tell the user the license number, status, alerts, data date and CSLB link. Using the data well: - A name match is not proof of identity. Give the user the license number you matched and ask them to confirm it with the contractor. - State the data date (data_as_of). For a decision being made today, link the agency's live record (source_record_url or verify_url). - No result means the license is not in this dataset. It does not mean the contractor is unlicensed: licenses held under a person's own name are not published. - A complaint is an allegation unless its outcome says otherwise. Records matched by business name rather than license number can belong to another business with the same name. - The data has no reviews and no prices for individual jobs. Do not infer quality from a missing record. - When the user says a contractor took a deposit, abandoned the job or left subcontractors unpaid, call get_license and use its recourse field: the license's own bond and surety, where to complain, and the state's guide. - For a gas smell, a carbon monoxide alarm or sparking wiring, tell the user to leave and call the utility or 911.
Names, descriptions and schemas were written by the server and are shown as data.