[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Justice Laws legislation directory](https://spiral.ai/integrations/claude-code/justice-laws-legislation-directory)

# How to Use Justice Laws legislation directory in Claude Code

Returns alphabetical listings of Canadian federal acts or regulations with their identifiers. Use it to locate a known title before retrieving the document or its sections.

|  |  |
| --- | --- |
| Model | Justice Laws legislation directory |
| 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 Justice Laws legislation directory in Claude Code

- Use Justice Laws legislation directory to locate the Canada Labour Code and save its title and identifier in this project's research index.
- Use Justice Laws legislation directory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Justice Laws legislation directory and tell me what changed since last week.
- Check Justice Laws legislation directory and summarize what you find in three bullet points.
- Pull the newest data from Justice Laws legislation directory and give me the result as a table.

## How to set up Justice Laws legislation directory in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code 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 Justice Laws legislation directory**: 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": "laws-lois-justice-gc-ca/legislation/list_legislation",
    "input": {
      "kind": "acts",
      "letter": "<letter>"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Justice Laws legislation directory on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Justice Laws legislation directory tools and prices

- [Justice Laws Website (Canada) · List legislation](https://spiral.ai/tools/alexandria/laws-lois-justice-gc-ca/legislation/list_legislation) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| title_contains |  | — | Case-insensitive substring filter on titles. |

## What can you do with Justice Laws legislation directory in Claude Code?

Build a searchable federal-law reference inside your project using Justice Laws material. A coding agent can organize titles, document contents, retrieved text, and historical records into cited research pages.

### Prepare a federal privacy research handbook

Locate the Privacy Act and Privacy Regulations, map their contents, retrieve relevant sections with surrounding text, and compare historical wording for dated examples.

### Document access-to-information procedures

Find the Access to Information Act and related regulations, assemble cited passages for a procedures guide, and check which document versions support older guidance.

### Review references in a workplace policy

Locate Canada Labour Code references, check quoted provisions against their surrounding sections, and compare the text used when the policy was written with the current consolidation.

### Build an environmental legislation briefing

Identify relevant federal legislation for a Fisheries Act research question, organize its headings and regulations, and assemble current and historical passages for a dated briefing.

### Create a federal-law reading list

Combine title browsing and topic searches to identify legislation for a course on Canadian public administration. Use document contents to organize the reading list by subject.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Justice Laws legislation directory in other agents

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

## More Claude Code guides

- [Justice Laws legislation details](https://spiral.ai/integrations/claude-code/justice-laws-legislation-details)
- [Justice Laws legislation page](https://spiral.ai/integrations/claude-code/justice-laws-legislation-page)
- [JPL asteroid close approaches](https://spiral.ai/integrations/claude-code/jpl-asteroid-close-approaches)
- [Justice Laws legislation search](https://spiral.ai/integrations/claude-code/justice-laws-legislation-search)
- [JPL asteroid and comet search](https://spiral.ai/integrations/claude-code/jpl-asteroid-and-comet-search)
- [Justice Laws legislation versions](https://spiral.ai/integrations/claude-code/justice-laws-legislation-versions)

## Questions about Justice Laws legislation directory in Claude Code

**Can Claude Code use Justice Laws legislation directory?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Justice Laws legislation directory like any built-in tool.

**How much does Justice Laws legislation directory cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use Justice Laws legislation directory in Claude Code?**

No. Spiral runs Justice Laws legislation directory on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Justice Laws legislation directory in Claude Code?**

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

**Does Claude Code wait while Justice Laws legislation directory runs?**

Justice Laws legislation directory runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does Justice Laws cover provincial legislation?**

The consolidated collection covers federal acts and regulations maintained by Canada's Department of Justice. It is not a directory of provincial or territorial legislation.

**How current is the legislation?**

Consolidations are generally updated every two weeks and typically reflect the law from two to three weeks earlier. The current-to date and last-amended date are separate, so an old amendment date does not by itself mean the consolidation is stale.

**How far back can I research the law?**

Historical coverage generally starts January 1, 2003 for acts and March 22, 2006 for regulations. The Income Tax Act and Income Tax Regulations have a separate starting date of August 31, 2004.

**Is the amendment list a complete history?**

No. The displayed amendment list covers amendments effective since January 1, 2019 and is limited to the last 10 amendments, so it should not be treated as the document's entire history.

**Are the consolidations official?**

Justice Laws consolidations have official status from June 1, 2009 and can be used for evidentiary purposes. That status does not make an agent's summary an official text.

