search_hansard
Pack: uk-parliament · Endpoint: https://gateway.pipeworx.io/uk-parliament/mcp
Search debate contributions in Hansard.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Full-text query |
house | string | no | Commons | Lords |
date_from | string | no | YYYY-MM-DD |
date_to | string | no | YYYY-MM-DD |
member_id | number | no | Filter by contribution member id |
take | number | no | 1-20 (default 20) |
skip | number | no | 0-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
| Field | Type | Description |
|---|---|---|
results | array | List of matching debate contributions |
totalResults | number | Total 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.