[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Open Alberta publication and dataset details](https://spiral.ai/integrations/opencode/open-alberta-publication-and-dataset-details)

# How to Use Open Alberta publication and dataset details in opencode

Returns a publication or dataset's metadata, editions, file links, and license. Use it to check the full record and choose the right edition before opening a file.

|  |  |
| --- | --- |
| Model | Open Alberta publication and dataset details |
| 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 Open Alberta publication and dataset details in opencode

- Use Open Alberta publication and dataset details for alberta-dam-and-canal-safety-directive and write its edition links and license into our source manifest.
- Use Open Alberta publication and dataset details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Open Alberta publication and dataset details and tell me what changed since last week.
- Check Open Alberta publication and dataset details and summarize what you find in three bullet points.
- Pull the newest data from Open Alberta publication and dataset details and give me the result as a table.

## How to set up Open Alberta publication and dataset 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 Open Alberta publication and dataset 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": "open-alberta-ca/open-data/get_record",
    "input": {
      "id": "<id>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Open Alberta publication and dataset details on Spiral, shows the price and runs it.

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

## Open Alberta publication and dataset details tools and prices

- [Open Alberta (open.alberta.ca) publications and open data catalogue · Get record](https://spiral.ai/tools/alexandria/open-alberta-ca/open-data/get_record) (Alexandria): $0.00873 per call.

## What can you do with Open Alberta publication and dataset details in opencode?

Build a searchable index of Alberta government publications with edition links and license metadata. A coding agent can use catalogue records to populate the project's reference files and check which government files its citations point to.

### Build a ministry publication index

Identify the relevant Alberta publishing organization, find its reports and guides, and assemble record metadata with links to the selected files.

### Prepare a historical policy bibliography

Check publishing organizations for the period being researched, locate relevant publications, and document the editions and file links used in the bibliography.

### Maintain a government document reading list

Follow publications from selected Alberta ministries and refresh the reading list when record details or attached editions change.

### Plan an Alberta open data analysis

Find the publishing ministry and candidate datasets, inspect their descriptions and licenses, and select the files to evaluate before starting an analysis.

### Find an edition for a citation

Locate an Alberta publication by title, inspect its attached editions, and choose the file that matches the citation's publication period.

### Review licenses before republication

Find relevant government datasets and inspect each record's license before selecting material for a public report or commercial application.

### Trace ministry publishing history

Compare the organizations listed in the catalogue with the publishers attached to older Ministerial Orders and reports.

### Check a saved government file link

Inspect an Open Alberta resource link and its record to confirm which publication and edition the saved file belongs to.

## Overview

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

## Open Alberta publication and dataset details in other agents

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

## More opencode guides

- [Open Alberta file details](https://spiral.ai/integrations/opencode/open-alberta-file-details)
- [Open Alberta publication and dataset search](https://spiral.ai/integrations/opencode/open-alberta-publication-and-dataset-search)
- [New Hampshire race results](https://spiral.ai/integrations/opencode/new-hampshire-race-results)
- [Open Alberta publishing organizations](https://spiral.ai/integrations/opencode/open-alberta-publishing-organizations)
- [New Hampshire primary nominees](https://spiral.ai/integrations/opencode/new-hampshire-primary-nominees)
- [OpenSecrets race fundraising](https://spiral.ai/integrations/opencode/opensecrets-race-fundraising)

## Questions about Open Alberta publication and dataset details in opencode

**Can opencode use Open Alberta publication and dataset details?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Open Alberta publication and dataset details like any built-in tool.

**How much does Open Alberta publication and dataset 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 Open Alberta publication and dataset details in opencode?**

No. Spiral runs Open Alberta publication and dataset 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 Open Alberta publication and dataset details in opencode?**

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

**Does opencode wait while Open Alberta publication and dataset details runs?**

Open Alberta publication and dataset details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Open Alberta return the data itself or catalogue information?**

These endpoints work with Alberta provincial government catalogue records. Record details include metadata, editions, and file download links, which let you locate the underlying publication or dataset.

**Does a recently edited catalogue entry mean the data changed?**

Alberta distinguishes two dates: Date Modified describes a content change, while the metadata record update date describes a catalogue change. A catalogue edit alone does not establish that the underlying figures were revised.

**Why do older documents appear under an earlier ministry name?**

Ministerial Orders retain the leading ministry's name from the time they were issued. For historical orders, Alberta recommends searching with the ministry name used at that time.

**How soon do new Ministerial Orders appear?**

Alberta says Ministerial Orders may take 2 to 5 business days to appear on the website. A search immediately after an order is issued may therefore miss it.

**Can archived Open Alberta files still be used for current research?**

Some archived files have explicit restrictions on their usefulness. Alberta says previous ACIMS Element Occurrence files archived in Open Alberta are outdated and should no longer be used for searches.

