Uk Parliament Search Bills
uk_parliament_search_billsSearch legislation before the UK Parliament through the official Bills API (bills-api.parliament.uk), matching bill titles and short titles and filtering by parliamentary session id, current stage id, sponsoring member id, and current house (1 = Commons, 2 = Lords). Returns bill id, title, short title, current stage, house, and last-updated date, sortable by title or update date. Answers which Westminster bills concern a subject and how far each has progressed.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "Online Safety Bill"
},
"name": "uk_parliament_search_bills"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | 0-based offset | |
| sort | No | TitleAscending | TitleDescending | DateUpdatedAscending | DateUpdatedDescending | |
| take | No | 1-50 (default 20) | |
| query | No | Search bill title and short title | |
| stage | No | Stage id (1=intro, 2=first reading, etc.) | |
| session | No | Session id (numeric) | |
| member_id | No | Sponsoring member id | |
| current_house | No | 1 = Commons, 2 = Lords |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bills | No | List of bill records matching search criteria | |
| totalResults | No | Total count of matching bills |