get_explanatory_notes

Pack: legislation-uk · Endpoint: https://gateway.pipeworx.io/legislation-uk/mcp

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_explanatory_notes for the schema, then POST the same URL with its arguments for the data.

Read the Explanatory Notes for a UK Act — plain-language commentary written by the government department responsible, explaining what a section is meant to do and why. NOT part of the law and not endorsed by Parliament — use for context on intent, never as the text of the law itself (use get_legislation_section for that).

Parameters

NameTypeRequiredDescription
typestringyesDocument type, e.g. “ukpga”. One of: ${TYPES}.
yearnumberyesYear, e.g. 2018.
numbernumberyesItem number within that year/type, e.g. 12 for the Data Protection Act 2018.
sectionstringnoOptional: section number, e.g. “5”, to get just that section’s commentary. Omit for an overview.

Example call

Arguments

{
  "type": "ukpga",
  "year": 2018,
  "number": 12
}

curl

curl -X POST https://gateway.pipeworx.io/legislation-uk/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_explanatory_notes","arguments":{"type":"ukpga","year":2018,"number":12}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_explanatory_notes', {
  "type": "ukpga",
  "year": 2018,
  "number": 12
});

More examples

{
  "type": "ukpga",
  "year": 2018,
  "number": 12,
  "section": "5"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "legislation-uk": {
      "url": "https://gateway.pipeworx.io/legislation-uk/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 18, 2026