How to Use Seattle permit search in opencode
Returns matching Seattle building, trade, electrical, or land use permit records. Use it to find work at a business address, examine a contractor's projects, or research proposed development before reviewing individual permits.
Prompts to try with Seattle permit search in opencode
Copy an example into opencode, or ask in your own words.
Use Seattle permit search to find building records at 400 Broad St and create a report in this repository summarizing the published work descriptions.
Use Seattle permit search to find Seattle building records describing demolition in ZIP code 98104 and add a project summary to this repository.
Use Seattle permit search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Seattle permit search and tell me what changed since last week.
Check Seattle permit search and summarize what you find in three bullet points.
How to set up Seattle permit search in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Seattle 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-seattle-gov/building-permits/search_permits", "input": { "zip": "<zip>" } }'
Then paste one of the prompts above: opencode finds Seattle permit search on Spiral, shows the price and runs it.
Seattle permit search providers and prices
Spiral runs Seattle permit search through Alexandria. Open a card for today's price, with every fee included.
$0.00873 per call.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Kind | building, trade, electrical, or land_use | building | Which SDCI dataset: building (Building Permits 76t5-zqzr: construction, additions, demolition, grading, roofing, shoreline and critical-area exemptions), trade (Trade Permits c87v-5hwh: mechanical, furnace, refrigeration, elevator, boiler, sign and fire sprinkler), electrical (Electrical Permits c4tj-daue) or land_use (Land Use Permits ht3q-kdvx: master use permits, design review and early design guidance, the land use decisions that precede building permits). |
| Sort | issued_desc, applied_desc, decided_desc, or valuation_desc | Order, newest or largest first, missing values last. Defaults to issued_desc, or applied_desc when only application dates are filtered, or decided_desc (land_use only) when decision dates are filtered. | |
| Limit | 1 to 100 | 25 | Records per page. |
| Min valuation | a number from 0 | Only permits whose estimated project cost is at least this many US dollars. |
Every API field of City of Seattle Open Data: permits and land use decisions · Search permits is on its tool page: open its card above.
What can you do with Seattle permit search in opencode?
Build a Seattle construction report that connects contractor activity with individual permit records. A coding agent can add the report to your project and explain the missing contractor coverage that affects building comparisons.
Roofing contractor comparison
Compare contractors' recorded roofing permit activity, examine their matching projects, and review selected permit records. Explain how missing contractor names limit the comparison.
Electrical contractor shortlist
Identify businesses with recorded electrical permit activity in a Seattle ZIP code, inspect their projects, and assemble examples of relevant work for further review.
Mechanical work market brief
Research mechanical trade permits, compare contractors' recorded activity, and read selected projects to understand the work described in the records.
Construction business reporting
Prepare a Seattle construction bulletin using contractor rankings, project searches, and full records for examples. Describe rankings as recorded permit activity rather than total business revenue.
Commercial site permit history
Find permit records at a public business address and read individual records to summarize the work described at the site.
Proposed development research
Find Seattle land use records and examine individual permits when researching a proposed development.
Demolition activity review
Find demolition permit records and inspect selected projects for a neighborhood development report.
Permit description comparison
Compare saved permit descriptions with later published records to identify changes in proposed work before issuance.
More on Seattle permit search and opencode
Overview
Seattle permit search in other agents
Questions about Seattle permit search in opencode
Can opencode use Seattle permit search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Seattle permit search like any built-in tool.
How much does Seattle 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 Seattle permit search in opencode?
No. Spiral runs Seattle 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 Seattle permit search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Seattle permit search runs?
Seattle 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 King County?
The building dataset covers permits within the city of Seattle. The trade and electrical datasets also describe Seattle coverage, so these records do not provide countywide permit activity.
How fresh are Seattle's permit records?
The provider describes the records as refreshed nightly. That supports daily research and reporting, but does not establish a live view of changes made during the day.
How far back does the published history go?
SDCI says its building and land use datasets include permitting data from 2005. That statement does not establish the same history depth for trade or electrical records.
Can the published work description change?
Yes. Seattle says descriptions are subject to change before permit issuance and are generally more stable after issuance, which matters when comparing proposed work with issued projects.
Start using Seattle 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 https://spiral.ai/SKILL.md


