Skip to main content
Glama
Aryan-Jhaveri

Statistics Canada MCP Server

get_series_info

Resolve Statistics Canada product and coordinate pairs to series metadata (vector IDs, titles, frequency, UOM) in one batch. Find vector IDs before fetching data.

Instructions

Resolve one or more {productId, coordinate} pairs to series metadata (vectorId, titles, frequency, UOM, etc.) in a single API call.

Use this to find vectorIds before fetching data with get_sdmx_data or get_sdmx_vector_data. Pass one item or many — same tool either way. Coordinates are automatically padded to 10 dimensions. Corresponds to: POST /getSeriesInfoFromCubePidCoord (accepts array)

NOTE: Response fields like scalarFactorCode, frequencyCode, and memberUomCode use StatCan numeric codes. Call get_code_sets() to decode them (e.g. frequencyCode 6 = "Monthly", scalarFactorCode 0 = "Units").

Returns: List of series metadata dicts, paginated with _guidance if >50 results. Raises: httpx.HTTPStatusError: If the API returns an error status code. ValueError: If no items return SUCCESS. Exception: For other network or unexpected errors.

IMPORTANT: In your final response cite the ProductId and Coordinate for each series.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesList of {productId, coordinate} pairs to fetch series info for in a single batch call.
limitNoMax results to return. Default 50.
offsetNoNumber of results to skip (for pagination). Default 0.
Behavior5/5

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

With no annotations, the description carries the full burden, and it delivers: it discloses batch behavior (one or many), automatic coordinate padding, pagination via _guidance, numeric code decoding requirements, and specific exception types. This goes beyond basic expectations and gives the agent a reliable mental model of the tool's behavior.

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 well-organized with sections for purpose, usage, notes, returns, raises, and an important reminder. It is slightly verbose for an agent-facing description, but every section adds meaningful value and no sentences are purely filler, so it earns a 4 rather than a 5.

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?

Despite having no output schema, the description fully explains what the tool returns (list of series metadata dicts, paginated with _guidance) and explicitly lists all error types with conditions. This makes the tool self-contained for an agent to invoke and interpret results correctly, especially with the important note about citing ProductId and Coordinate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with item and coordinate descriptions already stating the batch and padding behavior. The description repeats 'Coordinates are automatically padded' and 'Pass one item or many', but adds no new parameter-level semantics beyond what the schema already provides, so the baseline score of 3 is appropriate.

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 ('Resolve') and clearly defines the resource as '{productId, coordinate} pairs' mapped to 'series metadata' including vectorId, titles, frequency, and UOM. It explicitly states the primary use case ('find vectorIds before fetching data'), effectively distinguishing it from sibling tools like get_series_info_from_vector.

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 provides clear context: 'Use this to find vectorIds before fetching data with get_sdmx_data or get_sdmx_vector_data.' This tells the agent when to use the tool, but it does not explicitly mention when not to use it or suggest alternative tools for exclusion scenarios, so it falls short of a full 5.

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