Skip to main content
Glama

Statcan Cube Metadata

statcan_cube_metadata
Read-onlyIdempotent

Full 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

NameRequiredDescriptionDefault
dimensionNoOptional: 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.
coordinateNoOptional: 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_idYesCube product ID (8-digit, e.g. 36100434 = quarterly GDP, 35100005 = youth admissions to correctional services).

Output Schema

NameRequiredDescriptionDefault
end_dateYesCube end date
title_enYesEnglish cube title
title_frYesFrench cube title
cansim_idYesCANSIM identifier
dimensionsYesCube dimensions
product_idYesCube product ID
start_dateYesCube start date
series_countYesTotal series in cube
archive_statusYesArchive status in English
frequency_codeYesRelease frequency code
datapoint_countYesTotal datapoints in cube

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "product_id": 36100434
      -  }
      -]New value: +[
      +  {
      +    "product_id": 36100434
      +  },
      +  {
      +    "coordinate": "12.1.1.0.0.0.0.0.0.0",
      +    "product_id": 35100005
      +  },
      +  {
      +    "dimension": "Geography",
      +    "product_id": 35100005
      +  }
      +]
    • addedInput schema / properties / coordinate
      Added value: +{
      +  "description": "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).",
      +  "type": "string"
      +}
    • addedInput schema / properties / dimension
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • changedInput schema / properties / product_id / description
      Previous value: -"Cube product ID (8-digit, e.g. 36100434 = quarterly GDP)."New value: +"Cube product ID (8-digit, e.g. 36100434 = quarterly GDP, 35100005 = youth admissions to correctional services)."
  2. Changed1 schema field changed
    • changedOutput schema / properties / product_id / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "string"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds behavior they cannot express: the default output is truncated to the first 10 members per dimension and announces the truncation, while `dimension` returns up to every member. It also discloses the negative capability (no vector IDs) and the positional semantics of output labels.

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

Conciseness4/5

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

Front-loads the purpose, then the two usage modes, then the exclusion; every clause carries information. It is dense with nested parentheticals and a long e.g. coordinate string, which slightly hurts scannability but nothing is filler.

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 a read-only metadata tool with full param documentation and an output schema, an agent has everything needed: what it returns, how to trigger each mode, default truncation, and where to go for vector IDs. No relevant gap remains.

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 baseline is 3; the description still adds meaning by explaining the practical effect of each parameter (coordinate → member name at every position, position 1 usually Geography; dimension accepts a position or name and lifts the 10-member cap). It does not add much beyond the schema's own descriptions, which already say most of this.

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

Purpose5/5

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

States a specific verb and resource ("Full metadata for a StatCan cube") and enumerates exactly what is returned: dimensions, member trees, frequency, geography, last release. It explicitly separates itself from two siblings by naming statcan_cube_data and statcan_cube_vectors and describing what those do instead.

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

Usage Guidelines5/5

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

Gives two concrete use cases with the exact call shape for each (construct a coordinate for statcan_cube_data; pass `coordinate` to label a coordinate; pass `dimension` to list all members). It also states an exclusion: use statcan_cube_vectors for vector IDs, this tool does not return them.

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.