How to Use Cambridge contractor permit activity in opencode
Returns contractor rankings by permit count and declared cost for a selected period in Cambridge, Massachusetts. Use it to compare firms' recorded activity before examining their individual projects.
Prompts to try with Cambridge contractor permit activity in opencode
Copy an example into opencode, or ask in your own words.
Use Cambridge contractor permit activity to rank solar firms in Cambridge for calendar year 2025 and add the results to our market report.
Use Cambridge contractor permit activity to compare Cambridge roofing firms for calendar year 2025 and generate a chart in this project.
Use Cambridge 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 Cambridge contractor permit activity and tell me what changed since last week.
Check Cambridge contractor permit activity and summarize what you find in three bullet points.
How to set up Cambridge contractor permit activity 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 Cambridge 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-cambridgema-gov/building-permits/contractor_activity", "input": { "category": "new_construction", "issued_since": "<issued_since>" } }'
Then paste one of the prompts above: opencode finds Cambridge contractor permit activity on Spiral, shows the price and runs it.
Cambridge contractor permit activity providers and prices
Spiral runs Cambridge contractor permit activity 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 |
|---|---|---|---|
| Category | new_construction, alteration, short_form, roof, siding, solar, electrical, mechanical and 1 more | Which dataset to rank contractors in. | |
| Limit | 1 to 100 | 25 | Records per page. |
| Equipment | heat_pump, ductless_split, ev_charger, solar_pv, battery_storage, generator, or electric_water_heater | Only permits with this equipment, by the dataset's own counts: electrical (heat_pump, ductless_split, ev_charger, solar_pv, generator), mechanical (heat_pump, ductless_split), solar (solar_pv, battery_storage), plumbing (electric_water_heater). Needs category; other pairs are invalid_input. |
Every API field of City of Cambridge, MA permits (data.cambridgema.gov) · Contractor activity is on its tool page: open its card above.
What can you do with Cambridge contractor permit activity in opencode?
Build a Cambridge construction dashboard backed by published city permits. Add contractor comparisons and project evidence to help users investigate local building activity.
Research solar installation firms
Rank firms by Cambridge solar permit activity, find their recorded projects, and examine available system details before building a business shortlist.
Study heat pump permitting
Compare contractor activity in electrical and mechanical permits, investigate matching jobs, and inspect equipment details for an electrification market report.
Plan a roofing supplier's territory
Identify firms with recorded Cambridge roofing activity, examine their project locations, and review individual permits to inform business outreach.
Compare commercial renovation activity
Use contractor totals to identify active firms, search their alteration permits, and review commercial project records for a local construction brief.
More on Cambridge contractor permit activity and opencode
Overview
Cambridge contractor permit activity in other agents
Questions about Cambridge contractor permit activity in opencode
Can opencode use Cambridge contractor permit activity?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Cambridge contractor permit activity like any built-in tool.
How much does Cambridge 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 Cambridge contractor permit activity in opencode?
No. Spiral runs Cambridge 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 Cambridge contractor permit activity in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Cambridge contractor permit activity runs?
Cambridge contractor permit activity runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Which area and permit types does the data cover?
It covers Cambridge, Massachusetts, through nine city datasets for building work, roofing, siding, solar, electrical, mechanical, and plumbing permits.
How often does the permit data refresh?
The provider describes daily reloads from Cambridge's permitting system. This is a daily publication cycle rather than a continuous feed.
Does this cover every kind of Cambridge permit?
These endpoints cover nine construction and trade datasets. The city's broader Permit Finder includes more than 30 permit types, including demolition and party tents.
Does an issued building permit prove construction has started?
Cambridge requires the building permit before work begins. Its issue date therefore cannot establish the actual date work started.
Can I reuse Cambridge permit data commercially?
The permit data is published under the PDDL, which permits commercial reuse and combining covered data with other datasets. Cambridge provides its open data without warranty.
Start using Cambridge 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 https://spiral.ai/SKILL.md


