search_hansard

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

Search debate contributions in Hansard.

Parameters

NameTypeRequiredDescription
querystringyesFull-text query
housestringnoCommons | Lords
date_fromstringnoYYYY-MM-DD
date_tostringnoYYYY-MM-DD
member_idnumbernoFilter by contribution member id
takenumberno1-20 (default 20)
skipnumberno0-based offset

Example call

Arguments

{
  "query": "climate change",
  "house": "Commons"
}

curl

curl -X POST https://gateway.pipeworx.io/uk-parliament/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_hansard","arguments":{"query":"climate change","house":"Commons"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_hansard', {
  "query": "climate change",
  "house": "Commons"
});

More examples

{
  "query": "NHS funding",
  "house": "Lords",
  "date_from": "2024-01-01",
  "date_to": "2024-12-31",
  "take": 15
}

Response shape

FieldTypeDescription
resultsarrayList of matching debate contributions
totalResultsnumberTotal count of matching contributions
Full JSON Schema
{
  "type": "object",
  "description": "Search results for Hansard debate contributions",
  "properties": {
    "results": {
      "type": "array",
      "description": "List of matching debate contributions",
      "items": {
        "type": "object",
        "description": "Individual contribution record"
      }
    },
    "totalResults": {
      "type": "number",
      "description": "Total count of matching contributions"
    }
  }
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026