Ukparl Get Bill
ukparl_get_billRetrieve a Westminster bill overview or select stages, stage, publications, amendments, amendment, motions or motion. Stage/amendment/motion selections require the bill-specific billStageId from section=stages; singular amendment/motion also require itemId from their parent collection. Use amendmentId for amendment retrieval and motion.id for motions. Filter only the amendments collection by amendmentNumber, decision or sponsoring memberId. Collection selectors paginate whole records. Overview leaves publications unchecked; select publications to discover actual supplied legislation.gov.uk statute links. Follow contentCursor with the original selection to reconstruct oversized records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Collection records; positive safe integer, default 20, effective cap 50; collections only. | |
| billId | Yes | Parent bill identifier from ukparl_search_bills. | |
| cursor | No | Collection continuation; collections only. | |
| itemId | No | Amendment amendmentId or ping-pong motion.id; singular selections only. | |
| section | No | Selected bill section; overview by default. | overview |
| decision | No | Official amendment decision filter; amendments collection only. | |
| memberId | No | Sponsoring member ID; amendments collection only. | |
| billStageId | No | Bill-specific stage occurrence ID, required for stage/amendment/motion selections. | |
| contentCursor | No | Lossless same-selection content continuation. | |
| amendmentNumber | No | Published amendment number, retaining letter suffixes; amendments collection only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Effective per-call collection limit. | |
| page | No | Actual emitted collection continuation. | |
| error | No | Present when the call failed. Absent on success. | |
| found | No | Whether the selected entity exists. | |
| items | No | Whole selected collection records. | |
| shown | No | Actual whole records emitted or selected for lossless reconstruction. | |
| billId | No | Parent bill ID. | |
| notice | No | Licence, workload and selected empty-collection notices. | |
| record | No | Complete selected record. | |
| source | No | Selected request provenance. | |
| applied | No | Normalized selection and actual source. | |
| section | No | Selected bill section. | |
| delivery | No | Full selected payload, child outline, or JSON fragment. | |
| guidance | No | Same-server recovery for an entity miss. | |
| identity | No | Stable selected-record identifiers retained during content retrieval. | |
| retrieval | No | Same-tool retrieval instruction. | |
| truncated | No | Further source records remain after this selected page. | |
| provenance | No | Selected response provenance retained during content retrieval; source notices remain in the reconstructed payload. | |
| totalCount | No | Known selected collection total. | |
| contentPage | No | Lossless recursive content continuation. | |
| detailLevel | No | Selected source completeness. | |
| collectionPage | No | Collection continuation; reconstruct the outlined selected payload before following it. | |
| requestedLimit | No | Caller limit before clamping. | |
| legislationHandoff | No | Authoritative statute handoff. |