[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Montgomery County permit details](https://spiral.ai/integrations/opencode/montgomery-county-permit-details)

# How to Use Montgomery County permit details in opencode

Returns one Montgomery County DPS permit by number, including every published column. Use it to examine a specific project's status and work record after finding its permit number.

|  |  |
| --- | --- |
| Model | Montgomery County permit details |
| 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 Montgomery County permit details in opencode

- Find commercial permit numbers for Westfield Montgomery at 7101 Democracy Boulevard, Bethesda, then use Montgomery County permit details to populate a project history page.
- Find sign permit numbers for commercial sites in Silver Spring, then use Montgomery County permit details to create sample records for the app's permit inspector.
- Use Montgomery County permit details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Montgomery County permit details and tell me what changed since last week.
- Check Montgomery County permit details and summarize what you find in three bullet points.

## How to set up Montgomery County permit details 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 Montgomery County permit details**: 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-montgomerycountymd-gov/building-permits/get_permit",
    "input": {
      "permit_number": "<permit_number>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Montgomery County permit details on Spiral, shows the price and runs it.

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

## Montgomery County permit details tools and prices

- [Montgomery County, MD Permits (data.montgomerycountymd.gov) · Get permit](https://spiral.ai/tools/alexandria/data-montgomerycountymd-gov/building-permits/get_permit) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| kind | residential, commercial, fence, sign, historic_area_work | — | Dataset to look in (a record's kind). Optional: without it the program asks residential, commercial, fence, sign and historic_area_work in that order, one small request each, and stops at the first that has the number. |

## What can you do with Montgomery County permit details in opencode?

Build a Montgomery County construction report that connects project summaries to individual permit records. A coding agent can turn county statuses and work descriptions into a searchable table in your project.

### Commercial property permit history

Find permits associated with a shopping center or office property, then inspect individual records to explain the work and its published status.

### Retail renovation briefing

Collect commercial work and sign records around a retail site. Read the relevant permits to prepare a briefing on the changes described in county records.

### Historic business district research

Find historic exterior-work permits in Kensington or Takoma Park and examine selected records for a report on proposed changes to designated properties.

### Commercial project status checks

Build a shortlist of commercial projects in Bethesda or Silver Spring, then revisit their permit numbers to compare published statuses over time.

### Local construction reporting

Find commercial permit activity in a community and inspect the records behind a story. Use the county's work descriptions to make the reporting specific.

## Overview

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

## Montgomery County permit details in other agents

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

## More opencode guides

- [Montana address and road updates](https://spiral.ai/integrations/opencode/montana-address-and-road-updates)
- [Montgomery County permit search](https://spiral.ai/integrations/opencode/montgomery-county-permit-search)
- [Montana GIS search](https://spiral.ai/integrations/opencode/montana-gis-search)
- [NASA POWER climate averages](https://spiral.ai/integrations/opencode/nasa-power-climate-averages)
- [Montana GIS records](https://spiral.ai/integrations/opencode/montana-gis-records)
- [NASA POWER daily weather history](https://spiral.ai/integrations/opencode/nasa-power-daily-weather-history)

## Questions about Montgomery County permit details in opencode

**Can opencode use Montgomery County permit details?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Montgomery County permit details like any built-in tool.

**How much does Montgomery County permit details 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 Montgomery County permit details in opencode?**

No. Spiral runs Montgomery County permit details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Montgomery County permit details in opencode?**

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

**Does opencode wait while Montgomery County permit details runs?**

Montgomery County permit details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How far back does the permit history go?**

The county describes both its residential and commercial building-permit datasets as covering permits issued since 2000. That history statement applies specifically to those two building-permit datasets.

**How often does the county update building-permit data?**

The residential and commercial datasets both list daily updates. The published schedule supports daily monitoring rather than an assumption that each permit change appears immediately.

**Does this cover permits inside Rockville and Gaithersburg?**

County DPS building-code jurisdiction excludes the incorporated cities of Rockville and Gaithersburg. Those cities have their own permitting departments, so county data alone does not provide complete building-permit coverage there.

**Can I identify contractors or individual units from these records?**

DPS publishes no contractor, parcel, or unit columns in these datasets. The documented record instead includes the site address, coordinates, valuation, and building area.

**What does historic area work cover?**

Historic Area Work Permits cover proposed exterior work involving properties listed on the Montgomery County Master Plan for Historic Preservation. The coverage includes designated individual sites and properties within historic districts.

