Skip to main content
Glama

Statistics Canada MCP Server

get_series_info_from_vector

Read-only

Request series metadata (productId, coordinate, titles, frequency, etc.) by Vector ID. Use only when you start from a vectorId: get_series_info already returns this metadata for series it resolved. Disables SSL Verification. Corresponds to: POST /getSeriesInfoFromVector

Returns: Dict[str, Any]: A dictionary containing the series metadata object. Raises: httpx.HTTPStatusError: If the API returns an error status code. ValueError: If the API response format is unexpected or status is not 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 series info, this means including the VectorId, ProductId (pid), and Coordinate.

Input Schema

NameRequiredDescriptionDefault
vectorIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only and open-world semantics, but the description adds a non-obvious behavioral trait (SSL verification is disabled) plus declared error modes (HTTPStatusError, ValueError on non-SUCCESS status, generic network errors). It stops short of explaining what disabling SSL verification implies or whether the metadata is cached/fresh, but it goes well past the annotation baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and routing constraint are correctly front-loaded, but the text is padded with Python docstring artifacts (Returns/Raises blocks) and a response-formatting mandate that is not tool-selection information. Trimming to purpose, routing rule, and the SSL/error notes would lose nothing.

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 one-parameter read with no output schema, the description supplies the return shape (a dict of series metadata), the failure modes, and the routing rule, so an agent knows what it gets back and when to call it. The remaining gap is the untyped, unsourced vectorId, which matters given 0% schema coverage.

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 description coverage is 0%, so the description must carry the single parameter — it only says 'by Vector ID' and later repeats 'VectorId' in the citation instruction, never stating that it is an integer or where a valid ID comes from (e.g. another tool's output). It establishes the parameter's meaning but not its format or provenance.

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 specific verb and resource ('Request series metadata ... by Vector ID') and previews the payload fields (productId, coordinate, titles, frequency). It explicitly distinguishes itself from the sibling get_series_info, which already returns this metadata for resolved series, so an agent can route between them without opening either schema.

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 an explicit, narrow trigger ('Use only when you start from a vectorId') and names the alternative tool plus the condition under which that alternative is preferred. This is exactly the when-to-use / when-not-to-use / alternative structure that earns a top score.

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.