Skip to main content
Glama

Statcan Cube Data

statcan_cube_data
Read-onlyIdempotent

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. The response carries series_title, the member names of that coordinate joined with ";" (e.g. "Alberta;Youth admissions;Total correctional services"), so it also answers which geography or member a coordinate stands for.

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": {
      "coordinate": "1.2.0.0.0.0.0.0.0.0",
      "product_id": 36100434
    },
    "name": "statcan_cube_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
n_periodsNoLatest N periods (default 12).
coordinateYes10-position coordinate, e.g. "1.2.0.0.0.0.0.0.0.0".
product_idYesCube product ID.

Output Schema

NameRequiredDescriptionDefault
vector_idYesSeries vector ID
coordinateYes10-position coordinate string
product_idYesCube product ID
observationsYesLatest N observations
series_titleYesEnglish series title
frequency_codeYesRelease frequency code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is fully covered. The description adds useful behavioral detail about the response carrying series_title with semicolon-joined member names, but that is return-value information, and an output schema already exists to document returns.

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 the core purpose and then the coordinate mechanics, with no filler. The final series_title sentence is somewhat long and secondary, but it still carries useful information rather than restating the schema.

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?

With rich annotations, 100% schema coverage, and an output schema, the remaining burden on the description is the tricky coordinate concept, which is fully explained including the padding convention and the lookup path to member names. An agent has everything needed to construct a valid call and interpret the result.

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 the baseline is 3, but the description goes further by explaining that the coordinate indexes each dimension positionally and that unused dimensions are zero-padded, plus pointing to statcan_cube_metadata for resolving member names. That is genuine added meaning beyond "10-position coordinate, e.g." in the schema.

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

Purpose4/5

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

"Latest N observations for a specific series within a StatCan cube" names a concrete verb (retrieve observations), resource (series in a cube), and scope (latest N). The reference to statcan_cube_metadata for member-to-position mapping further pins down its role, though it never explicitly contrasts itself with data-oriented siblings such as statcan_series.

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

Usage Guidelines4/5

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

It gives clear operational context: the coordinate must be a 10-position dot-separated string, members are mapped to positions via statcan_cube_metadata, and trailing zeros pad unused dimensions. There are no explicit when-not-to-use conditions or named alternatives for fetching data by other means.

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.