Skip to main content
Glama

Statcan Cube Vectors

statcan_cube_vectors
Read-onlyIdempotent

Enumerate the vector IDs inside a StatCan cube (table), the missing link between a table number/name (e.g. "32-10-0121-01" or "Production and disposition of eggs") and statcan_series, which needs a specific vector id. Every StatCan question starts with a table, but nothing else in this pack lists a table's vectors. Returns one row per dimension-member combination: vector_id, coordinate, and the member label for every dimension (e.g. GEO=Canada, Production and disposition=Average number of layers). Filter by dimension name/value (e.g. {"GEO":"Canada"}) to narrow a large table, unfiltered dimensions include ALL their members, which can be thousands of rows, so use filters plus limit/page. Then pass any returned vector_id to statcan_series for the actual data.

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": {
      "filters": {
        "GEO": "Canada"
      },
      "product_id": "32100121"
    },
    "name": "statcan_cube_vectors"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1).
limitNoMax vector rows per page (default 100, max 500).
filtersNoOptional dimension filters, e.g. {"GEO": "Canada"} or {"Geography": "British Columbia"}. Keys match by case-insensitive substring against the cube's dimension names (so "GEO" matches "Geography"); values match by case-insensitive substring against member names. Dimensions with no filter include every member.
product_idYesCube product ID, either form: "32100121" or the table number "32-10-0121-01".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover safety (readOnly/idempotent/destructive) and openness, so the description carries the return-shape burden: one row per dimension-member combination with vector_id, coordinate, and every dimension's member label. It also discloses the main behavioral trap — unfiltered dimensions include all members and can produce thousands of rows — and prescribes paging. That is substantial context beyond the annotations.

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?

Three sentences, front-loaded with purpose and scope, then return shape, then the workflow handoff. Slightly dense with parenthetical examples that partly duplicate the schema, but no sentence is wasted.

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?

Covers what it does, the inputs that matter, what comes back (important since there is no output schema), the row-volume hazard, and the downstream step into statcan_series. Nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already explains filters (case-insensitive substring matching on dimension and member names), product_id's two accepted forms, and limit/page defaults. The description's filter example {"GEO":"Canada"} and product_id example restate rather than extend that, so the baseline of 3 applies.

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?

Uses a specific verb ('Enumerate') plus resource ('vector IDs inside a StatCan cube') and explicitly frames the tool's role as the bridge between a table number/name and statcan_series, which needs a vector id. An agent can distinguish it from statcan_series, statcan_cube_data, and statcan_cube_metadata without opening the schema.

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?

States when to use it ('Every StatCan question starts with a table, but nothing else in this pack lists a table's vectors') and what to do next ('Then pass any returned vector_id to statcan_series for the actual data'). It also gives a concrete handling instruction for large tables (filters plus limit/page), leaving little to inference.

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.