[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Boston building and property violations](https://spiral.ai/integrations/opencode/boston-building-and-property-violations)

# 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.

|  |  |
| --- | --- |
| Model | Boston building and property violations |
| Available through | Alexandria |
| Category | Listings |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Boston building and property violations in opencode

- 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

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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
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 and property violations**: One request; the result comes back by polling or a webhook.

```bash
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.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Boston building and property violations tools and prices

- [Analyze Boston: building permits, zoning appeals and violations (data.boston.gov) · Search violations](https://spiral.ai/tools/alexandria/data-boston-gov/code-violations/search_violations) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| zip |  | — | 5-digit ZIP code (02127). Pattern: ^[0-9]{5}$. |
| limit | 1 to 100 | 25 | Rows per page. |
| cursor |  | — | next_cursor from the previous page; repeat the same filters with it. Pattern: ^[0-9]+$. |
| status |  | — | Case-insensitive substring of the status: open or closed. |
| address |  | — | Street line, case-insensitive substring (50 Cromwell Road, 840 Columbus Ave). Text after a comma is ignored; a trailing Street, Avenue, Road, Boulevard, Place and similar becomes ISD's abbreviation (ST, AV, RD, BL, PL). Ranges are written 140-148 Brookline AV, so a number inside a range does not match. |
| violation |  | — | Case-insensitive substring of the violation description or code section (permit, unsafe, 121.2). |

## 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Boston building and property violations in other agents

- [Amp](https://spiral.ai/integrations/amp/boston-building-and-property-violations)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/boston-building-and-property-violations)
- [Claude](https://spiral.ai/integrations/claude-desktop/boston-building-and-property-violations)
- [Claude Code](https://spiral.ai/integrations/claude-code/boston-building-and-property-violations)
- [Cline](https://spiral.ai/integrations/cline/boston-building-and-property-violations)
- [Codex](https://spiral.ai/integrations/codex/boston-building-and-property-violations)
- [Cursor](https://spiral.ai/integrations/cursor/boston-building-and-property-violations)
- [Devin](https://spiral.ai/integrations/devin/boston-building-and-property-violations)
- [dots](https://spiral.ai/integrations/dots/boston-building-and-property-violations)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/boston-building-and-property-violations)
- [Gemini](https://spiral.ai/integrations/gemini/boston-building-and-property-violations)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/boston-building-and-property-violations)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/boston-building-and-property-violations)
- [goose](https://spiral.ai/integrations/goose/boston-building-and-property-violations)
- [Grok](https://spiral.ai/integrations/grok/boston-building-and-property-violations)
- [Grok Build](https://spiral.ai/integrations/grok-build/boston-building-and-property-violations)
- [Hermes](https://spiral.ai/integrations/hermes/boston-building-and-property-violations)
- [Instinct](https://spiral.ai/integrations/instinct/boston-building-and-property-violations)
- [Manus](https://spiral.ai/integrations/manus/boston-building-and-property-violations)
- [Muse](https://spiral.ai/integrations/muse/boston-building-and-property-violations)
- [Muse Code](https://spiral.ai/integrations/muse-code/boston-building-and-property-violations)
- [n8n](https://spiral.ai/integrations/n8n/boston-building-and-property-violations)
- [Notion](https://spiral.ai/integrations/notion/boston-building-and-property-violations)
- [OpenClaw](https://spiral.ai/integrations/openclaw/boston-building-and-property-violations)
- [Perplexity](https://spiral.ai/integrations/perplexity/boston-building-and-property-violations)
- [Raycast](https://spiral.ai/integrations/raycast/boston-building-and-property-violations)
- [VS Code](https://spiral.ai/integrations/vscode/boston-building-and-property-violations)
- [Windsurf](https://spiral.ai/integrations/windsurf/boston-building-and-property-violations)
- [Zapier](https://spiral.ai/integrations/zapier/boston-building-and-property-violations)

## More opencode guides

- [Baton Rouge permit search](https://spiral.ai/integrations/opencode/baton-rouge-permit-search)
- [Boston building permit details](https://spiral.ai/integrations/opencode/boston-building-permit-details)
- [Baton Rouge permit details](https://spiral.ai/integrations/opencode/baton-rouge-permit-details)
- [Boston building permit search](https://spiral.ai/integrations/opencode/boston-building-permit-search)
- [Baton Rouge contractor activity](https://spiral.ai/integrations/opencode/baton-rouge-contractor-activity)
- [Boston contractor permit activity](https://spiral.ai/integrations/opencode/boston-contractor-permit-activity)

## 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.

