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

opencode · Listings

How to Use Baton Rouge permit search in opencode

Finds construction and occupancy permits by location, contractor, or work type, including issue dates and project values. Use it to identify commercial projects or investigate activity along a specific corridor.

Prompts to try with Baton Rouge permit search in opencode

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

Use Baton Rouge permit search to find commercial new-building permits in ZIP 70809, then add a table of project addresses, issue dates, contractors, and valuations to this project's dashboard.

Baton Rouge permit searchopencode
Try asking
  • Use Baton Rouge permit search to find commercial remodel work on Airline Highway and create a CSV export in this project's existing export format.

  • Use Baton Rouge permit search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Baton Rouge permit search and tell me what changed since last week.

  • Check Baton Rouge permit search and summarize what you find in three bullet points.

How to set up Baton Rouge permit search 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 Baton Rouge 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-brla-gov/building-permits/search_permits",
        "input": {
          "zip": "<zip>"
        }
      }'

Then paste one of the prompts above: opencode finds Baton Rouge permit search on Spiral, shows the price and runs it.

Baton Rouge permit search providers and prices

Spiral runs Baton Rouge permit search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaListings

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Sortissued_desc, applied_desc, or valuation_descissued_desc

issued_desc: newest issued first; applied_desc: newest application first; valuation_desc: largest projectvalue first. Ties break on newest permit id.

Limit1 to 10025

Rows per page (1-100).

Min valuationa number from 0

Only permits whose projectvalue is at least this many USD.

Every API field of East Baton Rouge Parish open data (data.brla.gov): building permits and condemnations · Search permits is on its tool page: open its card above.

What can you do with Baton Rouge permit search in opencode?

Build a commercial construction dashboard for East Baton Rouge Parish using permit records and contractor summaries. Add project detail views so readers can inspect the published records behind each comparison.

Build a commercial construction brief

Find commercial permits in ZIP 70809, compare the contractors handling that work, and inspect selected permits for their full project descriptions and sites.

Compare roofing businesses

Rank companies associated with re-roof permits, find their published projects, and review individual records to distinguish the kinds of work behind their permit totals.

Check a contractor's documented project activity

Review a public construction company's permit count and valuation totals, find its projects, and inspect representative permits before preparing a business comparison.

Research construction along a business corridor

Find commercial work along Perkins Road or Airline Highway, compare contractor activity in the surrounding ZIP, and expand selected permits into project summaries.

Prepare a commercial site's permit history

Search a business property address and read the complete records for relevant construction and occupancy permits to assemble a chronological project brief.

Compare construction activity across ZIP codes

Compare contractor rankings in 70809 and 70815, then examine the underlying permits to explain differences in work types and published project valuations.

Questions about Baton Rouge permit search in opencode

Can opencode use Baton Rouge permit search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Baton Rouge permit search like any built-in tool.

How much does Baton Rouge 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 Baton Rouge permit search in opencode?

No. Spiral runs Baton Rouge 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 Baton Rouge permit search in opencode?

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

Does opencode wait while Baton Rouge permit search runs?

Baton Rouge permit search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

What area and permit categories does the source cover?

The city describes EBR Building Permits as covering construction and occupancy permits issued in East Baton Rouge Parish, Louisiana. Its stated geographic scope is the parish.

How far back does the permit history go?

The provider documents issued permits dating back to October 2011. Use that as the documented historical boundary when planning comparisons.

How often is the permit data refreshed?

The provider says the dataset is loaded every morning. That describes a daily refresh schedule, not continuous publication as permits are issued.

Does one permit always describe just one site?

The provider explicitly supports returning every site and contractor associated with one permit. Inspect the complete permit record before treating a search result as a single-site project.

Does the city guarantee that every record is correct and complete?

No. Open Data BR's terms expressly disclaim warranties of accuracy, completeness, reliability, currency, and freedom from errors.

Get started

Start using Baton Rouge 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 opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options