compare_member_votes
Compare two MPs' or Lords' voting records division by division to see agreement counts, rates, rebels, and party loyalty. Use for head-to-head voting similarity overall or by topic.
Instructions
Compare how two MPs (or two Lords) voted - lines up their votes division by division | compare voting records, do they agree, voting similarity, rebels, party loyalty, head to head | Use when asked whether two members vote the same way, overall or on a topic | Returns both members, agreement counts and rate, each shared division with both votes, and divisions only one of them voted in. Combines: get_member_by_id (x2), get_commons_voting_record_for_member or get_lords_voting_record_for_member (x2). See also: check_mp_vote, get_commons_divisions_grouped_by_party.
Args:
member_id_a: First member's Parliament ID. Get from get_member_by_name. Example: 4514
member_id_b: Second member's Parliament ID; must sit in the same House as the first.
topic: Optional: only divisions whose title matches this topic (e.g. 'climate', 'Rwanda').
take: Number of each member's most recent matching divisions to compare (default 50, max 100).
Returns:
Agreement summary and division-by-division comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| take | No | ||
| topic | No | ||
| member_id_a | Yes | ||
| member_id_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |