How to Use Boston building and property violations in opencode
Search Boston Inspectional Services building and property violations, including violation descriptions and recorded statuses. Use the results to review a commercial property's enforcement record or prepare a neighborhood summary.
Prompts to try with Boston building and property violations in opencode
Copy an example into opencode, or ask in your own words.
Use Boston building and property violations to retrieve open records in East Boston and add a table of descriptions and statuses to this project's reporting page.
Use Boston building and property violations to search 700 Boylston Street, Boston, and create a source-linked Markdown report in this repository.
Use Boston building and property violations to retrieve Dorchester records and write a CSV of their violation descriptions and recorded statuses.
Use Boston building and property violations to find descriptions containing 'permit' in South Boston and add a summary to our renovation research report.
Use Boston building and property violations to retrieve Allston records and build a chart of the returned statuses in this project's dashboard.
How to set up Boston building and property violations 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 Boston building and property violations
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/code-violations/search_violations", "input": { "zip": "<zip>" } }'
Then paste one of the prompts above: opencode finds Boston building and property violations on Spiral, shows the price and runs it.
Boston building and property violations providers and prices
Spiral runs Boston building and property violations 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 |
|---|---|---|---|
| Limit | 1 to 100 | 25 | Rows per page. |
Every API field of Analyze Boston: building permits, zoning appeals and violations (data.boston.gov) · Search violations is on its tool page: open its card above.
What can you do with Boston building and property violations in opencode?
Build a Boston property review table with violation descriptions, recorded statuses, and source links. A coding agent can add the returned records to a project's reports and connect them to Boston address data using the documented identifier relationship.
Commercial property review
Summarize recorded violations and statuses for a Boston commercial address before a site visit. Turn the descriptions into questions for the building manager.
Maintenance planning
Review open violations for a managed Boston building and organize the descriptions into a maintenance review list.
Neighborhood enforcement summaries
Compare the returned violation descriptions and statuses across Boston neighborhoods to prepare a report about recorded enforcement activity.
Commercial portfolio monitoring
Recheck a business's Boston property addresses and flag changes in returned violation records for the facilities team to review.
Renovation preparation
Search a Boston project address for recorded violations before preparing renovation questions. Bring the relevant descriptions into the project review.
Public building research
Look up recorded violations at a Boston public venue and prepare a source-linked summary of the returned descriptions and statuses.
More on Boston building and property violations and opencode
Overview
Boston building and property violations in other agents
Questions about Boston building and property violations in opencode
Can opencode use Boston building and property violations?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Boston building and property violations like any built-in tool.
How much does Boston building and property violations 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 and property violations in opencode?
No. Spiral runs Boston building and property violations 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 and property violations in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Boston building and property violations runs?
Boston building and property violations 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 Suffolk County?
The documented coverage is buildings and properties in Boston, Massachusetts. It is a Boston dataset, so it does not establish countywide coverage.
Which Boston department issues these violations?
These records come from inspectors in the Building and Structures Division of Boston's Inspectional Services Department.
Are Public Works citations included?
Boston publishes Public Works violations separately. Building and Property Violations directs readers to that separate dataset for Public Works records.
How do the property identifiers relate to Boston's address data?
Boston explicitly states that property_id is equivalent to sam_id. That relationship is useful when matching violation records to Boston address records.
Does an empty search prove a building has no problems?
No. The data describes recorded enforcement activity; Verdwise's documentation for these Boston records explicitly notes that a building can have issues the city never recorded.
Start using Boston building and property violations 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


