Skip to main content
Glama

Statcan Table

statcan_table
Read-onlyIdempotent

Whole StatCan table (or a filtered slice) in ONE call, from a local Pipeworx copy of the table, full history, every coordinate, member labels included, instead of one coordinate per call. Use this instead of statcan_cube_data when the question spans more than one coordinate ("compare all provinces", "the whole eggs/milk/hydro table", "full history for this table"), or instead of statcan_csv_url when you need the DATA rather than a download URL. Covers a curated set of high-demand StatCan product ids only, call with just product_id to check coverage; an uncached product_id REFUSES with a clear message naming what is cached, it does not return an empty result. Data refreshes weekly from StatCan's official getFullTableDownloadCSV export; every response carries data_as_of. Statistics Canada Open Licence permits redistribution.

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": 42100037
    },
    "name": "statcan_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
geoNoOptional: case-insensitive substring filter on the GEO column, e.g. "Quebec" or "Ontario".
pageNoPage number, 1-based (default 1).
limitNoMax rows per page (default 500, max 1000).
coordinateNoOptional: restrict to one coordinate (as in statcan_cube_data), e.g. "1.1.1.1". Omit for the whole table.
product_idYesStatCan cube product ID, e.g. 42100037.
ref_date_toNoOptional: only rows with ref_date <= this value.
ref_date_fromNoOptional: only rows with ref_date >= this value (matches the table's own date grain, e.g. "2022" or "2022-01").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/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 still adds non-obvious behavior: a curated coverage set, refusal-with-message instead of empty result, weekly refresh from getFullTableDownloadCSV, data_as_of on every response, and the Open Licence redistribution terms. These are operational facts an agent cannot infer from 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?

Front-loaded with the core value proposition, then alternatives, then coverage and freshness caveats. Dense and nearly waste-free, though the coverage/refusal and licensing clauses make it longer than strictly necessary for tool selection.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter read tool with no output schema, the description covers scope, coverage limits, error behavior, refresh cadence and licensing. It leaves the row/response shape only hinted at ('member labels included'), so an agent still learns the return structure mainly by calling.

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 would be 3, but the description adds meaning beyond the schema: product_id doubles as a coverage probe, and coordinate is framed relative to statcan_cube_data. It does not add format detail for geo/ref_date matching, which the schema already covers.

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 concrete verb and resource ('Whole StatCan table ... in ONE call') plus the mechanism ('local Pipeworx copy') and the scope ('full history, every coordinate, member labels included'). It explicitly names the two sibling tools it replaces (statcan_cube_data, statcan_csv_url), so an agent can discriminate without opening schemas.

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 explicit routing rules with quoted example questions: use over statcan_cube_data when the question spans more than one coordinate, and over statcan_csv_url when you need data rather than a download URL. It also states the coverage-check path ('call with just product_id') and the negative case (uncached ids refuse).

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.