statcan_cube_data
Pack: statcan · Endpoint: https://gateway.pipeworx.io/statcan/mcp
Latest N observations for a specific series within a StatCan cube. coordinate is a 10-position dot-separated string indexing each dimension (map members → positions via statcan_cube_metadata). Trailing zeros for unused dimensions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
product_id | number | yes | Cube product ID. |
coordinate | string | yes | 10-position coordinate, e.g. “1.2.0.0.0.0.0.0.0.0”. |
n_periods | number | no | Latest N periods (default 12). |
Example call
Arguments
{
"product_id": 36100434,
"coordinate": "1.2.0.0.0.0.0.0.0.0"
}
curl
curl -X POST https://gateway.pipeworx.io/statcan/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"statcan_cube_data","arguments":{"product_id":36100434,"coordinate":"1.2.0.0.0.0.0.0.0.0"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('statcan_cube_data', {
"product_id": 36100434,
"coordinate": "1.2.0.0.0.0.0.0.0.0"
});
More examples
{
"product_id": 36100434,
"coordinate": "1.2.0.0.0.0.0.0.0.0",
"n_periods": 24
}
Response shape
Always returns: product_id, coordinate, series_title, vector_id, frequency_code, observations
| Field | Type | Description |
|---|---|---|
product_id | number | Cube product ID |
coordinate | string | 10-position coordinate string |
series_title | string | null | English series title |
vector_id | number | null | Series vector ID |
frequency_code | number | null | Release frequency code |
observations | array | Latest N observations |
Full JSON Schema
{
"type": "object",
"properties": {
"product_id": {
"type": "number",
"description": "Cube product ID"
},
"coordinate": {
"type": "string",
"description": "10-position coordinate string"
},
"series_title": {
"type": [
"string",
"null"
],
"description": "English series title"
},
"vector_id": {
"type": [
"number",
"null"
],
"description": "Series vector ID"
},
"frequency_code": {
"type": [
"number",
"null"
],
"description": "Release frequency code"
},
"observations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"period": {
"type": [
"string",
"null"
],
"description": "Reference period"
},
"value": {
"type": [
"number",
"null"
],
"description": "Numeric value"
},
"released_at": {
"type": [
"string",
"null"
],
"description": "Release timestamp"
}
},
"required": [
"period",
"value",
"released_at"
]
},
"description": "Latest N observations"
}
},
"required": [
"product_id",
"coordinate",
"series_title",
"vector_id",
"frequency_code",
"observations"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"statcan": {
"url": "https://gateway.pipeworx.io/statcan/mcp"
}
}
}
See Getting Started for client-specific install steps.