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

opencode · Listings

How to Use Boston building permit search in opencode

Finds issued Boston permits and returns project records with addresses, work types, dates, and declared valuations. Use it to investigate a site or collect permits for a construction activity report.

Prompts to try with Boston building permit search in opencode

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

Use Boston building permit search to retrieve permits issued in ZIP code 02127 since October 1, 2026, and build a table in this project showing permit number, address, work type, and issue date.

Boston building permit searchopencode
Try asking
  • Use Boston building permit search to find electrical permits at 4 Jersey Street and create a report file with permit numbers, issue dates, and published work descriptions.

  • Use Boston building permit search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Boston building permit search and tell me what changed since last week.

  • Check Boston building permit search and summarize what you find in three bullet points.

How to set up Boston building permit search 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 Boston building permit search

    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-boston-gov/building-permits/search_permits",
        "input": {
          "zip": "<zip>"
        }
      }'

Then paste one of the prompts above: opencode finds Boston building permit search on Spiral, shows the price and runs it.

Boston building permit search providers and prices

Spiral runs Boston building permit search 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
Sortissued_desc or valuation_descissued_desc

issued_desc: newest issued first; valuation_desc: largest declared valuation first.

Limit1 to 10025

Rows per page.

Min valuationa number from 0

Only permits whose declared valuation is at least this many USD.

Every API field of Analyze Boston: building permits, zoning appeals and violations (data.boston.gov) · Search permits is on its tool page: open its card above.

What can you do with Boston building permit search in opencode?

Build a Boston construction report that connects contractor rankings to supporting permit records. A coding agent can turn applicant activity, project descriptions, and issuance dates into tables and views in your project.

Compare solar contractor activity

Rank applicants associated with Boston solar permits, collect the underlying permits, and inspect selected work descriptions. Build a comparison based on recorded permit activity.

Research the roofing market

Compare applicant permit counts and declared valuations for roofing work. Review individual permits to show what kinds of projects contribute to each applicant’s totals.

Prepare a ZIP code construction brief

Summarize issued permits in a Boston ZIP code, identify active applicants, and add selected project descriptions. Use permit numbers to connect the summary to supporting records.

Review new construction activity

Find new construction permits, compare applicant activity, and inspect the published records behind selected projects. Present permit counts and declared valuations as separate measures.

Check a contractor shortlist

Compare public contractor businesses using their recorded applicant activity. Examine underlying permit descriptions and dates to select examples relevant to a planned project.

Support a construction news report

Find recently issued Boston permits, identify applicants with substantial recorded activity, and inspect notable project records. Include permit numbers and declared valuations alongside the work descriptions.

Questions about Boston building permit search in opencode

Can opencode use Boston building permit search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Boston building permit search like any built-in tool.

How much does Boston building permit search 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 Boston building permit search in opencode?

No. Spiral runs Boston building permit search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Boston building permit search in opencode?

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

Does opencode wait while Boston building permit search runs?

Boston building permit search 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 Greater Boston?

The source is the City of Boston’s Approved Building Permits dataset. Its coverage is Boston permits; it does not establish coverage for Cambridge, Somerville, or other neighboring municipalities.

How often does Boston refresh the permit data?

The provider describes a daily reload of Boston’s issued permit dataset. That schedule does not establish that every newly issued permit appears immediately.

How far back does the permit history go?

The provider describes records dating to 2006, while Boston’s own historical-record guide points to this dataset for permits issued after December 15, 2009. Complete coverage before that date is not established.

Can I retrieve building plans with the permit data?

Boston says building plans must be viewed in person at its document room. The published permit columns include descriptions, comments, dates, and status, rather than the plans themselves.

Can I reuse Boston permit data in a commercial report?

The dataset is identified as PDDL licensed. PDDL permits commercial use and combining the data with other datasets.

Get started

Start using Boston building permit search 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