Skip to main content
Glama

CensusMapper Census Data

censusmapper.census.get_data
Read-onlyIdempotent

Fetch Canadian census values (Statistics Canada) for chosen regions and census vectors, aggregated at a geographic level (province, CMA, census division, subdivision, tract, dissemination area). Returns one row per geography with a column per vector plus population, dwellings and area. Source: Statistics Canada Census; quota 500 region ids/day.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelYesGeographic aggregation level of the returned rows: Regions (the listed regions themselves), PR, CMA, CD, CSD, CT, DA or DB
datasetYesCensus dataset id from censusmapper.list_datasets (e.g. "CA21", "CA16", "CA11")
regionsYesCensus regions to query, keyed by level with arrays of region ids (e.g. {"CMA":["35535"]} for Toronto, {"PR":["35"]} for Ontario)
vectorsYesCensus vector ids to return (e.g. ["v_CA21_1","v_CA21_6"] = population 2021, 2016)
max_rowsNoMaximum number of rows to return (1-1000, default 200)
geo_hierarchyNoInclude the parent geography hierarchy columns in each row (default false)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful context beyond that: a hard quota of 500 region ids/day and the row-per-geography output structure, which the agent cannot infer from the annotations.

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?

Three sentences, front-loaded with the fetch action and resource, then aggregation levels, then return shape and quota. Everything earns its place, though the return-column enumeration partially duplicates the existing output schema.

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?

With an output schema and full annotations present, the description need only carry source, quota and scoping context, which it does. It would be complete with a pointer to list_datasets for obtaining valid dataset ids and any note on region-id counting against the quota.

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 100%, so the schema already documents level, dataset, regions, vectors, max_rows and geo_hierarchy with formats and defaults. The description only restates regions/vectors/level at a high level and lists the extra population, dwellings and area columns, adding no syntax or constraint detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb (Fetch) and resource (Canadian census values from Statistics Canada) and enumerates the supported geographic aggregation levels, so an agent knows exactly what data comes back. It does not, however, name or contrast itself with its sibling censusmapper.census.list_datasets, which the schema references only indirectly via the dataset id example.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: you supply a dataset, level, regions and vectors. There is no explicit when-to-use or when-not guidance, no mention that dataset ids must first be obtained from censusmapper.census.list_datasets, and no routing away from neighbouring census/statcan tools.

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.