Skip to main content
Glama

canada-parliament-mcp-server

Canparl Search Members

canparl_search_members
Read-onlyIdempotent

Find 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

NameRequiredDescriptionDefault
nameNoOfficial 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.
limitNoMaximum 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.
partyNoOfficial 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.
offsetNoZero-based offset in the selected ordering.
ridingNoLiteral riding substring; matching ignores case, accents, dash and quote styles, and repeated whitespace. Official rosters only, not includeFormer.
provinceNoProvince postal code or full English name; official rosters only, not includeFormer.
parliamentNoParliament 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.
includeFormerNoUse the sparse historical name index instead of an official roster; parliament, riding, province, and party are rejected with it.

Output Schema

NameRequiredDescriptionDefault
capNoEffective page limit after the per-call cap.
errorNoPresent when the call failed. Absent on success.
shownNoReturned row count.
totalNoExact filtered count of the official roster searched; null for historical index.
noticeNoLimit clamp, empty page, historical coverage, or response-budget guidance.
membersNoReturned member identities.
truncatedNoMore queried rows remain.
paginationNoContinuation in the selected source ordering.
provenanceNoOriginal source retrieval metadata.
totalCountNoExact filtered count of the official roster searched, current or parliament; absent for historical searches.
appliedFiltersNoNormalized AND filters and name semantics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changed
    • changedInput schema / properties / includeFormer / description
      Previous value: -"Use the sparse historical name index instead of the complete current official roster."New value: +"Use the sparse historical name index instead of an official roster; parliament, riding, province, and party are rejected with it."
    • changedInput schema / properties / name / description
      Previous value: -"Current: literal name substring. Historical: one token is surname lookup; multiple tokens are full recorded name lookup, not substring search."New value: +"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."
    • addedInput schema / properties / parliament
      Added value: +{
      +  "description": "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.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • changedInput schema / properties / party / description
      Previous value: -"Official caucus name; Bloc and Green aliases accepted; current roster only."New value: +"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."
    • changedInput schema / properties / province / description
      Previous value: -"Province postal code or full English name; current roster only."New value: +"Province postal code or full English name; official rosters only, not includeFormer."
    • changedInput schema / properties / riding / description
      Previous value: -"Literal riding substring; current roster only."New value: +"Literal riding substring; matching ignores case, accents, dash and quote styles, and repeated whitespace. Official rosters only, not includeFormer."
    • addedOutput schema / properties / appliedFilters / properties / parliament
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Parliament whose official roster was searched, or null."
      +}
    • changedOutput schema / properties / appliedFilters / required
      Previous value: -[
      -  "includeFormer",
      -  "name",
      -  "nameMode",
      -  "riding",
      -  "province",
      -  "party"
      -]New value: +[
      +  "includeFormer",
      +  "parliament",
      +  "name",
      +  "nameMode",
      +  "riding",
      +  "province",
      +  "party"
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `unsupported_historical_filter`: Historical mode includes geographic or caucus filters. `invalid_member_filter`: Unknown province or current caucus. `upstream_blocked`: An official parliamentary source refuses the request with HTTP 403. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `unsupported_historical_filter`: Historical mode includes parliament, geographic, or caucus filters. `invalid_member_filter`: Unknown province, a caucus absent from the searched roster and the catalog, or a parliament the official roster does not offer. `upstream_blocked`: An official parliamentary source refuses the request with HTTP 403. `roster_unavailable`: The official roster of an offered Parliament came back empty. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "unsupported_historical_filter",
      -  "invalid_member_filter",
      -  "upstream_blocked"
      -]New value: +[
      +  "unsupported_historical_filter",
      +  "invalid_member_filter",
      +  "upstream_blocked",
      +  "roster_unavailable"
      +]
    • addedOutput schema / properties / members / items / properties / from
      Added value: +{
      +  "description": "Start of the official roster membership this row describes, the roster's FromDateTime as published; null without an official roster row.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / members / items / properties / party / description
      Previous value: -"Source caucus name, or null."New value: +"Source caucus name, or null. An official roster row carries one caucus per member, the last held in its Parliament: a past Parliament's row, or a former member's row from their latest Parliament."
    • addedOutput schema / properties / members / items / properties / to
      Added value: +{
      +  "description": "End of that membership, the roster's ToDateTime as published; null while sitting or without an official roster row.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / members / items / required
      Previous value: -[
      -  "personId",
      -  "slug",
      -  "name",
      -  "party",
      -  "riding",
      -  "province",
      -  "current",
      -  "url",
      -  "detailLookup"
      -]New value: +[
      +  "personId",
      +  "slug",
      +  "name",
      +  "party",
      +  "riding",
      +  "province",
      +  "current",
      +  "from",
      +  "to",
      +  "url",
      +  "detailLookup"
      +]
    • changedOutput schema / properties / total / description
      Previous value: -"Exact filtered current count; null for historical index."New value: +"Exact filtered count of the official roster searched; null for historical index."
    • changedOutput schema / properties / totalCount / description
      Previous value: -"Exact filtered current roster count; absent for historical searches."New value: +"Exact filtered count of the official roster searched, current or parliament; absent for historical searches."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/openWorld, so the bar is met, and the description adds non-obvious behavior: the effective 100-row cap that silently clamps with a notice, the 24000-byte response budget that can end a page early, the 36th-Parliament floor that errors on other numbers, and that includeFormer rows may contain only a name and slug. Those are real behavioral traits the agent could not infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the primary mode are front-loaded, and the middle clause covers the parliament mode, with the paging/detail instructions closing it out. The long parliament sentence is dense and could be split, but no sentence is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, no-required-parameter search tool with a published output schema, the description covers the mode switch, the exclusivity rules, paging continuation, and the handoff to the detail tool — everything needed to invoke it correctly. Return-value shape is omitted, appropriately, since an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes further by stating cross-parameter interactions — that includeFormer rejects parliament/riding/province/party, and that party combined with parliament matches the last caucus held in that Parliament. It stops short of adding syntax detail (e.g., accepted province code formats) already carried by the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — find House MPs — plus the searchable dimensions (name, riding, province, caucus) and the two distinct modes (current official roster vs. a numbered Parliament). It also names the sibling it defers to for detail (canparl_get_member), so an agent can separate it from canparl_get_member without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use this for search, switch to canparl_get_member for detailLookup, and enable includeFormer only for the historical name index. It also states the operational follow-up rule — follow nextOffset with identical filters — which is exactly the guidance an agent needs after a truncated page.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.