search_lords_divisions
Search House of Lords divisions to find how Lords voted on bills or amendments; filter by member, date range, or vote margin to identify close or contested votes. Returns divisions with vote counts.
Instructions
Search Lords divisions | House of Lords votes, Lords voting records, how Lords voted | Use to find how Lords voted on bills, amendments or issues or find close/contested votes; filter by member, date range or division number | Returns matching divisions with vote counts. See also: search_commons_divisions, get_lords_division_by_id, compare_member_votes.
Args:
search_term: Optional: search term for division topics (e.g. 'brexit', 'climate', 'NHS').
member_id: Optional: only divisions this member voted in.
start_date: Optional: start date in YYYY-MM-DD format.
end_date: Optional: end date in YYYY-MM-DD format.
division_number: Optional: specific division number.
include_when_member_was_teller: Optional: include divisions where the member was a teller.
majority_comparator: Optional: compare majority - 'LessThan', 'LessThanOrEqualTo', 'EqualTo', 'GreaterThanOrEqualTo', 'GreaterThan'. Use with majority_value to find close votes.
majority_value: Optional: majority threshold to compare against (e.g., 10 to find votes with margin < 10).
total_votes_comparator: Optional: compare total votes - same options as majority_comparator.
total_votes_value: Optional: total votes threshold to compare against.
skip: Number of records to skip (for pagination).
take: Number of records to return (default 25, max 100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | ||
| take | No | ||
| end_date | No | ||
| member_id | No | ||
| start_date | No | ||
| search_term | No | ||
| majority_value | No | ||
| division_number | No | ||
| total_votes_value | No | ||
| majority_comparator | No | ||
| total_votes_comparator | No | ||
| include_when_member_was_teller | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |