Skip to main content
Glama
Apify Public Data & Leads

Apify Public Data & Leads

US Multi-State Contractor License Search

us_contractor_license_search
Read-only

Search California CSLB and Oregon CCB contractor-license records in one call by business, qualifier, or person name to vet contractors or build leads across both states.

Instructions

Search California CSLB and Oregon CCB contractor-license records from one call by business, qualifier, or person name, returning a normalized, source-tagged record per state match.

Behavioral Transparency:

  • Execution: Network call executed synchronously in the cloud via Apify Actor 'captainhandsome/us-contractor-license-search'.

  • Side Effects: Reads public sources and creates a billed Actor run and dataset on your Apify account.

  • Authentication: Requires APIFY_TOKEN environment variable.

  • Latency & Limits: Typical run duration is 15-45 seconds without detail pages, longer with include_details enabled and with more states selected; timeout capped at 120 seconds.

Usage Guidelines:

  • When to use: Use for contractor vetting or lead building across California and Oregon in one call, or when it is not yet known which of the two states holds the licence.

  • When NOT to use: Do not use for a single known state where a dedicated tool is faster (e.g. 'california_contractor_license_search'), for states outside California/Oregon, or for general business-entity (non-licence) registry lookups.

  • Named alternatives: Use 'california_contractor_license_search' for a California-only lookup, or 'alabama_business_search'/'florida_new_filings_search'/'us_business_entity_search' for general business-entity registries rather than contractor licences.

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": {
      "search_query": "<search_query>"
    },
    "name": "us_contractor_license_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
statesNoState licence sources to search. Defaults to both California and Oregon; narrow this to speed up a run when the state is already known.
max_resultsNoMaximum number of licence records to return and bill across all selected states. Defaults to 10. At most 100 per call.
search_queryYesBusiness, qualifier, or person name to look up in the selected contractor-license registries (e.g. 'SMITH' or 'Smith Construction').
include_detailsNoWhen true, opens each licence's detail page to add bonding, insurance, workers' compensation, classifications, disciplinary history, and issue/expiry dates. Adds one request per record; leave off for a fast lookup.

Output Schema

NameRequiredDescriptionDefault
runNo
errorNo
statusYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.6.2
    • changedInput schema / properties / max_results / description
      Previous value: -"Maximum number of licence records to return and bill across all selected states. Defaults to 10."New value: +"Maximum number of licence records to return and bill across all selected states. Defaults to 10. At most 100 per call."
    • changedInput schema / properties / max_results / maximum
      Previous value: -10000New value: +100
  2. Changed22 schema fields changedv1.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / states / maxItems
      Added value: +100
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": "object"
      +}
    • removedOutput schema / properties / results / description
      Removed value: -"Collection of normalized, source-tagged contractor-license records matching the search query."
    • changedOutput schema / properties / results / items / properties / business_entity / description
      Previous value: -"Legal form held for the licensee, from the licence detail page (requires include_details)."New value: +"Legal form CSLB holds for the licensee, from the licence detail page."
    • addedOutput schema / properties / results / items / properties / business_entity / title
      Added value: +"Business entity type"
    • changedOutput schema / properties / results / items / properties / business_name / description
      Previous value: -"Business name value returned by the upstream source."New value: +"Structured business name value returned by the upstream source."
    • addedOutput schema / properties / results / items / properties / business_name / title
      Added value: +"Business Name"
    • changedOutput schema / properties / results / items / properties / city / description
      Previous value: -"City displayed for the license record."New value: +"California city displayed for the license record."
    • addedOutput schema / properties / results / items / properties / city / title
      Added value: +"City"
    • changedOutput schema / properties / results / items / properties / contractor_name / description
      Previous value: -"Contractor or business name shown in the result."New value: +"Contractor or business name shown in the CSLB result."
    • addedOutput schema / properties / results / items / properties / contractor_name / title
      Added value: +"Contractor name"
    • addedOutput schema / properties / results / items / properties / license_number / title
      Added value: +"License number"
    • changedOutput schema / properties / results / items / properties / name_type / description
      Previous value: -"Structured name-type value returned by the upstream source."New value: +"Structured name type value returned by the upstream source."
    • addedOutput schema / properties / results / items / properties / name_type / title
      Added value: +"Name Type"
    • changedOutput schema / properties / results / items / properties / source / description
      Previous value: -"State licence registry that produced the record (california or oregon)."New value: +"Structured source value returned by the upstream source."
    • addedOutput schema / properties / results / items / properties / source / title
      Added value: +"Source"
    • addedOutput schema / properties / results / items / properties / status / title
      Added value: +"License status"
    • changedOutput schema / properties / results / items / required
      Previous value: -[
      -  "source"
      -]New value: +[
      +  "source",
      +  "license_number",
      +  "status"
      +]
    • addedOutput schema / properties / run
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "success",
      +    "empty_unverified",
      +    "partial",
      +    "error"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "results"
      -]New value: +[
      +  "results",
      +  "status"
      +]
  3. Addedv1.0.11

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: discloses the underlying Apify Actor, that a billed run and dataset are created, the APIFY_TOKEN requirement, 15-45s typical latency, the 120s cap, and how include_details inflates runtime. The only mild tension is that readOnlyHint=true sits alongside 'creates a billed Actor run and dataset', which is defensible since the read-only claim concerns the source records, not the agent's own account artifacts.

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

Conciseness4/5

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

Front-loaded purpose sentence, then clearly labelled behavioral and usage sections that make it scannable rather than a wall of prose. It runs long for a four-parameter tool, and the 'Named alternatives' sentence is dense with sibling names, but almost every line carries decision-relevant information.

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

Completeness5/5

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

For a networked, billed, multi-state search tool with an output schema and full annotation set, nothing material is missing: auth, cost, latency, timeout, scope limits, and routing alternatives are all covered. Return-value shape is left to the output schema, which is appropriate.

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 schema documents every parameter's type, bounds, and meaning. The description still adds value by tying parameter choices to run cost and duration ('longer with include_details enabled and with more states selected'), quantified latency the schema only hints at with 'to speed up a run'.

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?

Opens with a specific verb and resource: search California CSLB and Oregon CCB contractor-license records in one call, matching by business, qualifier, or person name, returning a normalized source-tagged record. That scope statement alone is enough to tell it apart from the state-specific siblings (california_contractor_license_search, oregon_contractor_license_search) and from entity-registry tools.

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

Usage Guidelines5/5

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

Explicit 'When to use' (cross-state vetting or unknown state) and 'When NOT to use' (single known state, non-CA/OR states, non-licence entity lookups), plus named alternatives mapped to each exclusion. This is the full when/when-not/alternative triad with concrete tool names.

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