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

opencode · Listings

How to Use NYC DOB building violations in opencode

Returns older DOB civil penalty records or DOB summonses adjudicated by OATH/ECB for a building. Use it to examine enforcement history; newer DOB NOW safety penalties are published separately.

Prompts to try with NYC DOB building violations in opencode

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

Use NYC DOB building violations for BIN 1015862. Build separate tables for older DOB civil penalties and OATH/ECB summons records.

NYC DOB building violationsopencode
Try asking
  • Use NYC DOB building violations to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from NYC DOB building violations and tell me what changed since last week.

  • Check NYC DOB building violations and summarize what you find in three bullet points.

  • Pull the newest data from NYC DOB building violations and give me the result as a table.

How to set up NYC DOB building 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.

    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 NYC DOB building 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-cityofnewyork-us/property-records/dob_violations",
        "input": {
          "bin": "<bin>"
        }
      }'

Then paste one of the prompts above: opencode finds NYC DOB building violations on Spiral, shows the price and runs it.

NYC DOB building violations providers and prices

Spiral runs NYC DOB building violations through Alexandria. Open a card for today's price, with every fee included.

AlexandriaListings
NYC Open Data property records (ACRIS, PLUTO, DOB) · Dob violations
data-cityofnewyork-us/property-records/dob_violations

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Kinddob or ecbdob

dob: DOB Violations (3h2n-5cm9); ecb: ECB/OATH violations (6bgk-3dad).

Limit1 to 10025

Violations per page (1-100, default 25).

Every API field of NYC Open Data property records (ACRIS, PLUTO, DOB) · Dob violations is on its tool page: open its card above.

What can you do with NYC DOB building violations in opencode?

Build a research panel for NYC commercial buildings that brings parcel facts and public filings into one view. Keep tax lot records and building records linked through their distinct BBL and BIN identifiers.

Commercial acquisition research

Match a commercial address to its lot and building, review the PLUTO snapshot, examine deed and mortgage documents, and collect permit and violation records for acquisition questions.

Office lease research

Prepare a building brief before leasing office space: parcel characteristics, recorded ownership documents, construction records, and enforcement history.

Commercial refinancing research

Assemble recorded mortgage documents, parcel facts, permit history, and violation records into a research packet for a commercial building refinancing review.

Public building history

Research a landmark office building by combining recorded transfers, individual deed details, construction permits, and enforcement records with its PLUTO property snapshot.

Renovation background research

Collect a commercial building's permit and violation records alongside its building class and zoning before preparing questions for an architect.

Questions about NYC DOB building violations in opencode

Can opencode use NYC DOB building violations?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run NYC DOB building violations like any built-in tool.

How much does NYC DOB building 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 NYC DOB building violations in opencode?

No. Spiral runs NYC DOB building 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 NYC DOB building violations in opencode?

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

Does opencode wait while NYC DOB building violations runs?

NYC DOB building violations runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How far back do NYC's online property records go?

ACRIS provides records from 1966 onward for Manhattan, Queens, the Bronx, and Brooklyn. Its published search coverage excludes Staten Island.

How fresh are PLUTO property details?

PLUTO updates all fields in its quarterly major releases. That makes it a periodic property snapshot rather than a live ownership or building activity feed.

Does PLUTO include a record for every condo unit?

No. PLUTO provides one record per condominium complex rather than separate records for individual condominium units.

Why do NYC records use both BBL and BIN?

BBL identifies the tax lot, while BIN identifies the building. NYC Planning notes that addresses are not unique building identifiers because a building can have more than one address.

Is an ACRIS transaction the same as a document?

No. One transaction can contain several documents, such as a deed and a mortgage, that share a transaction number.

Get started

Start using NYC DOB building violations 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