Spiral gives your agent every tool with one account. Browse the tools →

opencode · Listings

How to Use San José contractor permit activity in opencode

Returns contractors ranked by permit count or total permit valuation in San José's published records. Use it to compare firms' recorded activity before examining their individual projects.

Prompts to try with San José contractor permit activity in opencode

Copy an example into opencode, or ask in your own words.

Use San José contractor permit activity to compare Devcon's recorded permits issued in 2026 and add a table of permit counts and valuations to the report.

San José contractor permit activityopencode
Try asking
  • Use San José contractor permit activity to compare solar contractors in ZIP code 95131 for permits issued in 2026 and add the results to the market analysis.

  • Use San José contractor permit activity to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from San José contractor permit activity and tell me what changed since last week.

  • Check San José contractor permit activity and summarize what you find in three bullet points.

How to set up San José contractor permit activity in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run San José contractor permit activity

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "data-sanjoseca-gov/building-permits/contractor_activity",
        "input": {
          "issued_since": "<issued_since>"
        }
      }'

Then paste one of the prompts above: opencode finds San José contractor permit activity on Spiral, shows the price and runs it.

San José contractor permit activity providers and prices

Spiral runs San José contractor permit activity through Alexandria. Open a card for today's price, with every fee included.

AlexandriaListings

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Sortpermits_desc or valuation_descpermits_desc

permits_desc: most permits first; valuation_desc: largest total declared valuation first.

Limit1 to 10025

Rows per page.

Statusany, active, under_inspection, expired, or issued_last_30_daysany

Which published list to read. any (default): Active, Expired and permits issued in the last 30 days, each permit once, in one request. active: issued and not finaled or expired (includes under inspection); under_inspection: active permits with inspections under way; expired; issued_last_30_days: every permit issued in the last 30 days whatever its state, the list to poll for new permits. Finaled permits older than 30 days are not published.

Every API field of San José Open Data: building and planning permits (data.sanjoseca.gov) · Contractor activity is on its tool page: open its card above.

What can you do with San José contractor permit activity in opencode?

Build a San José construction report that connects contractor totals to individual permit records. A coding agent can add those results to project files while labeling the gaps in completed permit history.

Compare commercial contractors

Rank firms by recorded permit activity, identify their commercial projects, and examine selected permits. Keep the comparison limited to work present in the published lists.

Research solar installation activity

Compare solar contractors' recorded activity, find the underlying permits, and review individual records for projects of interest.

Assess tenant improvement demand

Find tenant improvement permits, compare the contractors associated with that work, and inspect selected commercial project records for a market brief.

Review expired commercial permits

Compare firms' recorded expired permit activity, locate the commercial projects behind the totals, and examine individual records before requesting clarification from the city.

Questions about San José contractor permit activity in opencode

Can opencode use San José contractor permit activity?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run San José contractor permit activity like any built-in tool.

How much does San José contractor permit activity cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use San José contractor permit activity in opencode?

No. Spiral runs San José contractor permit activity on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up San José contractor permit activity in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while San José contractor permit activity runs?

San José contractor permit activity runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does this cover all of Santa Clara County?

The source covers City of San José permits. It does not provide a countywide inventory of permits from other jurisdictions.

How often does the permit data change?

The building permit files update daily. Searches and contractor totals reflect those daily snapshots rather than a continuous record of changes.

Can I get a complete historical permit record?

Completed building permits issued more than 30 days ago are not published in these lists. Historical searches and contractor totals therefore omit completed work outside that window.

Can these records tell me how long permit approval took?

The building permit files have no application date. They cannot establish the elapsed time between application and issuance.

Can I reuse the published permit data commercially?

The building permit datasets are published under CCZero. CC0 allows copying, modification and distribution, including commercial reuse, without requesting permission.

Get started

Start using San José contractor permit activity in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options