Skip to main content
Glama

Statcan List Cubes

statcan_list_cubes
Read-onlyIdempotent

List available StatCan cubes (tables), lean: productId + title (en/fr) + CANSIM id + dimension count + release date. Use the productId with statcan_cube_metadata / statcan_cube_data. StatCan has ~8,000 cubes and its endpoint has no paging of its own, so this tool pages for you: pass title to search by name (recommended, it is the fast way to the handful you want), or walk page. Default 200 per page; has_more tells you whether more exist.

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": {},
    "name": "statcan_list_cubes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1).
limitNoCubes per page (1-500, default 200).
titleNoCase-insensitive substring match against the English and French cube titles, e.g. "egg" or "population". Searches every cube, not just the first page.

Output Schema

NameRequiredDescriptionDefault
noteNoPresent when the scan was truncated: says what was scanned and how to narrow
pageYes1-based page number returned
countYesCubes returned on THIS page (not the catalogue total -- StatCan's endpoint has no paging, so this tool streams and pages; use has_more/next_page)
cubesYesList of available cubes
limitYesCubes per page (1-500, default 200)
licenceNoStatistics Canada Open Licence
scannedNoCubes read off the upstream stream before stopping -- the bound that keeps this call from holding StatCan's whole 8 MB array in memory
has_moreYesTrue when more cubes exist beyond this page
next_pageNoNext page number, or null at the end
title_filterNoThe lower-cased title substring applied, or null
scan_truncatedNoTrue when the read stopped at the cap rather than the end of the upstream array, so a short page is OUR ceiling and not proof the list ended
upstream_bytes_readNoBytes actually pulled from StatCan WDS for this call

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / title / description
      Previous value: -"Case-insensitive substring match against the English and French cube titles, e.g. \"egg\" or \"population\". Applied to the cubes scanned on this page."New value: +"Case-insensitive substring match against the English and French cube titles, e.g. \"egg\" or \"population\". Searches every cube, not just the first page."
  2. Changed15 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Cubes per page (1-500, default 200).",
      +  "type": "number"
      +}
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Page number, 1-based (default 1).",
      +  "type": "number"
      +}
    • addedInput schema / properties / title
      Added value: +{
      +  "description": "Case-insensitive substring match against the English and French cube titles, e.g. \"egg\" or \"population\". Applied to the cubes scanned on this page.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / count / description
      Previous value: -"Total number of cubes"New value: +"Cubes returned on THIS page (not the catalogue total -- StatCan's endpoint has no paging, so this tool streams and pages; use has_more/next_page)"
    • addedOutput schema / properties / has_more
      Added value: +{
      +  "description": "True when more cubes exist beyond this page",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / licence
      Added value: +{
      +  "description": "Statistics Canada Open Licence",
      +  "type": "string"
      +}
    • addedOutput schema / properties / limit
      Added value: +{
      +  "description": "Cubes per page (1-500, default 200)",
      +  "type": "number"
      +}
    • addedOutput schema / properties / next_page
      Added value: +{
      +  "description": "Next page number, or null at the end",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Present when the scan was truncated: says what was scanned and how to narrow",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / page
      Added value: +{
      +  "description": "1-based page number returned",
      +  "type": "number"
      +}
    • addedOutput schema / properties / scan_truncated
      Added value: +{
      +  "description": "True when the read stopped at the cap rather than the end of the upstream array, so a short page is OUR ceiling and not proof the list ended",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / scanned
      Added value: +{
      +  "description": "Cubes read off the upstream stream before stopping -- the bound that keeps this call from holding StatCan's whole 8 MB array in memory",
      +  "type": "number"
      +}
    • addedOutput schema / properties / title_filter
      Added value: +{
      +  "description": "The lower-cased title substring applied, or null",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / upstream_bytes_read
      Added value: +{
      +  "description": "Bytes actually pulled from StatCan WDS for this call",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "count",
      -  "cubes"
      -]New value: +[
      +  "count",
      +  "page",
      +  "limit",
      +  "has_more",
      +  "cubes"
      +]
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world behavior, so the description clears a lower bar. It adds genuinely useful traits the annotations cannot express: catalog scale (~8,000 cubes), the fact that the upstream endpoint has no native paging so this tool pages on the caller's behalf, the default page size, and the presence of a `has_more` flag.

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?

It is front-loaded and dense with real information; the paging constraint arrives before the parameter advice. Minor waste remains: the return-field list partially duplicates the output schema, and the parenthetical "(recommended, it is the fast way to the handful you want)" is slightly verbose.

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 three-parameter, zero-required listing tool with annotations and an output schema, this covers everything an agent needs: what comes back, scale, paging mechanics, default page size, and how to chain into the cube metadata/data tools. No material 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% and each parameter is already documented in the schema, so the baseline would be 3. The description adds a recommendation layer the schema lacks (title is "the fast way to the handful you want") and notes that title search spans every cube, not just the current page, which affects how an agent sequences calls.

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?

The opening sentence gives a specific verb and resource ("List available StatCan cubes (tables)") and immediately declares the lean return shape (productId, en/fr title, CANSIM id, dimension count, release date). An agent can distinguish this from statcan_cube_metadata / statcan_cube_data because the description names those siblings and explains the productId handoff.

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?

Explicit routing is given: use productId with statcan_cube_metadata / statcan_cube_data for follow-up work, and prefer `title` search over walking `page` because the catalog has ~8,000 cubes. It names both usage modes and states which one is recommended and why.

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.