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

opencode · Public Records

How to Use Federal Court decision text in opencode

Returns a published Federal Court decision's text, citation, court file numbers, and judge. Use it to read the reasons and extract supporting paragraphs after locating a case.

Prompts to try with Federal Court decision text in opencode

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

Locate the published decision for 2024 FC 42, then use Federal Court decision text to check the quotations in my draft against its numbered paragraphs.

Federal Court decision textopencode
Try asking
  • Use Federal Court decision text to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Federal Court decision text and tell me what changed since last week.

  • Check Federal Court decision text and summarize what you find in three bullet points.

  • Pull the newest data from Federal Court decision text and give me the result as a table.

How to set up Federal Court decision text 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 Federal Court decision text

    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": "decisions-fct-cf-gc-ca/court-cases/get_decision",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: opencode finds Federal Court decision text on Spiral, shows the price and runs it.

Federal Court decision text providers and prices

Spiral runs Federal Court decision text through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
Federal Court of Canada Decisions · Get decision
decisions-fct-cf-gc-ca/court-cases/get_decision

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Offseta number from 0

Character offset into the decision text (default 0); use the continuation cursor.

Item IDa number from 1

Decisia item id, from the other functions or a decision URL (/item/531684/).

Languageen or fr

Page language: 'en' (default) or 'fr'. When the French version does not exist yet the English one is returned with a warning.

Max chars500 to 100000

Most characters of text to return (default 30000).

Every API field of Federal Court of Canada Decisions · Get decision is on its tool page: open its card above.

What can you do with Federal Court decision text in opencode?

Build a Federal Court research index that connects decision citations with excerpts from the reasons. A coding agent can organize retrieved material in project files and check whether draft quotations match numbered paragraphs.

Patent decisions digest

Review published entries, search for patent issues involving companies such as Pfizer, look up citations selected for the digest, and read the reasons before describing each ruling.

Copyright research notebook

Browse published decisions, find copyright cases involving broadcasters or publishers, resolve cited Federal Court authorities, and collect the paragraphs supporting each research note.

Judicial review teaching pack

Select published decisions, search for procedural fairness and statutory interpretation, locate known citations, and assemble excerpts with paragraph references for classroom discussion.

Published decisions research index

Build an index from browsed entries, use topic searches to assemble subject reading lists, match citations to decision references, and attach short excerpts from the reasons.

Brief citation review

Locate Federal Court citations already used in a draft, read the corresponding reasons, and compare each cited paragraph with the proposition it is meant to support.

Public interest reporting

Find published decisions involving public organizations such as the Canadian Civil Liberties Association and verify quotations against the reasons before preparing an article.

New decisions reading queue

Review newly encountered entries, search for subjects relevant to a research team, and retrieve the reasons for the decisions selected for discussion.

Questions about Federal Court decision text in opencode

Can opencode use Federal Court decision text?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Federal Court decision text like any built-in tool.

How much does Federal Court decision text 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 Federal Court decision text in opencode?

No. Spiral runs Federal Court decision text on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Federal Court decision text in opencode?

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

Does opencode wait while Federal Court decision text runs?

Federal Court decision text runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does this source cover court decisions from every province?

The Federal Court hears federal matters across Canada, but it does not have the general jurisdiction of provincial superior courts. This source is for Federal Court decisions, rather than a nationwide collection of every court's judgments.

Does the Court publish every interim ruling?

No. Interlocutory decisions are generally absent from the Court's website, although the Court may publish those it considers to have precedential value.

How soon should a decision appear online?

The Court's publication notice specifies no later than two days after the Registry sends the decision to counsel of record. For an unrepresented party, it specifies no later than ten days after sending the decision to that party.

Are English and French decisions always available together?

No. Section 20 of the Official Languages Act permits qualifying decisions to be issued in one official language first, with the other following at the earliest possible time.

Does a published decision include the complete court file?

No. The Court directs readers to its separate Court Files service for filed documents and procedural histories. A published judgment should not be treated as the complete litigation record.

Get started

Start using Federal Court decision text 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