Skip to main content
Glama

Statistics Canada MCP Server

search_cubes_by_title

Read-only

Searches for data cubes/tables where the English or French title contains the provided search term (case-insensitive).

Multiple keywords use AND logic (e.g., "tobacco smoking age" finds cubes containing ALL three words). Results are capped at max_results (default 25).

Returns {"data": [...], "total_matches": N, "showing": M}. Each result has productId, cubeTitleEn, cubeStartDate, cubeEndDate, frequencyCode, releaseTime and archived (true = discontinued table). Current tables are listed first. Use get_cube_metadata(productId) for dimensions and notes.

IMPORTANT: In your final response to the user, you MUST cite the source of your data. For cubes, this means including the ProductId (pid) and the Title.

Raises: httpx.HTTPStatusError: If the underlying API call fails. Exception: For other network or unexpected errors during the fetch.

Input Schema

NameRequiredDescriptionDefault
max_resultsNoMax matching cubes to return. Default 25.
search_termYesText to search for in cube titles. Multiple keywords use AND logic.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Although annotations already declare readOnlyHint and openWorldHint, the description adds substantial behavior: the return shape (data/total_matches/showing), result fields, archived meaning, ordering of current tables first, and error conditions. It also specifies the citation requirement for final responses.

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 core purpose and search behavior are front-loaded, followed by return details and next-step guidance. The citation block and exception list are somewhat verbose for a tool definition, though still operationally relevant.

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, so the description appropriately supplies the return structure and key fields. With full parameter coverage and disclosed error behavior, an agent has enough information to invoke the tool and interpret its results.

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%, so search_term and max_results are already fully documented in the schema. The description restates AND keyword behavior and the default cap but adds no meaningful new parameter semantics beyond the schema baseline.

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 states a specific verb and resource: searches data cubes/tables by English or French title. It clarifies case-insensitive substring matching and differentiates itself from get_cube_metadata by directing that tool only for dimensions and notes.

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 explains search semantics, AND logic across keywords, and the max_results cap, and it points to get_cube_metadata for follow-up metadata. However, it does not explicitly compare this tool with get_all_cubes_list or state when browsing all cubes is preferable.

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.