[Integrations](https://spiral.ai/integrations) › [Raycast](https://spiral.ai/integrations/raycast) › [legislation.gov.uk table of contents](https://spiral.ai/integrations/raycast/legislation-gov-uk-table-of-contents)

# How to Use legislation.gov.uk table of contents in Raycast

Returns the headings and numbered provisions that organize an Act or instrument on legislation.gov.uk. Use it to locate relevant sections and schedules before requesting their text.

|  |  |
| --- | --- |
| Model | legislation.gov.uk table of contents |
| 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 legislation.gov.uk table of contents in Raycast

- Use legislation.gov.uk table of contents for the Procurement Act 2023 and list the Parts and schedules as a reading guide.
- Scrape https://example.com/pricing with legislation.gov.uk table of contents and turn it into a comparison table.
- Crawl the docs at https://docs.example.com with legislation.gov.uk table of contents and summarize each section.
- Pull the latest posts from this blog with legislation.gov.uk table of contents and list their titles and dates.
- Scrape the job listings at https://example.com/careers with legislation.gov.uk table of contents and give me a CSV.

## How to set up legislation.gov.uk table of contents in Raycast

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

### Use the Raycast connector

1. **Install the server**: In Raycast run Install MCP Server. Name it Spiral, set Transport to HTTP, paste this URL and keep OAuth Type on Dynamic:

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Spiral opens in your browser: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Raycast never sees it, and you can remove it under Settings › Connected apps in the console.

### Use the Spiral skill

1. **Send Raycast 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 legislation.gov.uk table of contents**: 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": "legislation-gov-uk/legislation/get_contents",
    "input": {
      "type": "<type>",
      "year": 1200,
      "number": 1
    }
  }'
```

Then paste one of the prompts above: Raycast finds legislation.gov.uk table of contents on Spiral, shows the price and runs it.

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

## legislation.gov.uk table of contents tools and prices

- [legislation.gov.uk · Get contents](https://spiral.ai/tools/alexandria/legislation-gov-uk/legislation/get_contents) (Alexandria): $0.00873 per call.

## What can you do with legislation.gov.uk table of contents in Raycast?

Prepare a legislation reading list with source references for a policy question. A chat app can organize legislation.gov.uk results into a comparison of titles, provisions, or recorded amendments without treating retrieved wording as automatically up to date.

### Prepare a planning legislation brief

Find legislation about nationally significant infrastructure projects, resolve the cited Acts, map relevant headings, read selected provisions, and review recorded amendments for a planning research brief.

### Review privacy policy references

Research legislation cited in a business privacy policy, confirm each identifier, locate relevant sections, collect their wording, and examine amendment records before proposing policy revisions.

### Build a procurement research pack

Discover procurement legislation, confirm citations, organize the relevant Parts and schedules, retrieve selected text, and attach recorded changes for a purchasing team's review.

### Check a consumer rights explainer

Find the legislation behind an article's claims, establish exact identifiers, locate the cited provisions, compare the article with source wording, and inspect amendment records before publication.

### Create a section reading list

Turn an Act's contents into a reading list, then retrieve the selected provisions with their section headings for a training session.

## Overview

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

## legislation.gov.uk table of contents in other agents

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

## More Raycast guides

- [legislation.gov.uk provision text](https://spiral.ai/integrations/raycast/legislation-gov-uk-provision-text)
- [Affiliate.com Amazon ASIN to barcode](https://spiral.ai/integrations/raycast/affiliate-com-amazon-asin-to-barcode)
- [legislation.gov.uk legislation search](https://spiral.ai/integrations/raycast/legislation-gov-uk-legislation-search)
- [Affiliate.com barcode to Amazon ASIN](https://spiral.ai/integrations/raycast/affiliate-com-barcode-to-amazon-asin)
- [legislation.gov.uk identifier lookup](https://spiral.ai/integrations/raycast/legislation-gov-uk-identifier-lookup)
- [Affiliate.com merchant profile](https://spiral.ai/integrations/raycast/affiliate-com-merchant-profile)

## Questions about legislation.gov.uk table of contents in Raycast

**Can Raycast use legislation.gov.uk table of contents?**

Yes. Add Spiral to Raycast as an MCP server, and Raycast can find and run legislation.gov.uk table of contents like any built-in tool.

**How much does legislation.gov.uk table of contents cost in Raycast?**

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

**Do I need an Alexandria account to use legislation.gov.uk table of contents in Raycast?**

No. Spiral runs legislation.gov.uk table of contents on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up legislation.gov.uk table of contents in Raycast?**

About two minutes: install the server, then sign in to Spiral and approve.

**Does Raycast wait while legislation.gov.uk table of contents runs?**

legislation.gov.uk table of contents runs in the background. Raycast starts the run, checks on it and gives you the json when it's ready.

**Does legislation.gov.uk contain every UK law?**

No. It holds almost all UK primary and secondary legislation published since 1988, plus some earlier legislation, so an unsuccessful search does not establish that a law never existed.

**How quickly are amendment records added?**

The source says recording effects can take up to six weeks when a document is large or many new laws need analysis. That is the time to record changes, not a guarantee that the revised wording has incorporated them.

**Does the latest available text include every amendment?**

No. Legislation.gov.uk can have known changes that have not yet been applied to its text, and its XML metadata lists outstanding effects.

**How far back does the version history go?**

Requests before February 1, 1991, normally redirect to the base-date version; the corresponding base date for Northern Ireland legislation is January 1, 2006. Historical version coverage therefore has a different boundary from the date of the law itself.

**Can a subject search match exact phrases?**

Yes. Legislation.gov.uk supports phrases and Boolean queries in title and text searches, with uppercase AND and OR acting as operators.

