search_bills
Pack: uk-parliament · Endpoint: https://gateway.pipeworx.io/uk-parliament/mcp
Search bills by title / session / stage / sponsoring member.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | Search bill title and short title |
session | number | no | Session id (numeric) |
stage | number | no | Stage id (1=intro, 2=first reading, etc.) |
member_id | number | no | Sponsoring member id |
current_house | number | no | |
sort | string | no | TitleAscending | TitleDescending | DateUpdatedAscending | DateUpdatedDescending |
take | number | no | 1-50 (default 20) |
skip | number | no | 0-based offset |
Example call
Arguments
{
"query": "Online Safety Bill"
}
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_bills","arguments":{"query":"Online Safety Bill"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_bills', {
"query": "Online Safety Bill"
});
More examples
{
"stage": 2,
"current_house": 1,
"sort": "DateUpdatedDescending",
"take": 10
}
Response shape
| Field | Type | Description |
|---|---|---|
bills | array | List of bill records matching search criteria |
totalResults | number | Total count of matching bills |
Full JSON Schema
{
"type": "object",
"description": "Search results for parliamentary bills",
"properties": {
"bills": {
"type": "array",
"description": "List of bill records matching search criteria",
"items": {
"type": "object",
"description": "Individual bill record"
}
},
"totalResults": {
"type": "number",
"description": "Total count of matching bills"
}
}
}
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.