Skip to main content
Glama

Statistics Canada MCP Server

get_bulk_vector_data_by_range

Read-only

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

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond readOnlyHint and openWorldHint, the description discloses a large-response warning, pagination advice, pre-flattened response shape, SSL verification being disabled, exception behavior, and the POST endpoint mapping. These are substantive behavioral details an agent would not know from annotations alone.

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 front-loaded with the core purpose and the release-date-vs-reference-period distinction, then uses clear sections for warnings, response shape, and errors. It is somewhat long and repeats response information in both prose and a Returns block, but the length is justified by the tool's complexity.

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?

There is no output schema, but the description explains the return shape as a flat list of data-point dicts tagged with vectorId, productId, and coordinate. It also covers pagination, large responses, SSL behavior, and exceptions, leaving little ambiguity for correct invocation.

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 60%: vectorIds, limit, and offset are documented in the schema, while the start and end release-date parameters are not. The description compensates by explaining that these are release-date bounds in YYYY-MM-DDTHH:MM format and by contrasting them with reference periods, though it does not add further detail for limit/offset beyond the schema.

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 uses a specific verb and resource: fetches bulk data for multiple vectors, filtered by release date range. It explicitly distinguishes this from reference-period filtering and names the sibling tool get_sdmx_vector_data, so an agent can identify its role 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?

It gives explicit when-to-use guidance: use this for data released between date A and B, and use get_sdmx_vector_data for reference-period queries. It also states that get_sdmx_vector_data is more reliable for period filtering, which is a clear routing recommendation.

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.