Skip to main content
Glama
Apify Public Data & Leads

Apify Public Data & Leads

California CSLB Contractor License Search

california_contractor_license_search
Read-only

Search California CSLB records by contractor or business name to verify license status for subcontractor vetting and lead building.

Instructions

Search public California Contractors State License Board (CSLB) records by contractor or business name, returning license number, status, city, and name type.

Behavioral Transparency:

  • Execution: Network call executed synchronously in the cloud via Apify Actor 'captainhandsome/ca-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 10-30 seconds without detail pages, longer with include_details enabled; timeout capped at 120 seconds.

Usage Guidelines:

  • When to use: Use for subcontractor vetting, contractor license verification, or lead building against California licensed contractors and businesses.

  • When NOT to use: Do not use for Oregon-only licence lookups (use 'us_contractor_license_search' with states=['oregon']), business entity/registry searches, or non-contractor trades.

  • Named alternatives: Use 'us_contractor_license_search' to search California and Oregon in one call, 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": "california_contractor_license_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_resultsNoMaximum number of licence records to return and bill. Defaults to 10. At most 100 per call.
search_queryYesFull or partial contractor or business name to search in California CSLB records (e.g. 'SMITH' or 'Smith Construction').
include_detailsNoWhen true, opens each licence's CSLB detail page to add issue/expiration dates, business address and phone, classifications, bonding, and workers' comp status. Slower; leave off for a fast name-and-status 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. Defaults to 10."New value: +"Maximum number of licence records to return and bill. Defaults to 10. At most 100 per call."
    • changedInput schema / properties / max_results / maximum
      Previous value: -1000New value: +100
  2. Changed19 schema fields changedv1.1.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / error
      Added value: +{
      +  "type": "object"
      +}
    • removedOutput schema / properties / results / description
      Removed value: -"Collection of California contractor-license records matching the search query."
    • changedOutput schema / properties / results / items / properties / business_entity / description
      Previous value: -"Legal form CSLB holds 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"
    • addedOutput schema / properties / results / items / properties / city / title
      Added value: +"City"
    • addedOutput schema / properties / results / items / properties / contractor_name / title
      Added value: +"Contractor name"
    • changedOutput schema / properties / results / items / properties / expire_date / description
      Previous value: -"Date the licence expires (requires include_details)."New value: +"Date the licence expires."
    • addedOutput schema / properties / results / items / properties / expire_date / title
      Added value: +"Expiration date"
    • changedOutput schema / properties / results / items / properties / issue_date / description
      Previous value: -"Date CSLB issued the licence (requires include_details)."New value: +"Date CSLB issued the licence."
    • addedOutput schema / properties / results / items / properties / issue_date / title
      Added value: +"Issue date"
    • addedOutput schema / properties / results / items / properties / license_number / title
      Added value: +"License number"
    • changedOutput schema / properties / results / items / properties / name_type / description
      Previous value: -"CSLB classification for the displayed name when present (e.g. print, previous)."New value: +"CSLB classification for the displayed name when present."
    • addedOutput schema / properties / results / items / properties / name_type / title
      Added value: +"Name type"
    • changedOutput schema / properties / results / items / properties / status / description
      Previous value: -"Current license status displayed by CSLB (e.g. Active, Expired)."New value: +"Current license status displayed by CSLB."
    • addedOutput schema / properties / results / items / properties / status / title
      Added value: +"License 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.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint=false, but the description adds genuine information beyond them: synchronous cloud execution via a named Apify Actor, that it creates a billed run and dataset on the user's account, the required APIFY_TOKEN, and a 10-30s typical duration capped at 120s. The billing side effect and credential requirement are exactly the kind of facts annotations cannot express.

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 one-line purpose followed by labeled sections for behavior and usage; every line contributes a distinct fact (execution model, side effect, auth, latency, exclusions, alternatives). No filler or restatement of the title.

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?

An output schema exists, so return values need not be re-explained, and the description covers everything else an agent needs before calling: billing implications, credential prerequisite, runtime bounds, and routing to sibling tools. Nothing material is missing for a three-parameter lookup.

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; the description earns an extra point by explaining the latency tradeoff of include_details ('longer with include_details enabled'), which tells the agent when the cost of that flag is worth paying. It does not deepen search_query or max_results beyond their schema text, keeping it short of a 5.

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+resource+scope: search CSLB public records by contractor or business name, and enumerates the returned fields (license number, status, city, name type). This makes it immediately distinguishable from the business-registry siblings, which the description also names.

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?

Provides explicit 'When to use' scenarios (subcontractor vetting, license verification, lead building) and 'When NOT to use' cases with the correct redirect: Oregon-only lookups go to us_contractor_license_search with states=['oregon']. Names further alternatives (alabama_business_search, florida_new_filings_search, us_business_entity_search) for non-contractor registry needs, leaving nothing to inference.

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