[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Edmonton dataset search](https://spiral.ai/integrations/opencode/edmonton-dataset-search)

# How to Use Edmonton dataset search in opencode

Returns matching assets from Edmonton's open data catalog. Use it to locate the source for a question, such as development permits or property assessments, before inspecting definitions or retrieving records.

|  |  |
| --- | --- |
| Model | Edmonton dataset search |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Edmonton dataset search in opencode

- Use Edmonton dataset search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Edmonton dataset search and tell me what changed since last week.
- Check Edmonton dataset search and summarize what you find in three bullet points.
- Pull the newest data from Edmonton dataset search and give me the result as a table.
- Check Edmonton dataset search every morning and tell me only when something changed.

## How to set up Edmonton dataset 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.

```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 Edmonton dataset search**: 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-edmonton-ca/open-data/datasets",
    "input": {
      "only": "datasets"
    }
  }'
```

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

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

## Edmonton dataset search tools and prices

- [City of Edmonton Open Data · Datasets](https://spiral.ai/tools/alexandria/data-edmonton-ca/open-data/datasets) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| only | datasets, maps, filters, charts, hrefs, files, stories, measures, visualizations | — | Restrict to one asset type. `datasets` are the tabular assets that `rows` can query. |
| tags |  | — | Portal tags as returned by `facets`; an asset must carry all of them. |
| limit | 1 to 100 | 20 | Results per page (1-100). |
| order | relevance, updatedAt, createdAt, name, page_views_total, page_views_last_month, page_views_last_week, download_count | relevance | Sort order. `relevance` (default) needs a `query`; the others are descending except `name`. |
| query |  | — | Free-text search over names, descriptions, tags and columns, for example `permits` or `building permits`. |
| cursor |  | — | Opaque `next_cursor` from the previous page; send it with the same search parameters. |

## What can you do with Edmonton dataset search in opencode?

Build an Edmonton commercial activity report with permit records, licence activity, and published assessments. Use catalog labels, dataset definitions, and record counts to choose and check the sources behind the project's tables.

### Downtown business district briefing

Prepare a Downtown briefing with commercial licence activity, issued construction work, and published property assessments. Find the relevant catalog subjects, inspect definitions, and count matching records before assembling the supporting tables.

### Commercial corridor comparison

Compare Jasper Avenue and 124 Street using published assessments, commercial licences, and construction records. Discover the source datasets through their categories and tags, check column meanings, and calculate comparable record counts for each corridor.

### Public commercial site background

Compile the available assessment, issued building permits, and commercial licence records for a proposed business location on Whyte Avenue. Use catalog labels to find related development data, inspect its definitions, and count and retrieve the matching records.

### Municipal data source audit

Build a source inventory for an Edmonton commercial activity report. Document catalog categories, dataset definitions, assessment coverage, licence date meanings, permit scope, and matching record totals, then inspect sample records from each source.

### Development application outcome report

Locate Edmonton's development permit data and summarize approved, refused, and appealed applications in Downtown. Keep these outcomes separate from issued building permit activity.

## Overview

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

## Edmonton dataset search in other agents

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

## More opencode guides

- [Edmonton dataset records](https://spiral.ai/integrations/opencode/edmonton-dataset-records)
- [Edmonton property assessments](https://spiral.ai/integrations/opencode/edmonton-property-assessments)
- [Edmonton dataset record count](https://spiral.ai/integrations/opencode/edmonton-dataset-record-count)
- [Elections Alberta candidate records](https://spiral.ai/integrations/opencode/elections-alberta-candidate-records)
- [Edmonton dataset details](https://spiral.ai/integrations/opencode/edmonton-dataset-details)
- [Elections Alberta contribution search](https://spiral.ai/integrations/opencode/elections-alberta-contribution-search)

## Questions about Edmonton dataset search in opencode

**Can opencode use Edmonton dataset search?**

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

**How much does Edmonton dataset 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 Edmonton dataset search in opencode?**

No. Spiral runs Edmonton dataset 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 Edmonton dataset search in opencode?**

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

**Does opencode wait while Edmonton dataset search runs?**

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

**What geographic area do the property assessments cover?**

The property assessment dataset covers properties within the City of Edmonton. It does not describe an assessment inventory for the entire Edmonton metropolitan region.

**How often are property assessments refreshed?**

The property assessment dataset lists automated weekly updates. Its coverage period is a calendar year, so a weekly refresh does not make the assessed value a weekly market valuation.

**How far back do building permit records go?**

Edmonton states that its published building permit records start on January 1, 2009. This source does not establish permit history before that date.

**Does a recent business licence issue date mean a business just opened?**

No. Edmonton defines the most recent issue date as the date a licence was most recently issued or renewed, so renewals can appear in a recent-date search.

**Are all business addresses public?**

No. Edmonton redacts business addresses for some licence types because of privacy.

