Statcan Cube Metadata
statcan_cube_metadataFull metadata for a StatCan cube: dimensions, member trees, frequency, geography, last release. Use it to construct a coordinate string for statcan_cube_data, and to turn a coordinate back into labels: pass coordinate (e.g. "12.1.1.0.0.0.0.0.0.0") to get the member name at every position (position 1 is usually Geography), or dimension (position or name, e.g. 1 or "Geography") to list EVERY member of that dimension with its id; without either, each dimension lists only its first 10 members and says when it is truncated. Does NOT return vector IDs, for that use statcan_cube_vectors, which enumerates the actual vector id for every dimension-member combination in the cube.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": 36100434
},
"name": "statcan_cube_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dimension | No | Optional: a dimension position (1, 2, ...) or a case-insensitive name fragment (e.g. "Geography"). Returns every member of the matching dimension(s), up to 2,000 each, instead of the first 10. | |
| coordinate | No | Optional: a dot-separated coordinate as used by statcan_cube_data, e.g. "12.1.1.0.0.0.0.0.0.0". Returns coordinate_labels: for each non-zero position the dimension name, member id and member NAME (so "the Geography label for coordinate 12.1.1..." is answered directly). | |
| product_id | Yes | Cube product ID (8-digit, e.g. 36100434 = quarterly GDP, 35100005 = youth admissions to correctional services). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | Cube end date | |
| title_en | Yes | English cube title | |
| title_fr | Yes | French cube title | |
| cansim_id | Yes | CANSIM identifier | |
| dimensions | Yes | Cube dimensions | |
| product_id | Yes | Cube product ID | |
| start_date | Yes | Cube start date | |
| series_count | Yes | Total series in cube | |
| archive_status | Yes | Archive status in English | |
| frequency_code | Yes | Release frequency code | |
| datapoint_count | Yes | Total datapoints in cube |