Canparl Search Members
canparl_search_membersFind House MPs by name, riding, province, or caucus in the complete current official roster, or set parliament to search everyone who sat in that Parliament (36th onward) with official personIds and membership dates. Set includeFormer for OpenParliament's historical name index; its rows may contain only a name and slug. Follow nextOffset with identical filters and use detailLookup with canparl_get_member.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "canparl_search_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Official roster: literal name substring; matching ignores case, accents, dash and quote styles, and repeated whitespace. Historical: OpenParliament's own match, where one token is surname lookup and multiple tokens are full recorded name lookup, not substring search. | |
| limit | No | Maximum rows, default 25, effective cap 100; values through 10000 are accepted and clamp with a notice. Whole records may end the page early at the 24000-byte response budget; follow nextOffset. | |
| party | No | Official caucus name; Bloc and Green aliases accepted; official rosters only, not includeFormer. With parliament, matches the one caucus each member last held in that Parliament, and that roster's own caucus names are accepted. | |
| offset | No | Zero-based offset in the selected ordering. | |
| riding | No | Literal riding substring; matching ignores case, accents, dash and quote styles, and repeated whitespace. Official rosters only, not includeFormer. | |
| province | No | Province postal code or full English name; official rosters only, not includeFormer. | |
| parliament | No | Parliament number, such as 41, whose official House roster to search instead of the current one: everyone who sat in it, one row each with the caucus and riding last held there. The official roster offers the 36th onward; another number fails listing those offered. Not with includeFormer. | |
| includeFormer | No | Use the sparse historical name index instead of an official roster; parliament, riding, province, and party are rejected with it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | Effective page limit after the per-call cap. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Returned row count. | |
| total | No | Exact filtered count of the official roster searched; null for historical index. | |
| notice | No | Limit clamp, empty page, historical coverage, or response-budget guidance. | |
| members | No | Returned member identities. | |
| truncated | No | More queried rows remain. | |
| pagination | No | Continuation in the selected source ordering. | |
| provenance | No | Original source retrieval metadata. | |
| totalCount | No | Exact filtered count of the official roster searched, current or parliament; absent for historical searches. | |
| appliedFilters | No | Normalized AND filters and name semantics. |