[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Federal Court decision search](https://spiral.ai/integrations/opencode/federal-court-decision-search)

# How to Use Federal Court decision search in opencode

Returns published Federal Court decisions matching a legal topic or party name. Use it to find relevant cases on subjects such as patent infringement or procedural fairness when you do not have a citation.

|  |  |
| --- | --- |
| Model | Federal Court decision 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 Federal Court decision search in opencode

- Use Federal Court decision search to find published patent decisions involving Pfizer from 2023 through 2025, then create a reading list in the project's research folder.
- Use Federal Court decision search to find copyright decisions involving the Canadian Broadcasting Corporation and add the returned references to our research notes.
- Use Federal Court decision search 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 search and tell me what changed since last week.
- Check Federal Court decision search and summarize what you find in three bullet points.

## How to set up Federal Court decision 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 Federal Court decision 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": "decisions-fct-cf-gc-ca/court-cases/search_decisions",
    "input": {
      "query": "<query>"
    }
  }'
```

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

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

## Federal Court decision search tools and prices

- [Federal Court of Canada Decisions · Search decisions](https://spiral.ai/tools/alexandria/decisions-fct-cf-gc-ca/court-cases/search_decisions) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 400 | — | Result page, 25 per page (default 1); the next page number is the continuation cursor. |
| sort | relevance, date | — | 'relevance' (default) or 'date' (newest first). |
| date_to |  | — | Latest decision date, YYYY-MM-DD. Pattern: ^\d{4}-\d{2}-\d{2}$. |
| language | en, fr | — | Page language: 'en' (default) or 'fr'. Recent decisions often exist only in English until the Court publishes the French version. |
| date_from |  | — | Earliest decision date, YYYY-MM-DD. Pattern: ^\d{4}-\d{2}-\d{2}$. |

## What can you do with Federal Court decision search 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.

### 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.

## Overview

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

## Federal Court decision search in other agents

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

## More opencode guides

- [Federal Court citation lookup](https://spiral.ai/integrations/opencode/federal-court-citation-lookup)
- [Federal Court decision text](https://spiral.ai/integrations/opencode/federal-court-decision-text)
- [FEMA state and local recovery resources](https://spiral.ai/integrations/opencode/fema-state-and-local-recovery-resources)
- [Federal Court decisions list](https://spiral.ai/integrations/opencode/federal-court-decisions-list)
- [FEMA recovery directory index](https://spiral.ai/integrations/opencode/fema-recovery-directory-index)
- [Federal Court of Appeal citation lookup](https://spiral.ai/integrations/opencode/federal-court-of-appeal-citation-lookup)

## Questions about Federal Court decision search in opencode

**Can opencode use Federal Court decision search?**

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

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

No. Spiral runs Federal Court decision 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 Federal Court decision search in opencode?**

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

**Does opencode wait while Federal Court decision search runs?**

Federal Court decision search 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.

