Skip to main content
Glama
Aryan-Jhaveri

Statistics Canada MCP Server

get_bulk_vector_data_by_range

Retrieve bulk Statistics Canada data for multiple vector IDs filtered by release date range, enabling queries like 'all updates released between specific dates'.

Instructions

Fetches bulk data for multiple vectors filtered by release date range (YYYY-MM-DDTHH:MM), NOT by reference period. Use this when you want data released within a specific date/time window (e.g., "all updates released yesterday").

*** IMPORTANT: release date vs reference period ***

  • Use THIS tool when you want: "data released between date A and date B"

  • Use get_sdmx_vector_data (startPeriod/endPeriod) when you want: "data for the time period YYYY to YYYY" get_sdmx_vector_data is more reliable and filters by reference period, not release date.

*** LARGE RESPONSE WARNING *** This tool can return hundreds of flattened data points. If the response exceeds context limits, narrow the request: use fewer vectorIds, or use offset/limit pagination to page through results in smaller chunks.

Response is pre-flattened: each element is one data point with vectorId, productId, coordinate, and all value fields injected at the top level.

Disables SSL Verification. Corresponds to: POST /getBulkVectorDataByRange

Returns: List[Dict[str, Any]]: Flat list of data point dicts, each tagged with vectorId, productId, and coordinate. Raises: httpx.HTTPStatusError: If the API returns an error status code. ValueError: If the API response format is unexpected or no vectors return SUCCESS. Exception: For other network or unexpected errors.

IMPORTANT: In your final response to the user, you MUST cite the source of your data. For vector data, this means including the VectorId and Release Time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax rows to return. Default 50. Set higher to get more rows.
offsetNoNumber of rows to skip (for pagination). Default 0.
vectorIdsYesList of integer vector IDs (e.g. [42076, 41690973]).
endDataPointReleaseDateNo
startDataPointReleaseDateNo
Behavior5/5

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

With no annotations provided, the description carries full burden. It discloses that SSL verification is disabled, describes the response pre-flattened format, lists all raised exceptions (HTTPStatusError, ValueError, Exception), and mandates citing VectorId and Release Time in responses. This is thorough for a read-only data fetch tool.

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?

The description is relatively long but every section adds value: warnings about release-date confusion, large responses, SSL, return format, exceptions, and citation requirement. The use of headings and bullet points improves scannability, making the length justified.

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?

The description is fully self-contained for a complex tool: it explains the core distinction from siblings, the response structure, error conditions, pagination advice, and a mandatory citation rule. Since there is no output schema and no annotations, this description provides all necessary context for an agent to select and invoke the tool correctly.

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 description covers 60% of parameters (limit, offset, vectorIds). The description adds crucial semantic clarity for the two date parameters (start/endDataPointReleaseDate) by explaining they are release dates formatted as YYYY-MM-DDTHH:MM, and clarifies how limit/offset relate to pagination. This compensates well for the schema gap.

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 description clearly states the tool fetches bulk data for multiple vectors filtered by release date range, explicitly distinguishing it from get_sdmx_vector_data which filters by reference period. The verb 'fetches' is specific and the resource/scope is well-defined.

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?

The description provides explicit guidance on when to use this tool (data released within a date/time window) versus when to use get_sdmx_vector_data (reference period), and even notes that get_sdmx_vector_data is more reliable. It also warns about large responses and recommends narrowing with fewer vectorIds or using offset/limit pagination.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aryan-Jhaveri/mcp-statcan'

If you have feedback or need assistance with the MCP directory API, please join our Discord server