Ukparl Search Divisions
ukparl_search_divisionsSearch official Commons or Lords division summaries, or use detail, voters or party_totals with a divisionId from the same House. Search supports title/number text, member and inclusive division dates; member searches include memberVote with the recorded House-native lobby and teller flag. Detail preserves complete metadata and teller identities, with roster selectors for voters mode. Voters can filter exact source party labels and House-compatible lobbies. not_recorded means only the source list, never abstention. Party totals count listed non-tellers and tellers separately from official headline counts. Follow collection cursors with unchanged filters; reconstruct oversized content using contentCursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Operation; defaults to search; accepts case-insensitive canonical mode names. | search |
| house | Yes | Selected House and division ID namespace. | |
| limit | No | Positive safe integer; search default 5/cap 10, voters default 20/cap 50; detail and party_totals do not paginate. | |
| lobby | No | Voters only: Commons aye/no/not_recorded or Lords content/not_content. | |
| party | No | Exact case-insensitive source party label; voters only, not a party ID. | |
| query | No | Division title or number search text; search mode only. | |
| cursor | No | Opaque search/voters collection continuation; repeat the same filters. | |
| endDate | No | Inclusive source division-date upper bound; search only. | |
| memberId | No | Members API ID; search returns this member's recorded lobby and teller flag, including divisions where they were a teller. | |
| startDate | No | Inclusive source division-date lower bound; search only. | |
| divisionId | No | Division ID in the selected House; required outside search. | |
| contentCursor | No | Opaque same-selection lossless content continuation, separate from collection cursor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Selected division operation. | |
| page | No | Actual emitted whole-row collection continuation. | |
| error | No | Present when the call failed. Absent on success. | |
| found | No | Selected division existence; absent in search mode. | |
| house | No | House scoping division IDs. | |
| items | No | Explicit search summaries without full roster arrays. | |
| notice | No | Licence, coverage, empty-result and workload notices. | |
| record | No | Complete selected division metadata, teller identities and roster selectors. | |
| source | No | Actual selected API request provenance. | |
| voters | No | Whole deduplicated selected voter rows, including tellers. | |
| applied | No | Required normalized operation and actual workload metadata. | |
| delivery | No | Full selected payload, child outline, or JSON fragment. | |
| guidance | No | Actionable recovery for a missing division or unavailable complete roster. | |
| identity | No | Stable selected-record identifiers retained during content retrieval. | |
| retrieval | No | Same-tool retrieval instruction. | |
| selection | No | Complete normalized filters retained through content delivery. | |
| provenance | No | Selected response provenance retained during content retrieval; source notices remain in the reconstructed payload. | |
| totalCount | No | Known selected collection total; search arrays do not supply a total. | |
| truncation | No | Further collection rows remain; follow page.nextCursor. | |
| contentPage | No | Lossless recursive content continuation. | |
| partyTotals | No | Complete roster-derived party/lobby non-teller and teller counts. | |
| collectionPage | No | Collection continuation; reconstruct the outlined selected payload before following it. | |
| requestedLimit | No | Caller limit when clamped to the operation cap. |