[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [GOV.UK product safety notices](https://spiral.ai/integrations/opencode/gov-uk-product-safety-notices)

# How to Use GOV.UK product safety notices in opencode

Returns entries from the OPSS product safety alerts, reports, and recalls list. Use it to find published notices about consumer products, then read the notice for affected products and corrective action.

|  |  |
| --- | --- |
| Model | GOV.UK product safety notices |
| 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 GOV.UK product safety notices in opencode

- Use GOV.UK product safety notices to find published notices mentioning Hoover and create a linked research table in this project.
- Use GOV.UK product safety notices to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from GOV.UK product safety notices and tell me what changed since last week.
- Check GOV.UK product safety notices and summarize what you find in three bullet points.
- Pull the newest data from GOV.UK product safety notices and give me the result as a table.

## How to set up GOV.UK product safety notices 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 GOV.UK product safety notices**: 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": "gov-uk/government-publications/list_product_safety_alerts",
    "input": {
      "q": "<q>"
    }
  }'
```

Then paste one of the prompts above: opencode finds GOV.UK product safety notices on Spiral, shows the price and runs it.

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

## GOV.UK product safety notices tools and prices

- [GOV.UK · List product safety alerts](https://spiral.ai/tools/alexandria/gov-uk/government-publications/list_product_safety_alerts) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| q |  | — | Words to match, e.g. a brand, product or hazard. |
| to |  | — | Latest alert date, YYYY-MM-DD (inclusive). Pattern: ^\d{4}-\d{2}-\d{2}$. |
| from |  | — | Earliest alert date, YYYY-MM-DD (inclusive). Pattern: ^\d{4}-\d{2}-\d{2}$. |
| limit | 1 to 50 | — | Results per page, 1 to 50 (default 10). |
| cursor |  | — | next_cursor from an earlier call (a result offset). Pattern: ^[0-9]+$. |
| category |  | — | Product category slug, e.g. toys, electrical-appliances-equipment, childcare-articles-childrens-equipment, cosmetics, lighting-products, machinery. Pattern: ^[a-z0-9-]+$. |

## What can you do with GOV.UK product safety notices in opencode?

Build a GOV.UK evidence index for a project’s government references. A coding agent can turn publication records, page text, manual sections, organization records, or product notices into linked research material.

### Prepare a retailer’s compliance reading list

Identify the relevant government publishers, find retail guidance, locate HMRC manual sections, and check OPSS notices for the retailer’s product categories. Read the selected pages to produce a linked reading list.

### Research a consumer goods import launch

Build an evidence pack covering customs guidance, relevant HMRC manual sections, government publishing bodies, and published product safety notices. Read the underlying pages before drafting questions for the importer’s advisers.

### Draft a trade association research bulletin

Collect publications, manual amendments, and product safety notices relevant to consumer goods businesses. Match publishers to organization records and read each selected page before writing the bulletin.

### Check a marketplace seller handbook

Compare a draft handbook’s government references with published guidance, HMRC manual contents, and OPSS product notices. Use organization records to resolve publisher names and page content to support proposed corrections.

## Overview

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

## GOV.UK product safety notices in other agents

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

## More opencode guides

- [GOV.UK page content](https://spiral.ai/integrations/opencode/gov-uk-page-content)
- [GOV.UK publication search](https://spiral.ai/integrations/opencode/gov-uk-publication-search)
- [GOV.UK manual contents and updates](https://spiral.ai/integrations/opencode/gov-uk-manual-contents-and-updates)
- [Gov.br agency directory](https://spiral.ai/integrations/opencode/gov-br-agency-directory)
- [GOV.UK government organizations](https://spiral.ai/integrations/opencode/gov-uk-government-organizations)
- [Gov.br agency news](https://spiral.ai/integrations/opencode/gov-br-agency-news)

## Questions about GOV.UK product safety notices in opencode

**Can opencode use GOV.UK product safety notices?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run GOV.UK product safety notices like any built-in tool.

**How much does GOV.UK product safety notices 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 GOV.UK product safety notices in opencode?**

No. Spiral runs GOV.UK product safety notices on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up GOV.UK product safety notices in opencode?**

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

**Does opencode wait while GOV.UK product safety notices runs?**

GOV.UK product safety notices runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does this cover every UK government website?**

No. GOV.UK content retrieval covers pages hosted on www.gov.uk. It does not provide general coverage of other government websites.

**Does GOV.UK search include publications in every language?**

No. GOV.UK documents that only English documents are allowed into its search index, and certain formats are excluded.

**What does a GOV.UK search update date mean?**

The public timestamp is the last updated date excluding minor editorial corrections. A date-based search therefore does not identify every text edit.

**Can I retrieve an earlier version of a publication?**

The Content API returns published GOV.UK content. GOV.UK directs requests for historical content to the National Archives.

**Are HMRC manuals complete answers to tax questions?**

No. HMRC explicitly says its manuals are not comprehensive and do not provide a definitive answer in every case.

