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

opencode · Public Records

How to Use Alberta legislation search in opencode

Returns matching Alberta legislation catalogue records, including titles, citations, ISBNs, formats, and online-text availability. Use it to identify the right act or regulation before reading its provisions.

Prompts to try with Alberta legislation search in opencode

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

Use Alberta legislation search to find the Employment Standards Code and Employment Standards Regulation, then add their citations and source links to this project's research notes.

Alberta legislation searchopencode
Try asking
  • Use Alberta legislation search to match Municipal Government Act references in this project's files to catalogue titles and citations, and report references you cannot resolve.

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

  • Pull the latest numbers from Alberta legislation search and tell me what changed since last week.

  • Check Alberta legislation search and summarize what you find in three bullet points.

How to set up Alberta legislation 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 Alberta legislation 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": "kings-printer-alberta-ca/legislation/search_legislation",
        "input": {
          "query": "<query>"
        }
      }'

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

Alberta legislation search providers and prices

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

AlexandriaPublic Records
Alberta King's Printer · Search legislation
kings-printer-alberta-ca/legislation/search_legislation

What can you do with Alberta legislation search in opencode?

Build a legislation reference inventory for an Alberta policy or rules project. A coding agent can match citations in project files to catalogue records and organize relevant provisions and Gazette publications for review.

Employment policy research

Find the Employment Standards Code and its regulation, read relevant provisions, then locate and examine Gazette publications for changes that need review before updating an employer handbook.

Municipal policy review

Build a reading list around the Municipal Government Act, examine its wording, and check Gazette issues for relevant regulations and published notices.

Commercial transport rule review

Locate commercial vehicle legislation, read consolidated provisions, and inspect Gazette amendment instruments for wording that deserves an operations team's attention.

Health regulation research

Identify legislation under the Health Professions Act, examine relevant provisions, and check Gazette publications for new or amending regulations affecting organizational policies.

Legislation citation inventory

Match titles cited in a policy manual to catalogue citations and readable legislation, then organize the relevant sections and amendment references for review.

Section reference collection

Locate the acts and regulations behind an Alberta research question and assemble a section reading list with source links and consolidation information.

Questions about Alberta legislation search in opencode

Can opencode use Alberta legislation search?

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

How much does Alberta legislation 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 Alberta legislation search in opencode?

No. Spiral runs Alberta legislation 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 Alberta legislation search in opencode?

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

Does opencode wait while Alberta legislation search runs?

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

How often does the Alberta Gazette publish?

The Gazette publishes twice per month in two parts. A daily check can find newly posted issues, but the publication schedule is twice monthly.

Which Gazette part should I read?

Part 1 carries proclamations, Orders in Council, and government notices. Part 2 carries new regulations and amendments filed with the Registrar of Regulations.

How far back does the public Gazette archive go?

The public archive starts in 1995. Alberta directs readers seeking earlier issues to request them or consult KP Source Professional.

Does the electronic Gazette include everything in print?

It may omit maps, charts, and graphs contained in the printed edition. That boundary matters when a regulation refers to a mapped area or graphical schedule.

What distinguishes a legislation result from a Gazette result?

Legislation text provides consolidated acts or regulations with section amendment history and consolidation dates. Gazette Part 2 publishes the new regulations and amendment instruments as filed.

Get started

Start using Alberta legislation 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