Gov Uk Content
v0.2.1GOV.UK Content + Search APIs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
content
Fetch the full rendered content and metadata of any single GOV.UK page from its base_path — guidance, a policy paper, an organisation page, a departmental manual or one section of one. Returns title, description, body, publication and last-updated timestamps, and the page's links. Use gov_uk_search or hmrc_manual_search first when you do not already know the base_path.
| Parameter | Type | Description |
|---|---|---|
base_path * | string |
search
Search everything published on GOV.UK — guidance, forms, statistics, consultations, news, policy papers and departmental manuals — by free text, optionally narrowed to one document format. Returns titles, URL paths and publication timestamps.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
count | number | |
filter_format | string | |
start | number |
hmrc_manuals
List HM Revenue & Customs internal manuals and other UK departmental manuals — the guidance HMRC caseworkers and other officials actually apply, published in full. Covers income tax, PAYE, employment income, capital gains, corporation tax, VAT, inheritance tax, pensions, stamp duty, national insurance, trusts, residence and domicile, double taxation, compliance and penalties, plus non-HMRC manuals from other departments. Use this to see what manuals exist and their base_paths, then hmrc_manual_search to find the section that answers a question.
| Parameter | Type | Description |
|---|---|---|
count | number | Manuals per page, 1-100 (default 50). |
include_other_departments | boolean | Also return non-HMRC departmental manuals (Home Office, DWP, and others). Default false. |
query | string | Optional free text to narrow the manual list, e.g. "capital gains" or "pensions". |
start | number | Offset for paging. |
hmrc_manual_search
Find the section of an HMRC internal manual that answers a UK tax question asked in plain words — salary sacrifice, benefits in kind, travel and subsistence expenses, termination payments, share schemes, residence and domicile, capital gains reliefs, VAT liability, IR35 and off-payroll working, pension annual allowance, inheritance tax reliefs, penalties and compliance. This is HMRC's own working interpretation of the UK tax code, section by section, and it is the level at which UK tax questions are actually answered. Returns each matching section with its manual, its section id (EIM42750, C…
| Parameter | Type | Description |
|---|---|---|
query * | string | The tax question or topic in plain words, e.g. "salary sacrifice pension contributions" or "when is travel to a temporary workplace deductible". |
count | number | Sections to return, 1-100 (default 20). |
include_other_departments | boolean | Also search non-HMRC departmental manual sections. Default false. |
manual | string | Restrict to one manual, as a base_path or slug, e.g. "/hmrc-internal-manuals/employment-income-manual" or "employment-income-manual". Get these from hmrc_manuals. |
start | number | Offset for paging. |
hmrc_manual_section
Retrieve the full text of one section of an HMRC internal manual (or another UK departmental manual), by its base_path or by manual plus section id such as EIM42750. Returns the section title, its text, its place in the manual's structure, whether it has been withdrawn, and its published_at / source_last_modified with age_days so you can tell how current HMRC's stated position is.
| Parameter | Type | Description |
|---|---|---|
base_path | string | Full section path, e.g. "/hmrc-internal-manuals/employment-income-manual/eim42750". |
manual | string | Manual base_path or slug, used together with section_id. |
max_chars | number | Cap on returned body text (default 20000). |
section_id | string | Section id, e.g. "EIM42750" (case-insensitive). |
hmrc_manual_changes
Read what HMRC most recently changed in one of its internal manuals — the per-section revision log the department publishes with each manual, newest first. Each entry carries the section id and title, HMRC's own note of what changed ("Updated for change in legislation for intermediaries", "Page withdrawn"), its published_at and age_days. Use it to tell whether HMRC's stated position on a topic has moved, to audit a manual's freshness, or to watch a specific area of UK tax guidance for revisions.
| Parameter | Type | Description |
|---|---|---|
manual * | string | Manual base_path or slug, e.g. "employment-income-manual" or "/hmrc-internal-manuals/capital-gains-manual". |
limit | number | Change entries to return, 1-200 (default 25). |
section_id | string | Only changes to this section, e.g. "EIM42750". |
since | string | Only changes published on or after this date (YYYY-MM-DD). |
organisations
List GOV.UK government organisations (departments, agencies, etc.) with title, URL path, acronym, and operational state, paginated via start and count (default 20, max 100 per page).
| Parameter | Type | Description |
|---|---|---|
count | number | |
start | number |
taxons
Fetch a GOV.UK taxonomy tree node by base_path (defaults to root "/"), returning the taxon's title, description, phase, links to child taxons, and associated content items.
| Parameter | Type | Description |
|---|---|---|
base_path | string |
search_autocomplete
Autocomplete suggestions.
| Parameter | Type | Description |
|---|---|---|
query * | string |