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

NameTypeRequiredDescription
product_idnumberyesCube product ID.
coordinatestringyes10-position coordinate, e.g. “1.2.0.0.0.0.0.0.0.0”.
n_periodsnumbernoLatest 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

FieldTypeDescription
product_idnumberCube product ID
coordinatestring10-position coordinate string
series_titlestring | nullEnglish series title
vector_idnumber | nullSeries vector ID
frequency_codenumber | nullRelease frequency code
observationsarrayLatest 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.

Regenerated from source · build June 21, 2026