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

Notion · Public Records

How to Use legislation.gov.uk legislation search in Notion

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.

Prompts to try with legislation.gov.uk legislation search in Notion

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

Each weekday, use legislation.gov.uk legislation search to find legislation with "procurement" in its title, put the most recently published results first, and report titles absent from the previous check.

legislation.gov.uk legislation searchNotion
Try asking
  • Every Monday at 9am: use legislation.gov.uk legislation search to look this up and give me the result as a table.

  • 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 Notion

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

Use the Spiral skill

  1. Send Notion 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 Spiral's MCP server

  1. Allow custom MCP servers

    A workspace owner opens Settings › Connections, then the Manage tab, and turns on Enable custom MCP servers. Where members may install only approved connections, also add Spiral under Approved connections › Add approved connection › Custom MCP server with the URL below.

  2. Add Spiral to a custom agent

    Open the custom agent (or create one), then Settings › Tools & Access › Add connection › Custom MCP server. Paste this URL, name it Spiral, keep OAuth and click Connect.

    https://api.spiral.ai/mcp
  3. Sign in to Spiral and approve

    Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Notion never sees it, and you can remove it under Settings › Connected apps in the console.

  4. Run legislation.gov.uk legislation search in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds legislation.gov.uk legislation search, prices it and runs it each time the step fires.

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

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

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

legislation.gov.uk legislation search providers and prices

Spiral runs legislation.gov.uk legislation search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
legislation.gov.uk · Search legislation
legislation-gov-uk/legislation/search_legislation

Settings you can ask for

Ask Notion for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 10001

1-based page of 20 results; the continuation cursor is the next page number.

Sortpublished

published orders by publication date, newest first (the site's What's New listing). Omit for the site's default relevance/title order.

Year1200 to 2100

Calendar year of the legislation.

Every API field of legislation.gov.uk · Search legislation is on its tool page: open its card above.

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

Keep a research watchlist of legislation.gov.uk records for procurement, planning, or privacy work. A scheduled agent can compare retrieved titles, contents, provision wording, or amendment records between runs and report the differences it finds.

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.

Questions about legislation.gov.uk legislation search in Notion

Can Notion use legislation.gov.uk legislation search?

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

How much does legislation.gov.uk legislation search cost in Notion?

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

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

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 Notion?

About two minutes: allow custom MCP servers, then add Spiral to a custom agent, then sign in to Spiral and approve.

Does Notion wait while legislation.gov.uk legislation search runs?

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

Get started

Start using legislation.gov.uk legislation search in Notion

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Notion:

Set up Notion

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options