Skip to main content
Glama

canada-parliament-mcp-server

Canparl Get Member

canparl_get_member
Read-onlyIdempotent

Read one House MP by a returned OpenParliament slug or official personId, current or former (36th Parliament onward). Pass exactly one identifier from canparl_search_members detailLookup. Official profiles survive unavailable OpenParliament enrichment. Recent ballots come newest first from the official House member-votes feed when the member has one official personId, filterable by votesSession (default: the member's latest session) and votesBillCode; otherwise from OpenParliament. Sponsored bills and recent ballots are independently pageable; set their limits to zero for profile-only lookup.

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_get_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoReturned OpenParliament slug, politician path, or HTTPS OpenParliament profile URL; never a guessed name. A digit-only value equal to a current official personId, or its /politicians/<digits>/ path or profile URL, is read as that personId.
personIdNoDecimal official person ID, distinct from an OpenParliament slug: a current member's, or a former member's from the 36th Parliament onward, such as a canparl_search_members parliament row or a canparl_get_vote ballot. A former member's profile carries their latest Parliament's caucus and riding.
billsOffsetNoZero-based sponsored bill page offset.
recentVotesNoBallot rows to return, 0–10 per call; zero disables, and larger values up to 10000 return 10 with a notice.
votesOffsetNoZero-based ballot page offset.
votesSessionNoOfficial ballot session such as 44-1; omitted means the member's latest session in the feed. Needs one official personId.
votesBillCodeNoKeep official ballots on this bill, including a split-bill suffix such as C-15A; accepts c15, C 15, or bill C-15. Needs one official personId.
sponsoredBillsNoSponsored bill rows to hydrate, 0–5 per call; zero disables, and larger values up to 10000 hydrate 5 with a notice.

Output Schema

NameRequiredDescriptionDefault
capNoBounded workloads after the per-call caps.
errorNoPresent when the call failed. Absent on success.
shownNoReturned activity counts.
memberNoPublic member profile.
noticeNoWorkload clamp, coverage, and recovery guidance.
truncatedNoIndependent source continuations.
provenanceNoAll successful source retrieval metadata.
membershipsNoSource membership history, or null if unavailable.
recentVotesNoIndependently pageable activity section.
unavailableNoExplicit unavailable enrichment outcomes.
appliedFiltersNoNormalized lookup and independent activity controls.
openParliamentNoOpenParliament identity outcome.
sponsoredBillsNoIndependently pageable activity section.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / personId / description
      Previous value: -"Decimal official current person ID; distinct from an OpenParliament slug."New value: +"Decimal official person ID, distinct from an OpenParliament slug: a current member's, or a former member's from the 36th Parliament onward, such as a canparl_search_members parliament row or a canparl_get_vote ballot. A former member's profile carries their latest Parliament's caucus and riding."
    • addedInput schema / properties / personId / pattern
      Added value: +"^\\s*(?:[0-9]+\\s*)?$"
    • addedInput schema / properties / votesBillCode / pattern
      Added value: +"^\\s*(?:(?:[Bb][Ii][Ll][Ll]\\s+)?[CcSs][-\\u0020\\u00A0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000\\u2010-\\u2015\\u2212]?[1-9][0-9]*[A-Za-z]?\\s*)?$"
    • changedInput schema / properties / votesSession / anyOf
      Previous value: -[
      -  {
      -    "description": "Parliament-session token, such as 45-1.",
      -    "pattern": "^\\d+-\\d+$",
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "Parliament and session numbers.",
      -    "properties": {
      -      "parliament": {
      -        "description": "Positive parliament number.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "session": {
      -        "description": "Positive session number.",
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "parliament",
      -      "session"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Parliament-session token, such as 45-1.",
      +    "pattern": "^\\s*(?:[0-9]+-[0-9]+\\s*)?$",
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "Parliament and session numbers.",
      +    "properties": {
      +      "parliament": {
      +        "description": "Positive parliament number.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "session": {
      +        "description": "Positive session number.",
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "parliament",
      +      "session"
      +    ],
      +    "type": "object"
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `invalid_member_identifier`: Neither, both, or malformed identifiers supplied. `member_not_found`: Slug missing or answered by another profile, or official person ID absent from current roster. `unsupported_vote_session`: votesSession malformed or absent from the official division picker. `invalid_vote_filter`: votesBillCode is not a House or Senate bill code. `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: `invalid_member_identifier`: Neither or both identifiers supplied, or a slug that is not an OpenParliament politician reference. `member_not_found`: Slug missing or answered by another profile, or official person ID in neither the current roster nor the all-Parliaments roster. `unsupported_vote_session`: votesSession with a zero or out-of-range number, or absent from the official division picker. `upstream_blocked`: An official parliamentary source refuses the request with HTTP 403. `roster_unavailable`: The official all-Parliaments roster came back empty while resolving a former personId. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "invalid_member_identifier",
      -  "member_not_found",
      -  "unsupported_vote_session",
      -  "invalid_vote_filter",
      -  "upstream_blocked"
      -]New value: +[
      +  "invalid_member_identifier",
      +  "member_not_found",
      +  "unsupported_vote_session",
      +  "upstream_blocked",
      +  "roster_unavailable"
      +]
    • addedOutput schema / properties / member / 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 / member / 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 / member / 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 / member / required
      Previous value: -[
      -  "personId",
      -  "slug",
      -  "name",
      -  "party",
      -  "riding",
      -  "province",
      -  "current",
      -  "url",
      -  "detailLookup",
      -  "gender",
      -  "imageUrl",
      -  "links"
      -]New value: +[
      +  "personId",
      +  "slug",
      +  "name",
      +  "party",
      +  "riding",
      +  "province",
      +  "current",
      +  "from",
      +  "to",
      +  "url",
      +  "detailLookup",
      +  "gender",
      +  "imageUrl",
      +  "links"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the read-only/idempotent safety profile, and the description adds real behavioral context beyond them: official profiles survive unavailable OpenParliament enrichment, ballots come newest-first from a specific feed with a fallback source, and sponsored bills/ballots page independently. Silent cap behavior (larger values return the stated max with a notice) is also disclosed.

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?

Front-loaded with the core action and identifier rule, then progressively narrower operational detail. The clauses are dense (multiple semicolon-joined conditions per sentence) but none are filler; slight density costs a point.

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 read tool with an output schema, the description covers identifiers, data sources, ordering, pagination independence, and limit caps. An agent has everything needed to invoke it correctly without opening the schema.

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 earns above that by adding the cross-parameter rule that exactly one of slug/personId must be passed, that votesSession defaults to the member's latest session, and that votesSession/votesBillCode require an official personId. Those are constraints the schema alone does not express.

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 ("Read one House MP") plus the exact accepted identifiers (OpenParliament slug or official personId) and scope (current or former, 36th Parliament onward). This clearly distinguishes it from canparl_search_members, which returns the identifiers this tool consumes.

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

Usage Guidelines4/5

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

Explicitly routes the agent: "Pass exactly one identifier from canparl_search_members detailLookup," and explains when ballots come from the official House feed versus OpenParliament. It also gives a profile-only mode (set limits to zero). It lacks an explicit negative case (e.g., don't use this to discover members), but the routing intent is unambiguous.

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.