elections_canada_poll_results
Pack: elections-canada · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/elections_canada_poll_results for the schema, then POST the same URL with its arguments for the data.
Official poll-by-poll votes by candidate for one Canadian federal electoral district in the 45th general election (28 April 2025), from Elections Canada official voting results: per polling division valid votes for each candidate with party, rejected ballots and electors, plus district totals and the elected candidate. Optionally narrow to one polling division number. Paged: use offset and limit. Example: elections_canada_poll_results({ district: “Ottawa Centre”, limit: 5 }).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
district | string | yes | District name (e.g. “Ottawa Centre”) or 5-digit district number (e.g. “35079”). |
poll | string | no | Optional polling division number to return only that poll, e.g. “12” or “45A”. |
limit | number | no | Polls per page (default 25, max 200). |
offset | number | no | Polls to skip (default 0). |
Example call
Arguments
{
"district": "Ottawa Centre",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/elections-canada/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"elections_canada_poll_results","arguments":{"district":"Ottawa Centre","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('elections_canada_poll_results', {
"district": "Ottawa Centre",
"limit": 5
});
Response shape
| Field | Type | Description |
|---|---|---|
election | string | |
found | boolean | |
results_basis | string | |
district_number | string | |
district | string | |
province | string | |
district_totals | object | |
polls | array | |
coverage | object | |
as_of | string | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"election": {
"type": "string"
},
"found": {
"type": "boolean"
},
"results_basis": {
"type": "string"
},
"district_number": {
"type": "string"
},
"district": {
"type": "string"
},
"province": {
"type": "string"
},
"district_totals": {
"type": "object",
"properties": {
"polls_in_file": {
"type": "number"
},
"valid_votes": {
"type": "number"
},
"rejected_ballots": {
"type": "number"
},
"electors_on_poll_lists": {
"type": "number"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"candidate": {
"type": "string"
},
"party": {
"type": "string"
},
"votes": {
"type": "number"
},
"elected": {
"type": "boolean"
},
"incumbent": {
"type": "boolean"
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
},
"polls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"poll": {
"type": "string"
},
"name": {
"type": "string"
},
"void_poll": {
"type": "boolean"
},
"no_poll_held": {
"type": "boolean"
},
"combined_with": {
"type": "null"
},
"rejected_ballots": {
"type": "number"
},
"electors": {
"type": "number"
},
"votes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"candidate": {
"type": "string"
},
"party": {
"type": "string"
},
"votes": {
"type": "number"
}
},
"additionalProperties": true
}
},
"total_valid_votes": {
"type": "number"
}
},
"additionalProperties": true
}
},
"coverage": {
"type": "object",
"properties": {
"polls_returned": {
"type": "number"
},
"polls_matching": {
"type": "number"
},
"offset": {
"type": "number"
},
"limit": {
"type": "number"
}
},
"additionalProperties": true
},
"as_of": {
"type": "string"
},
"source": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the elections-canada pack
{
"mcpServers": {
"elections-canada": {
"url": "https://gateway.pipeworx.io/elections-canada/mcp"
}
}
}
See Getting Started for client-specific install steps.