Ukparl Search Bills
ukparl_search_billsSearch Westminster bill summaries by title, current or originating House, session, sponsoring member, department, reference stage, bill type or status, with optional official ordering. Use ukparl_lookup_reference for stage/type/department IDs and ukparl_get_bill for complete selected records. Department IDs are distinct from answering-body IDs. inAmendableStage=true restricts to amendable stages; false is unrestricted. No session or date scope is inferred. Follow collection cursors with the same filters; use contentCursor to reconstruct an oversized item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| house | No | Current Commons or Lords House. | |
| limit | No | Requested bills; positive safe integer, default 10, effective cap 20. | |
| query | No | Bill title search text. | |
| cursor | No | Opaque collection continuation; preserve filters. | |
| memberId | No | Sponsoring member identifier. | |
| stageIds | No | Reference stages, distinct from bill-specific stage IDs. | |
| sessionId | No | Session identifier discovered in bill records. | |
| sortOrder | No | Official ordering; omission preserves the source default. | |
| isDefeated | No | Filter by defeated state, including false. | |
| billTypeIds | No | Reference bill types. | |
| isWithdrawn | No | Filter by withdrawn state, including false. | |
| departmentId | No | Members department ID from ukparl_lookup_reference topic=departments; distinct from answering-body IDs. | |
| contentCursor | No | Opaque same-selection lossless content continuation. | |
| inAmendableStage | No | True restricts to amendable stages; false applies no restriction. | |
| originatingHouse | No | Originating Commons or Lords House; omission includes all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Effective per-call collection limit. | |
| page | No | Actual whole-item pagination. | |
| error | No | Present when the call failed. Absent on success. | |
| items | No | Complete source bill summaries on this page. | |
| query | No | Complete normalized query text, also reconstructed through content continuation. | |
| shown | No | Actual whole records emitted or selected for lossless reconstruction. | |
| notice | No | Licence and empty/workload notices. | |
| applied | No | Normalized filters; no implicit current-session scope. | |
| delivery | No | Full selected payload, child outline, or JSON fragment. | |
| identity | No | Stable selected-record identifiers retained during content retrieval. | |
| retrieval | No | Same-tool retrieval instruction. | |
| truncated | No | Further source matches remain after this selected page. | |
| provenance | No | Selected response provenance retained during content retrieval; source notices remain in the reconstructed payload. | |
| totalCount | No | Source total matches. | |
| contentPage | No | Lossless recursive content continuation. | |
| collectionPage | No | Collection continuation; reconstruct the outlined selected payload before following it. | |
| requestedLimit | No | Caller limit before clamping. |