Skip to main content
Glama

canada-parliament-mcp-server

Canparl Get Vote

canparl_get_vote
Read-onlyIdempotent

Read a recorded House division, its full official tally, party totals, and a page of individual ballots. Ballot, personId, party, and province filters affect the ballot page only; nonvoters are absent. Omitted session means the verified current official session. Follow nextOffset with identical filters.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "number": "<number>"
    },
    "name": "canparl_get_vote"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum returned ballots, 1–400 per call, default 30; larger values up to 10000 clamp to 400 with a notice. A page ends early at the 24000-byte response budget; follow nextOffset.
partyNoCanonical official caucus or certain Bloc/Green alias; historical observed caucuses are accepted.
ballotNoRecorded ballot Yea, Nay, or Paired, case-insensitive; Yes and No are accepted as Yea and Nay.
numberYesDivision number returned by canparl_search_votes or canparl_get_bill.
offsetNoZero-based offset in the selected ordering.
sessionNoParliamentary session; omitted means current.
personIdNoDecimal official person ID from canparl_search_members detailLookup or a ballot row; matches this division's recorded participants, including members no longer seated.
provinceNoEnglish province/territory name or one of the 13 postal codes.

Output Schema

NameRequiredDescriptionDefault
capNoEffective ballot page limit after the per-call cap.
errorNoPresent when the call failed. Absent on success.
shownNoReturned ballot count.
tallyNoOfficial counts independent of local filters.
noticeNoLimit clamp, nonvoter, mismatch, empty, past-end, or response-budget guidance.
ballotsNoMatching ballots ordered by caucus, surname, given name, then personId.
byPartyNoComplete unfiltered participant aggregation by source caucus.
divisionNoVerified full-session division metadata.
truncatedNoWhether more matching ballots remain, including after a response-budget stop.
paginationNoContinuation within matching ballots; nextOffset is offset plus ballots returned.
provenanceNoRetrieval metadata for every source request.
totalCountNoMatching ballot count before pagination.
ballotsTotalNoComplete recorded participant count.
appliedFiltersNoNormalized ballot filters and division identity.
ballotsMatchedNoExact matching count before pagination.
tallyMatchesBallotsNoWhether all three official counts match participants; null if any count is absent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / personId / pattern
      Added value: +"^\\s*(?:[0-9]+\\s*)?$"
    • changedInput schema / properties / session / 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: `unsupported_vote_session`: Malformed or unsupported official division session. `vote_not_found`: Division absent from session feed or explicit detail 404. `invalid_ballot_filter`: Unrecognized caucus, province, or ballot value, or a personId that is not decimal. `vote_detail_unavailable`: A listed division has empty participant detail. `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_vote_session`: Session with a zero or out-of-range number, or absent from the official division picker. `vote_not_found`: Division absent from session feed or explicit detail 404. `invalid_ballot_filter`: Unrecognized caucus, province, or ballot value. `vote_detail_unavailable`: A listed division has empty participant detail. `upstream_blocked`: An official parliamentary source refuses the request with HTTP 403. Other values are possible when a failure originates below the handler."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover readOnly, idempotent, and openWorld behavior, but the description adds non-obvious operational details: ballot filters apply only to the ballot page, nonvoters are absent, omitted session defaults to current, and pagination requires carrying filters forward. These are exactly the behavioral constraints an agent needs beyond structured annotations.

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

Conciseness5/5

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

Three compact sentences with the core purpose and most critical scoping constraint front-loaded. Every sentence adds useful information, especially the pagination and filter-scope notes.

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 tool with a full output schema and complete parameter descriptions, the definition supplies the key behavioral context: filter scoping, default session resolution, nonvoter absence, and pagination continuation. Nothing essential for correct invocation is missing.

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, but the description adds cross-parameter meaning by clarifying that ballot, personId, party, and province apply only to the ballot page and that nonvoters are excluded. Most remaining parameter details are left to the schema, which is reasonable given its completeness.

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

Purpose4/5

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

States a specific verb and resource (read a recorded House division) and names the returned artifacts: full tally, party totals, and a page of ballots. It does not explicitly route against sibling tools such as canparl_search_votes, but the division-number lookup and recorded-vote scope make it distinguishable.

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

Usage Guidelines3/5

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

Provides useful operational guidance: filters affect only the ballot page, omitted session means current, and nextOffset should be followed with identical filters. However, it does not state when to use this tool versus canparl_search_votes or other siblings, so usage is implied rather than explicitly guided.

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.