[Integrations](https://spiral.ai/integrations) › [goose](https://spiral.ai/integrations/goose) › [legislation.gov.uk legislation search](https://spiral.ai/integrations/goose/legislation-gov-uk-legislation-search)

# How to Use legislation.gov.uk legislation search in goose

Returns matching legislation records from title or text searches, with identifying metadata and links. Use it to discover Acts and instruments about a subject when you do not yet have an exact citation.

|  |  |
| --- | --- |
| Model | legislation.gov.uk legislation 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 legislation.gov.uk legislation search in goose

- Use legislation.gov.uk legislation search to find UK legislation containing the phrase "nationally significant infrastructure project" and save the matching titles and identifiers in our research notes.
- Use legislation.gov.uk legislation search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from legislation.gov.uk legislation search and tell me what changed since last week.
- Check legislation.gov.uk legislation search and summarize what you find in three bullet points.
- Pull the newest data from legislation.gov.uk legislation search and give me the result as a table.

## How to set up legislation.gov.uk legislation search in goose

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

### Use Spiral's MCP server

1. **Add the extension**: In goose Desktop, open the sidebar, click Extensions, then Add custom extension. Enter:

2. **Sign in**: When goose first connects to Spiral, your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key. If the browser does not open, goose prints the link to open yourself.

### Use the Spiral skill

1. **Send goose 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 legislation 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": "legislation-gov-uk/legislation/search_legislation",
    "input": {
      "page": 1
    }
  }'
```

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

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

## legislation.gov.uk legislation search tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 1000 | 1 | 1-based page of 20 results; the continuation cursor is the next page number. |
| sort | published | — | `published` orders by publication date, newest first (the site's What's New listing). Omit for the site's default relevance/title order. |
| text |  | — | Full-text search words, e.g. `nationally significant infrastructure project`. |
| type |  | primary+secondary | Legislation type code (`ukpga`, `ukla`, `asp`, `asc`, `anaw`, `nia`, `uksi`, `wsi`, `ssi`, `nisr`, `eur`, `eudn`, `eudr`, ...) or family: `all`, `primary`, `secondary`, `primary+secondary` (default). Pattern: ^[a-z]{2,9}(\+[a-z]{2,9})?$. |
| year | 1200 to 2100 | — | Calendar year of the legislation. |
| title |  | — | Words that must appear in the title, e.g. `Planning Act`. |

## What can you do with legislation.gov.uk legislation search in goose?

Add verified legislation references to a project's policy documents or research tools. A coding agent can match citations to legislation.gov.uk records and organize contents, provision text, or amendment records for review.

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

### Repair legislation citations in documentation

Search for incomplete Act titles in project documentation and resolve them to canonical legislation identifiers for review.

### Maintain a legislative research watchlist

Repeat searches for procurement or environmental legislation and compare amendment records for identified Acts to prepare a research update.

## Overview

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

## legislation.gov.uk legislation search in other agents

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

## More goose guides

- [legislation.gov.uk identifier lookup](https://spiral.ai/integrations/goose/legislation-gov-uk-identifier-lookup)
- [legislation.gov.uk provision text](https://spiral.ai/integrations/goose/legislation-gov-uk-provision-text)
- [legislation.gov.uk amendment records](https://spiral.ai/integrations/goose/legislation-gov-uk-amendment-records)
- [legislation.gov.uk table of contents](https://spiral.ai/integrations/goose/legislation-gov-uk-table-of-contents)
- [civicAPI live election results](https://spiral.ai/integrations/goose/civicapi-live-election-results)
- [Affiliate.com Amazon ASIN to barcode](https://spiral.ai/integrations/goose/affiliate-com-amazon-asin-to-barcode)

## Questions about legislation.gov.uk legislation search in goose

**Can goose use legislation.gov.uk legislation search?**

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

**How much does legislation.gov.uk legislation search cost in goose?**

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

**Do I need an Alexandria account to use legislation.gov.uk legislation search in goose?**

No. Spiral runs legislation.gov.uk 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 legislation.gov.uk legislation search in goose?**

About two minutes: add the extension, then sign in.

**Does goose wait while legislation.gov.uk legislation search runs?**

legislation.gov.uk legislation search runs in the background. goose 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.

