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

opencode · Public Records

How to Use Open Alberta publication and dataset search in opencode

Returns matching records from Alberta's government publication and open data catalogue. Use it to discover reports, guides, orders, or datasets before inspecting a record or file.

Prompts to try with Open Alberta publication and dataset search in opencode

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

Use Open Alberta publication and dataset search to find Alberta dam and canal safety publications, then add their titles and record links to the project's reference index.

Open Alberta publication and dataset searchopencode
Try asking
  • Use Open Alberta publication and dataset search to find registry agent product catalogues and create a reference table of matching titles and record links in this repository.

  • Use Open Alberta publication and dataset search 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 search and tell me what changed since last week.

  • Check Open Alberta publication and dataset search and summarize what you find in three bullet points.

How to set up Open Alberta publication and 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.

    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 Open Alberta publication and dataset 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": "open-alberta-ca/open-data/search_catalogue",
        "input": {
          "q": "<q>"
        }
      }'

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

Open Alberta publication and dataset search providers and prices

Spiral runs Open Alberta publication and dataset search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Rows1 to 10020

Records per page.

Sortrelevance, modified, issued, updated, or title

relevance (default with q), modified (content date, default without q), issued (newest publication date), updated (catalogue entry change), title (A-Z).

Typepublications, opendata, documentation, or anyany

Record type: publications (documents), opendata (data sets), documentation (portal help), or any.

Every API field of Open Alberta (open.alberta.ca) publications and open data catalogue · Search catalogue is on its tool page: open its card above.

What can you do with Open Alberta publication and dataset search 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.

Questions about Open Alberta publication and dataset search in opencode

Can opencode use Open Alberta publication and dataset search?

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

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

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

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

Does opencode wait while Open Alberta publication and dataset search runs?

Open Alberta publication and dataset search 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.

Get started

Start using Open Alberta publication and dataset 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