Tools
Every tool the server exposes
215 tools in 44 modules, read from the server's code when this page was built. Search ranks them the way search_tools does. Open a tool for its parameters, its keywords and a call you can adapt.
Always visible to the agent
plan_query- Turns a question into an ordered plan across agencies, with caveats on combining them.
search_tools- Ranks the other 214 tools against a plain-language query and returns the top 5.
call_tool- Runs a tool that search_tools found, by name, with its arguments.
Federal and national
Statistics Canada
statcan_census_profile_ statcan_census_profile_2016_ statcan_census_profile_archive_ statcan_census_tables_ statcan_daily_ statcan_delta_ statcan_geo_ statcan_indicators_ statcan_pumf_ rdaas_ statcan_reference_ statcan_sdg_ sdmx_ statcan_surveys_ wds_
Statistics Canada: the Web Data Service (WDS) for table/cube discovery, metadata and time-series data; the SDMX REST API for filtered, server-side-sliced series queries…
Full description
Statistics Canada: the Web Data Service (WDS) for table/cube discovery, metadata and time-series data; the SDMX REST API for filtered, server-side-sliced series queries; Reference Data as a Service (RDaaS) for classifications, codesets, concordances, indices and exclusions (e.g. NAICS, the Standard Geographical Classification); and the 2021 Census Profile SDMX API (tools prefixed statcan_census_profile_) -- a separate host and dataflow structure from the WDS/SDMX table service above, covering demographic, dwelling, income, and other census characteristics by geography (province, census division/subdivision, census tract, dissemination area, forward sortation area, health/economic region, federal electoral district, population centre) -- search a geography or characteristic by name, then fetch values for any combination, including each characteristic's parent_code where the profile table itself nests one characteristic under another (e.g. age-group breakdowns). All tools accept lang: en|fr; the Census Profile API selects language via an Accept-Language header rather than a query parameter, handled internally. Earlier censuses (2001, 2006, 2011, 2016) have no equivalent live query API -- tools prefixed statcan_census_profile_archive_ resolve their official bulk CSV/TAB download links instead (1996 has no equivalent bulk-download page under this URL scheme and is not covered). The Daily's official Atom feeds (tools prefixed statcan_daily_): statcan_daily_get_releases returns StatCan's official release bulletin (new/updated tables, survey results, analytical products) for the last 100 days, either across all subjects or filtered to one of 30 (e.g. housing, labour, prices_and_price_indexes) -- The Daily's own web pages are plain server-rendered HTML with no JSON API, so this goes through StatCan's documented Atom feed family instead. statcan_daily_search_archive covers the full release history back to 2012-03-14 instead of the Atom feeds' 100-day window, via the JSON file backing the release-schedule calendar's client-side rendering (18,222 entries confirmed live) -- filter by title/reference-period keyword and/or a date range. StatCan's "Reference resources" catalogue (tools prefixed statcan_reference_): statcan_reference_search_documents searches 2,031 definitions, data-source, and methodology documents -- distinct from actual data and from The Daily -- each carrying a catalogue number, category, description, and release date. Its search page silently ignores the keyword parameter (returning every document unfiltered) unless the session already visited the unparameterized base page first, confirmed live; handled internally with a one-time per-language warm-up request. The same tool family also covers StatCan's Analysis catalogue (statcan_reference_search_analysis, 10,841+ analytical articles, "Stats in brief", journals and periodicals) -- an identical Drupal search engine, path, and quirks, just a different catalogue. The same tool family also covers StatCan's Data catalogue (statcan_reference_search_data, 13,342+ items) -- the same Drupal search engine again, and the only place with any discovery path at all for Public Use Microdata Files (PUMFs; e.g. catalogue number 71M0001X for the Labour Force Survey, 98M0001X for the Census) and other bulk data products WDS/SDMX cannot see. Most other Data-catalogue results are ordinary table PIDs also reachable via WDS/SDMX, so prefer those tools for routine table search. Confirmed live: a PUMF's catalogue-number page links one hop further to a bespoke, per-product static page (not this Drupal engine, so not parsed generically) listing the actual bulk download -- confirmed for 98M0001X, a direct, unauthenticated ~173 MB ZIP with no login or account required. The 2016 Census Profile Web Data Service (tools prefixed statcan_census_profile_2016_): a genuinely separate, live JSON REST API (not SDMX) for 2016 census data -- distinct from statcan_census_profile_archive_* (2016 bulk downloads only). statcan_census_profile_2016_list_geographies finds a geography's DGUID; statcan_census_profile_2016_get_data fetches its full profile, optionally scoped to one of 14 topics, with separate total/male/female values and suppression symbols. StatCan's Delta File (tools prefixed statcan_delta_): statcan_delta_get_file_link resolves the daily bulk-update ZIP for one date (all table/vector data and metadata StatCan released that business day) and confirms it exists -- files only exist for business days with a release. StatCan's official Indicators feeds (tools prefixed statcan_indicators_): statcan_indicators_get_indicators returns current named-indicator values (population, CPI, GDP, trade, unemployment, etc., 2,362 confirmed live in the "all" dataset) with growth rates and a link back to the releasing Daily article -- the same feeds that power My StatCan and StatCan's own home page. StatCan's survey directory and IMDB metadata (tools prefixed statcan_surveys_): statcan_surveys_search_surveys searches the A-Z directory of ~899 surveys and statistical programs (active and inactive) to find a survey's numeric ID; statcan_surveys_get_survey_metadata fetches that survey's actual "Definitions, data sources and methods" content from IMDB (Integrated Metadata Base, a separate, older system from the Reference/Analysis catalogues) -- status, frequency, description, and subjects, with a detail_url to the full methodology sections (target population, sampling, data sources, data accuracy) rather than flattening that lengthy prose into fields. An unknown survey ID redirects through StatCan's own dedicated error page, which itself answers HTTP 500 due to a broken redirect chain on their end -- handled internally as a normal not-found result. StatCan's census-geography ArcGIS REST service (tools prefixed statcan_geo_, geo.statcan.gc.ca -- yet another host, and the only genuinely queryable geospatial API in this module, distinct from static bulk boundary-file downloads): statcan_geo_list_services finds what boundary products exist for a year (a census year like 2021 publishes a full suite covering every geography level; an intercensal year only CSD-level updates and the road network file -- genuinely different per year, discovered live rather than hardcoded); statcan_geo_get_layer_detail inspects one layer's field schema; statcan_geo_query_layer filters features by attribute (e.g. finding a CSD's DGUID by name) and, on request, returns polygon boundaries reprojected from the service's native EPSG:3347 (Statistics Canada Lambert) to plain lat/lon. Confirmed live: every error (an unknown year/service/layer, a malformed filter) comes back as HTTP 200 with an embedded error object, not a non-2xx status, and about one in three to five otherwise-valid requests hits a genuine transient HTTP 500 from an unhealthy backend node -- both handled internally (the latter by the existing shared retry layer). StatCan's Sustainable Development Goals Data Hub (tools prefixed statcan_sdg_, hosted as two separate static "Open SDG" GitHub Pages sites, not a StatCan-run API): statcan_sdg_search_indicators searches the "canada" framework (86 indicators, Canada's own national reporting) or the "global" framework (251 indicators, Canada's reporting against the UN's own Global Indicator Framework) -- distinct, differently-numbered indicator sets with no WDS/SDMX cube/PID equivalent. statcan_sdg_get_indicator_metadata returns an indicator's goal/target, description, units, and data sources; statcan_sdg_get_indicator_data returns its observations, each with whatever disaggregation columns (e.g. geography) that specific indicator happens to publish. The two frameworks use genuinely different metadata field names for the same concepts (confirmed live) -- handled internally so callers see one consistent shape regardless of framework.
2021 Census Profile 3
statcan_census_profile_get_data Get 2021 Census Profile values for geographies and characteristics.
Use for retrieving actual census data (counts or rates) for one or more geographies (by DGUID, from statcan_census_profile_search_geography) crossed with one or more characteristics (by code, from statcan_census_profile_search_characteristic), for a given gender breakdown. Multiple geography_codes or characteristic_codes are combined (every geography x every characteristic). Returns each value alongside its data-quality flag and confidence interval when the upstream API supplies one -- do not drop a flagged or interval-bounded value silently.
- Keywords
- census, population, dwelling, income, age, demographics, statistics Canada, 2021 census, SDMX
- Mots-clés
- recensement, population, logement, revenu, âge, démographie, Statistique Canada, recensement de 2021
| Parameter | Type | Default |
|---|---|---|
level | "canada_provinces_territories" | "census_divisions" | "census_subdivisions" | "dissolved_census_subdivisions" | "census_metro_areas" | "census_tracts" | "dissemination_areas" | "aggregate_dissemination_areas" | "designated_places" | "economic_regions" | "federal_electoral_districts" | "forward_sortation_areas" | "health_regions" | "population_centres" | required |
geography_codes | list[str] | required |
characteristic_codes | list[str] | required |
gender | "total" | "men" | "women" | "total" |
statistic | "counts" | "rate" | "counts" |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_profile_get_data", "arguments": {"level": "…", "geography_codes": "…", "characteristic_codes": "…"}}statcan_census_profile_search_characteristic Search the 2021 Census Profile's 2,631 characteristics (variables) by name.
Use for finding a characteristic code (needed by statcan_census_profile_get_data) by keyword, e.g. "population", "median household income", "dwelling", "commute". An empty query returns every characteristic. Each match includes parent_code when the characteristic is a sub-item of a broader one in the profile table's own hierarchy (e.g. "0 to 4 years" is a child of "0 to 14 years", itself a child of "Total - Age groups of the population") -- use this to tell a summary row from its breakdown rows rather than treating all 2,631 characteristics as a flat list.
- Keywords
- census, characteristic, variable, population, income, dwelling, age, language, education, housing, commuting
- Mots-clés
- recensement, caractéristique, variable, population, revenu, logement, âge, langue, éducation, navettage
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
limit | int | 20 |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_profile_search_characteristic", "arguments": {}}statcan_census_profile_search_geography Search 2021 Census Profile geography names for one geography level.
Use for finding a geography's DGUID code (needed by statcan_census_profile_get_data) by place name substring, at a chosen level (province, census division, census subdivision/ municipality, census metro area, census tract, dissemination area, forward sortation area, health region, economic region, federal electoral district, population centre, designated place). An empty query returns every geography at that level.
- Keywords
- census, geography, DGUID, place name, municipality, province, census subdivision, census tract, forward sortation area, FSA
- Mots-clés
- recensement, géographie, DGUID, nom de lieu, municipalité, province, subdivision de recensement, secteur de recensement, région de tri d'acheminement
| Parameter | Type | Default |
|---|---|---|
level | "canada_provinces_territories" | "census_divisions" | "census_subdivisions" | "dissolved_census_subdivisions" | "census_metro_areas" | "census_tracts" | "dissemination_areas" | "aggregate_dissemination_areas" | "designated_places" | "economic_regions" | "federal_electoral_districts" | "forward_sortation_areas" | "health_regions" | "population_centres" | required |
query | str | "" |
limit | int | 20 |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_profile_search_geography", "arguments": {"level": "…"}}2016 Census Profile 2
statcan_census_profile_2016_get_data Get 2016 Census Profile data for one geography (by DGUID).
Use for retrieving 2016 census values (counts or rates) for a geography found via statcan_census_profile_2016_list_geographies, optionally scoped to one topic (population, income, housing, labour, education, language, mobility, immigration and citizenship, ethnic origin, visible minority, Aboriginal peoples, journey to work, language of work, families/households/marital status). Values include separate total/male/female breakdowns and any suppression/quality symbol alongside the numeric value -- do not drop a flagged value silently. Set include_notes=True for the full explanatory footnote text. This is distinct from statcan_census_profile_* (2021) and covers only the 2016 census.
- Keywords
- census 2016, population, dwelling, income, age, demographics, statistics Canada, census profile
- Mots-clés
- recensement 2016, population, logement, revenu, âge, démographie, Statistique Canada, profil du recensement
| Parameter | Type | Default |
|---|---|---|
dguid | str | required |
topic | "all_topics" | "aboriginal_peoples" | "education" | "ethnic_origin" | "families_households_and_marital_status" | "housing" | "immigration_and_citizenship" | "income" | "journey_to_work" | "labour" | "language" | "language_of_work" | "mobility" | "population" | "visible_minority" | "all_topics" |
statistic | "counts" | "rate" | "counts" |
include_notes | bool | false |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_profile_2016_get_data", "arguments": {"dguid": "…"}}statcan_census_profile_2016_list_geographies List 2016 Census geographies (with their DGUIDs) for one geography level.
Use for finding a geography's DGUID code (needed by statcan_census_profile_2016_get_data) for the 2016 census, at a chosen level (province, census division, census subdivision, census metro area, census tract, dissemination area, forward sortation area, health region, economic region, federal electoral district, population centre, designated place). Optionally filter to one province/territory. Each result also carries global non-response rates and a data-quality flag.
- Keywords
- census 2016, geography, DGUID, place name, municipality, census subdivision, CMA, geographic code
- Mots-clés
- recensement 2016, géographie, DGUID, nom de lieu, municipalité, subdivision de recensement, RMR, code géographique
| Parameter | Type | Default |
|---|---|---|
level | "canada_provinces_territories" | "census_divisions" | "census_subdivisions" | "census_metro_areas" | "census_tracts" | "dissemination_areas" | "designated_places" | "economic_regions" | "federal_electoral_districts" | "forward_sortation_areas" | "health_regions" | "population_centres" | required |
province_territory | "all" | "newfoundland_and_labrador" | "prince_edward_island" | "nova_scotia" | "new_brunswick" | "quebec" | "ontario" | "manitoba" | "saskatchewan" | "alberta" | "british_columbia" | "yukon" | "northwest_territories" | "nunavut" | "all" |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_profile_2016_list_geographies", "arguments": {"level": "…"}}Census Profile archive, 2001-2016 2
statcan_census_profile_archive_get_download_link Get the direct bulk-download URL for one archived census year/level/format.
Use for resolving the actual downloadable file (a compressed CSV or TAB archive covering every geography at that level, for all topics) for a pre-2021 census, given a level key from statcan_census_profile_archive_list_geography_levels. Files can be large (tens to hundreds of megabytes for fine-grained levels like dissemination areas). Only CSV and TAB formats are covered -- IVT (a proprietary Beyond 20/20 format) uses a different, separate resolver not implemented here. lang="fr" returns StatCan's French-language file for every year.
- Keywords
- census, archive, historical, download, CSV, TAB, comprehensive download file, census profile
- Mots-clés
- recensement, archive, historique, téléchargement, fichier de téléchargement global, profil du recensement, fichier en français, CSV
| Parameter | Type | Default |
|---|---|---|
year | 2001 | 2006 | 2011 | 2016 | required |
level | str | required |
file_format | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_profile_archive_get_download_link", "arguments": {"year": "…", "level": "…", "file_format": "…"}}statcan_census_profile_archive_list_geography_levels List geography levels and file formats available for an archived census year.
Use for discovering what level keys (needed by statcan_census_profile_archive_get_download_link) and file formats exist for one archived census (2001, 2006, 2011, or 2016) before the 2021 Census Profile (covered by statcan_census_profile_* instead). Coverage genuinely narrows going back in time: 2016 has 34 geography groupings, 2011 has 14, 2006 and 2001 each have 5. Level keys are the same in both languages, so lang does not change this list; pass it to the download-link tool for French files.
- Keywords
- census, archive, historical, 2001, 2006, 2011, 2016, bulk download, comprehensive download file
- Mots-clés
- recensement, archive, historique, téléchargement en bloc, fichier de téléchargement global, niveau géographique, format de fichier, profil du recensement
| Parameter | Type | Default |
|---|---|---|
year | 2001 | 2006 | 2011 | 2016 | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_profile_archive_list_geography_levels", "arguments": {"year": "…"}}Census data tables, 2006-2016 2
statcan_census_tables_get_downloads Get a census data table's download links: CSV, SDMX and Beyond 20/20 IVT.
Use for downloading a table found with statcan_census_tables_search (by pid). Checks which formats exist and their sizes. When only the IVT exists, returns an R snippet using mountainMath's canivt to read it. Some SDMX files are very large; check size_bytes first.
- Keywords
- census table download, CSV, SDMX, IVT, Beyond 20/20, canivt, full table, census
- Mots-clés
- téléchargement, tableau du recensement, CSV, SDMX, IVT, Beyond 20/20, tableau complet, recensement
| Parameter | Type | Default |
|---|---|---|
pid | str | required |
release | "2016" | "2011" | "2011_nhs" | "2006" | "2016" |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_tables_get_downloads", "arguments": {"pid": "…"}}statcan_census_tables_search Search the 2006, 2011 (Census and NHS) and 2016 census data tables.
Use for census cross-tabulations by topic and geography, e.g. "income household type" or "language dissemination areas", with the catalogue number and PID of each table. Every word must appear in the title. 2021 census tables are StatCan tables: use wds_search_cubes. StatCan retired the 2011 Census tabulations (the 2011 NHS ones remain); copies are on Borealis, see borealis_search_ivt. Titles are in English; lang is accepted for consistency.
- Keywords
- census data tables, cross-tabulation, 2016 census, 2011 National Household Survey, 2006 census, Beyond 20/20, topic-based tabulations, census
- Mots-clés
- tableaux de données du recensement, totalisations croisées, recensement de 2016, Enquête nationale auprès des ménages, recensement de 2006, Beyond 20/20, tableaux thématiques, recensement
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
release | "2016" | "2011" | "2011_nhs" | "2006" | "2016" |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_census_tables_search", "arguments": {}}The Daily 2
statcan_daily_get_releases Get recent releases from The Daily, StatCan's official release bulletin.
Use for finding what data StatCan has released recently -- new or updated tables, survey results, analytical products -- optionally filtered to one subject (e.g. "housing", "labour", "prices_and_price_indexes"). Covers the last 100 days. Each release has a title, a canonical URL (either a Daily article or a catalogue-number product page), a publication timestamp, and a plain-text summary. Use "all" for every subject in one call.
- Keywords
- The Daily, release bulletin, new data, recent releases, what's new, StatCan announcement, Statistics Canada, latest statistics
- Mots-clés
- Le Quotidien, bulletin de diffusion, nouvelles données, diffusions récentes, quoi de neuf, annonce de Statistique Canada, Statistique Canada, dernières statistiques
| Parameter | Type | Default |
|---|---|---|
subject | "all" | "agriculture_and_food" | "business_and_consumer_services_and_culture" | "business_performance_and_ownership" | "children_and_youth" | "construction" | "crime_and_justice" | "digital_economy_and_society" | "economic_accounts" | "education_training_and_learning" | "energy" | "environment" | "families_households_and_marital_status" | "government" | "health" | "housing" | "immigration_and_ethnocultural_diversity" | "income_pensions_spending_and_wealth" | "indigenous_peoples" | "international_trade" | "labour" | "languages" | "manufacturing" | "older_adults_and_population_aging" | "population_and_demography" | "prices_and_price_indexes" | "reference" | "retail_and_wholesale" | "science_and_technology" | "society_and_community" | "statistical_methods" | "transportation" | "travel_and_tourism" | "all" |
lang | "en" | "fr" | "en" |
limit | int | 20 |
call_tool {"name": "statcan_daily_get_releases", "arguments": {}}statcan_daily_search_archive Search The Daily's full release archive (2012-03-14 onward), not just the last 100 days.
Use for finding when StatCan first or last released something on a topic, or listing every historical release matching a keyword, going back to 2012 -- statcan_daily_get_releases only covers the last 100 days via the official Atom feeds. query matches against the release title and reference period (e.g. "second quarter 2020"); leave it empty to browse by date range alone. start_date and end_date are "YYYY-MM-DD" and filter to releases on or between those dates (inclusive); omit either to leave that side open. Results are returned most-recent-first.
- Keywords
- The Daily, historical, archive, past releases, release history, when was, Statistics Canada, release date
- Mots-clés
- Le Quotidien, historique, archive, diffusions passées, historique des diffusions, quand, Statistique Canada, date de diffusion
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
lang | "en" | "fr" | "en" |
start_date | str | null | null |
end_date | str | null | null |
limit | int | 20 |
call_tool {"name": "statcan_daily_search_archive", "arguments": {}}Delta files: daily bulk updates 1
statcan_delta_get_file_link Get the Delta File download link for one date, confirming it exists.
Use for bulk-downloading every table/vector data and metadata update StatCan released on one business day, as a single ZIP -- the preferred mechanism (per StatCan's own developer guidance) for large updates, rather than re-fetching individual tables one at a time. date is "YYYY-MM-DD". A Delta File only exists for business days that had a release (weekends and holidays will report exists=False); check exists before treating the url as downloadable. The ZIP carries both English and French metadata, so lang has no effect.
- Keywords
- StatCan, delta file, bulk update, daily update, all tables, full refresh, changed data, download
- Mots-clés
- Statistique Canada, fichier delta, mise à jour en bloc, mise à jour quotidienne, tous les tableaux, actualisation complète, données modifiées, téléchargement
| Parameter | Type | Default |
|---|---|---|
date | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_delta_get_file_link", "arguments": {"date": "…"}}Census geography 3
statcan_geo_get_layer_detail Get one geography layer's field schema, geometry type, and record cap.
Use for inspecting a layer's queryable fields (e.g. CSDUID, DGUID, CSDNAME, PRUID) and its maxRecordCount before calling statcan_geo_query_layer -- service is a name from statcan_geo_list_services (e.g. "Cartographic_boundary_files"), layer_id a small integer identifying one geography level within that service (e.g. layer 9 = CSD, layer 12 = DA for 2021's Cartographic boundary files -- layer numbering is not fixed across years/services and should be discovered, not assumed). The language comes from service itself, so lang has no effect here.
- Keywords
- statcan, geography, layer, schema, fields, arcgis, boundary file, geometry type
- Mots-clés
- statcan, géographie, couche, schéma, champs, arcgis, fichier de limites, type de géométrie
| Parameter | Type | Default |
|---|---|---|
year | str | required |
service | str | required |
layer_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_geo_get_layer_detail", "arguments": {"year": "…", "service": "…", "layer_id": "…"}}statcan_geo_list_services List StatCan's census-geography boundary services for one year.
Use for discovering what geography boundary products exist for a given year before drilling into a service's layers. A census year (e.g. "2021") publishes a full suite (Cartographic/Digital boundary files, Agricultural/Population ecumene boundary files, Road Network File, each in English and French) with every geography level; an intercensal year publishes only a smaller CSD-level update and the Road Network File -- this genuinely varies year to year and is discovered live, not hardcoded. Years 2019-2025 confirmed live; nothing older is served here (use statcan_census_profile_archive_* for older bulk boundary/data downloads instead). Only the lang edition of each product is listed: French services (e.g. "Fichiers_des_limites_cartographiques") carry French layer names and field aliases.
- Keywords
- statcan, geography, boundary files, geospatial, arcgis, census geography, cartographic, digital boundary file
- Mots-clés
- statcan, géographie, fichiers de limites, géospatial, arcgis, géographie du recensement, limites cartographiques, fichier numérique des limites
| Parameter | Type | Default |
|---|---|---|
year | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_geo_list_services", "arguments": {"year": "…"}}statcan_geo_query_layer Query one geography layer's features by attribute, optionally with geometry.
Use for finding a geography's DGUID/UID by name (e.g. where="CSDNAME='Toronto'"), or retrieving boundary polygons for mapping. where is a standard SQL-style predicate against the layer's own field names from statcan_geo_get_layer_detail (e.g. "PRUID='35' AND CSDNAME LIKE '%Toronto%'"); leave the default "1=1" to match every feature in the layer. Leave return_geometry false (the default) for a lightweight attribute-only query -- polygon boundaries can be large, and most lookups only need the UID/DGUID/name columns. When return_geometry is true, geometry is reprojected to out_sr (WGS84 lat/lon, EPSG:4326, by default -- the service's native spatial reference is EPSG:3347, Statistics Canada Lambert). Each layer enforces its own maxRecordCount as a hard per-request cap regardless of result_record_count (6000 confirmed for 2021's Cartographic boundary layers); check exceeded_transfer_limit on the result and page further with result_offset if more features remain. Confirmed live: this host intermittently returns HTTP 500 on an otherwise-valid request (roughly one in three to five calls, a load-balanced backend with some unhealthy nodes) -- already mitigated by this client's normal retry behavior, so a rare persisting failure is a genuine outage, not a malformed request. The language comes from service, so lang has no effect here.
- Keywords
- statcan, geography, query, boundary, dguid, csd, da, fsa, cma, arcgis, geospatial, polygon, geojson
- Mots-clés
- statcan, géographie, requête, limites, dguid, sdr, ad, rta, rmr, arcgis, géospatial, polygone, geojson
| Parameter | Type | Default |
|---|---|---|
year | str | required |
service | str | required |
layer_id | int | required |
where | str | "1=1" |
out_fields | str | "*" |
return_geometry | bool | false |
out_sr | int | 4326 |
result_offset | int | 0 |
result_record_count | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_geo_query_layer", "arguments": {"year": "…", "service": "…", "layer_id": "…"}}Indicators 1
statcan_indicators_get_indicators Get current StatCan indicators (population, CPI, GDP, trade, etc.) with growth rates.
Use for quick current-value lookups for named indicators (e.g. "population", "consumer price index", "GDP", "unemployment rate") -- the same feeds that power My StatCan, statcan.gc.ca's home page, and The Daily's own indicator widgets. dataset="economic" is a curated subset of major economic indicators; "homepage" is the subset shown on StatCan's own home page; "all" covers every tracked indicator (2,362 confirmed live). Each result carries its reference period, a growth-rate summary versus the prior period, and a link to the Daily article that released it. geo_code filters to one geography (0 = Canada, province/territory codes otherwise -- call with a wide query first to see which codes exist in this dataset).
- Keywords
- StatCan, indicator, current value, latest statistics, growth rate, population, CPI, GDP, unemployment
- Mots-clés
- Statistique Canada, indicateur, valeur actuelle, dernières statistiques, taux de croissance, population, IPC, PIB, taux de chômage, emploi, inflation, indice des prix à la consommation
| Parameter | Type | Default |
|---|---|---|
dataset | "all" | "economic" | "homepage" | "all" |
query | str | "" |
geo_code | int | null | null |
lang | "en" | "fr" | "en" |
limit | int | 20 |
call_tool {"name": "statcan_indicators_get_indicators", "arguments": {}}Public use microdata files (PUMF) 5
statcan_pumf_get_codebook Read a PUMF's variables, labels, value codes and weight variables.
Use for which variable measures something (query matches names, labels and value labels, e.g. "tenure", "smok"), what each code means, column positions for fixed-width files, and which weights to use (final and bootstrap/replicate). Reads only the codebook files inside the ZIP. url comes from statcan_pumf_list_files.
- Keywords
- codebook, data dictionary, variables, value labels, survey weights, bootstrap weights, record layout, PUMF
- Mots-clés
- dictionnaire de données, variables, étiquettes de valeurs, poids d'enquête, poids bootstrap, FMGD, disposition, Statistique Canada
| Parameter | Type | Default |
|---|---|---|
url | str | required |
query | str | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_pumf_get_codebook", "arguments": {"url": "…"}}statcan_pumf_list_files List a PUMF's free ZIP downloads (years, files and formats).
Use for the download links for one PUMF, e.g. 71M0001X (monthly LFS files by year) or 98M0001X (Census individuals and hierarchical files, 1991-2021). Next: statcan_pumf_get_codebook with a ZIP url.
- Keywords
- PUMF download, microdata file, ZIP, survey year, edition, catalogue number, Statistics Canada, year
- Mots-clés
- téléchargement FMGD, fichier de microdonnées, ZIP, année d'enquête, numéro de catalogue, édition, Statistique Canada, année
| Parameter | Type | Default |
|---|---|---|
catalogue_number | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_pumf_list_files", "arguments": {"catalogue_number": "…"}}statcan_pumf_list_zip List what is inside a PUMF ZIP without downloading it.
Use for seeing the data files, user guides and codebook files in a StatCan PUMF ZIP (read with HTTP range requests, a few KB), and their uncompressed sizes. File names are listed as stored in the ZIP, so lang has no effect.
- Keywords
- ZIP contents, PUMF files, user guide, record layout, codebook, data file size, data file, archive
- Mots-clés
- contenu du ZIP, fichiers FMGD, guide de l'utilisateur, dictionnaire de données, taille, disposition des enregistrements, fichier de données, archive ZIP
| Parameter | Type | Default |
|---|---|---|
url | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_pumf_list_zip", "arguments": {"url": "…"}}statcan_pumf_search Find Statistics Canada public use microdata files (PUMFs) by topic.
Use for which surveys publish respondent-level microdata on a topic (e.g. "health", "labour", "spending"), with catalogue numbers such as 71M0001X (Labour Force Survey) or 98M0001X (Census). Next: statcan_pumf_list_files for the downloads.
- Keywords
- PUMF, microdata, public use microdata file, survey microdata, respondent records, Labour Force Survey, CCHS, census
- Mots-clés
- FMGD, microdonnées, fichier de microdonnées à grande diffusion, données d'enquête, EPA, ESCC, recensement, Statistique Canada
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_pumf_search", "arguments": {}}statcan_pumf_tabulate Compute a weighted table from PUMF microdata (totals, shares or means).
Use for population estimates from survey microdata, e.g. labour force status by province from the LFS, or mean hourly earnings. rows are up to 3 codebook variables to group by; filters keep only the listed codes (e.g. {"PROV": ["48"]}); share gives percentages within each group of all but the last row variable. Uses the survey weight (default: the codebook's main weight) and returns unweighted counts, flagging small cells. Standard errors and CVs come from the survey's documented replicate weights where verified (2021 Census individuals). The first call downloads the file (may take a minute or two; retry if it times out).
- Keywords
- weighted estimate, tabulation, crosstab, microdata analysis, survey weight, population estimate, PUMF, LFS
- Mots-clés
- estimation pondérée, totalisation, tableau croisé, microdonnées, poids d'enquête, estimation de population, FMGD, Statistique Canada
| Parameter | Type | Default |
|---|---|---|
url | str | required |
rows | list[str] | required |
statistic | "total" | "share" | "mean" | "total" |
value_variable | str | null | null |
filters | dict[str, list[str]] | null | null |
weight | str | null | null |
data_file | str | null | null |
min_count | int | 30 |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_pumf_tabulate", "arguments": {"url": "…", "rows": "…"}}Classifications and concordances 12
rdaas_get_classification Get full detail for one StatCan classification: background, version, harmonization status, and its level structure.
Use for understanding a classification (e.g. NAICS) before drilling into its categories.
- Keywords
- statcan, classification, detail, naics, rdaas, levels, version, background
- Mots-clés
- statcan, classification, détail, scian, rdaas, niveaux, version, contexte
| Parameter | Type | Default |
|---|---|---|
classification_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_classification", "arguments": {"classification_id": "…"}}rdaas_get_classification_categories_detailed Get the detailed category tree for one classification.
Use for listing every code/category within a classification (e.g. all NAICS sectors and subsectors). Confirmed live: RDaaS itself returns no category data for the CURRENT released NAICS (2022.1.0) specifically -- retired NAICS versions and the NAICS Trade Variant return full data, so this is not a NAICS-wide gap. If you hit this empty case on current NAICS, use rdaas_get_concordance_maps on the "NAICS Canada 2017.3.0 to 2022.1.0" concordance instead -- its target_code/target_descriptor fields are the same current-NAICS codes and descriptions.
- Keywords
- statcan, classification, categories, codes, naics, rdaas, tree, detailed
- Mots-clés
- statcan, classification, catégories, codes, scian, rdaas, arborescence, détaillé
| Parameter | Type | Default |
|---|---|---|
classification_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_classification_categories_detailed", "arguments": {"classification_id": "…"}}rdaas_get_classification_exclusions Get documented exclusions (terms explicitly NOT covered) for one classification.
Use for checking whether a term is deliberately excluded from a classification rather than simply missing.
- Keywords
- statcan, exclusions, classification, rdaas, excluded, terms, naics, Statistics Canada
- Mots-clés
- statcan, exclusions, classification, rdaas, exclu, termes, scian, non couvert
| Parameter | Type | Default |
|---|---|---|
classification_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_classification_exclusions", "arguments": {"classification_id": "…"}}rdaas_get_classification_index_entry Get one specific index entry by its small integer index_id (not its @id URL — use the indexId field from rdaas_get_classification_indexes).
Use for retrieving a single term-to-code mapping already identified via rdaas_get_classification_indexes.
- Keywords
- statcan, index entry, classification, rdaas, term, code, Statistics Canada, NAICS
- Mots-clés
- statcan, entrée d'index, classification, rdaas, terme, code, correspondance, identifiant
| Parameter | Type | Default |
|---|---|---|
classification_id | str | required |
index_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_classification_index_entry", "arguments": {"classification_id": "…", "index_id": "…"}}rdaas_get_classification_indexes List all index entries (alternate terms mapped to a code) for one classification.
Use for finding which code a plain-language term maps to.
- Keywords
- statcan, index, classification, rdaas, terms, alternate names, naics, Statistics Canada
- Mots-clés
- statcan, index, classification, rdaas, termes, noms alternatifs, scian, correspondance de termes
| Parameter | Type | Default |
|---|---|---|
classification_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_classification_indexes", "arguments": {"classification_id": "…"}}rdaas_get_classification_search_filters Get the valid audience/status filter values for classification search.
Use for discovering what values audience/status accept before filtering a search.
- Keywords
- statcan, rdaas, filters, search, audience, status, classification, Statistics Canada
- Mots-clés
- statcan, rdaas, filtres, recherche, public cible, statut, classification, valeurs valides
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_classification_search_filters", "arguments": {}}rdaas_get_concordance Get detail for one concordance: its source and target classifications.
Use for confirming which two classification versions a concordance connects before requesting its code maps.
- Keywords
- statcan, concordance, detail, rdaas, source, target, classification, Statistics Canada
- Mots-clés
- statcan, concordance, détail, rdaas, source, cible, classification, connexion
| Parameter | Type | Default |
|---|---|---|
concordance_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_concordance", "arguments": {"concordance_id": "…"}}rdaas_get_concordance_maps Get the full code-to-code mapping table for one concordance.
Use for converting a code from one classification version to its equivalent(s) in another version.
- Keywords
- statcan, code map, concordance, rdaas, mapping, convert, naics, Statistics Canada
- Mots-clés
- statcan, correspondance de codes, concordance, rdaas, conversion, scian, table de conversion, codes
| Parameter | Type | Default |
|---|---|---|
concordance_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_concordance_maps", "arguments": {"concordance_id": "…"}}rdaas_get_concordance_search_filters Get the valid audience/status filter values for concordance search.
Use for discovering what values audience/status accept before filtering a concordance search.
- Keywords
- statcan, rdaas, filters, search, concordance, audience, status, Statistics Canada
- Mots-clés
- statcan, rdaas, filtres, recherche, concordance, public cible, statut, valeurs valides
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_concordance_search_filters", "arguments": {}}rdaas_get_term_exclusion Get one term-exclusion record by id.
Use for retrieving detail on a specific excluded term identified elsewhere.
- Keywords
- statcan, term exclusion, rdaas, excluded, definition, lookup, classification, reference data
- Mots-clés
- statcan, exclusion de terme, rdaas, terme exclu, définition, recherche, classification, données de référence
| Parameter | Type | Default |
|---|---|---|
term_exclusion_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_get_term_exclusion", "arguments": {"term_exclusion_id": "…"}}rdaas_search_classifications Search StatCan's classifications (e.g. NAICS, the Standard Geographical Classification, occupational classifications).
Use for finding the classification id for a topic before requesting its full detail, categories, or concordances.
- Keywords
- statcan, naics, classification, search, rdaas, standard, geographical, occupational, codes
- Mots-clés
- statcan, scian, classification, recherche, rdaas, norme, géographique, professionnelle, codes
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
start | int | 0 |
limit | int | 10 |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_search_classifications", "arguments": {}}rdaas_search_concordances Search StatCan's concordances: correspondence tables between two classification versions (e.g. NAICS 2012 to NAICS 2017).
Use for finding a concordance id before requesting its code maps.
- Keywords
- statcan, concordance, correspondence, rdaas, naics, version, mapping, Statistics Canada
- Mots-clés
- statcan, concordance, correspondance, rdaas, scian, version, conversion, recherche
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
start | int | 0 |
limit | int | 10 |
lang | "en" | "fr" | "en" |
call_tool {"name": "rdaas_search_concordances", "arguments": {}}Definitions, methods and analysis 3
statcan_reference_search_analysis Search StatCan's Analysis catalogue: analytical articles, journals and periodicals.
Use for finding analytical publications, "Stats in brief" (many of these are also Daily articles republished with a catalogue number), and journal/periodical series -- distinct from statcan_reference_search_documents (methodology/definitions catalogue), from actual data (WDS/SDMX/RDaaS), and from The Daily's release bulletin (statcan_daily_*). Covers 10,841+ documents. Each result carries a catalogue number (e.g. "46-28-0001"), a category (e.g. "Journals and periodicals"), a description, and a release date. An empty query returns the full unfiltered catalogue (paginate with page/count to browse it).
- Keywords
- StatCan, analysis, analytical article, stats in brief, journal, periodical, working paper, insights
- Mots-clés
- Statistique Canada, analyse, article analytique, coup d'œil sur, revue, périodique, document de travail, études
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
lang | "en" | "fr" | "en" |
count | int | 10 |
page | int | 0 |
call_tool {"name": "statcan_reference_search_analysis", "arguments": {}}statcan_reference_search_data Search StatCan's Data catalogue: tables plus PUMFs, geographic and other bulk files.
Use for finding a data product's catalogue number, especially one with no WDS/SDMX discovery path of its own -- most notably Public Use Microdata Files (PUMFs; category "Public use microdata", e.g. catalogue number 71M0001X for the Labour Force Survey PUMF, 98M0001X for the Census). Most other results here are ordinary table PIDs also reachable via statcan_wds_*/statcan_sdmx_*, so prefer those tools for routine table search -- use this one when the product itself (a PUMF, a boundary file, a bulk archive) is the target, not a table's time series. Covers 13,342+ items. For a PUMF, pass its catalogue_number to statcan_pumf_list_files for the download ZIPs. An empty query returns the full unfiltered catalogue (paginate with page/count to browse it).
- Keywords
- StatCan, PUMF, public use microdata file, geographic boundary file, bulk data, data product, Statistics Canada, download
- Mots-clés
- Statistique Canada, FMGD, fichier de microdonnées à grande diffusion, fichier de limites géographiques, données en bloc, produit de données, téléchargement, cartes géographiques
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
lang | "en" | "fr" | "en" |
count | int | 10 |
page | int | 0 |
call_tool {"name": "statcan_reference_search_data", "arguments": {}}statcan_reference_search_documents Search StatCan's Reference resources catalogue: definitions, data sources, and methods.
Use for finding methodology guides, technical reference documents, survey documentation, geographic file specifications, and other "Definitions, data sources and methods"-style publications -- distinct from actual data (WDS/SDMX/RDaaS) and from The Daily's release bulletin (statcan_daily_*). Covers 2,031 documents. Each result carries a catalogue number (e.g. "16-511-X"), a category (e.g. "Surveys and statistical programs – Documentation", "Geographic files and documentation"), a description, and a release date. An empty query returns the full unfiltered catalogue (paginate with page/count to browse it).
- Keywords
- StatCan, definitions, data sources and methods, DSDM, methodology, technical reference guide, survey documentation, catalogue number
- Mots-clés
- Statistique Canada, définitions, sources de données et méthodes, méthodologie, guide de référence technique, documentation d'enquête, numéro au catalogue, publications techniques
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
lang | "en" | "fr" | "en" |
count | int | 10 |
page | int | 0 |
call_tool {"name": "statcan_reference_search_documents", "arguments": {}}Sustainable Development Goals 3
statcan_sdg_get_indicator_data Get one SDG indicator's observations (year, value, and any disaggregations).
Use for retrieving an SDG indicator's actual time series. Each observation's disaggregations field carries whatever breakdown columns that specific indicator publishes (e.g. Geography, Pillar) -- these vary per indicator and are not fixed across the framework, confirmed live.
- Keywords
- statcan, SDG, indicator data, time series, sustainable development goals, observations, Statistics Canada, indicator values
- Mots-clés
- statcan, ODD, données d'indicateur, série chronologique, objectifs de développement durable, observations, Statistique Canada, valeurs de l'indicateur
| Parameter | Type | Default |
|---|---|---|
framework | "canada" | "global" | required |
code | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_sdg_get_indicator_data", "arguments": {"framework": "…", "code": "…"}}statcan_sdg_get_indicator_metadata Get one SDG indicator's goal/target, description, units, and data sources.
Use for understanding what an indicator (e.g. "12-1-1") actually measures before requesting its data with statcan_sdg_get_indicator_data. code comes from statcan_sdg_search_indicators; the same code can mean a different indicator in the "canada" vs. "global" framework, so pass the same framework used to find it.
- Keywords
- statcan, SDG, indicator metadata, goal, target, definition, source, sustainable development
- Mots-clés
- statcan, ODD, métadonnées d'indicateur, objectif, cible, définition, source, développement durable
| Parameter | Type | Default |
|---|---|---|
framework | "canada" | "global" | required |
code | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_sdg_get_indicator_metadata", "arguments": {"framework": "…", "code": "…"}}statcan_sdg_search_indicators Search StatCan's Sustainable Development Goals indicators by name.
Use for finding an indicator's code before requesting its metadata or data. framework selects which indicator set: "canada" (86 indicators, Canada's own national reporting framework) or "global" (251 indicators, Canada's reporting against the UN's own Global Indicator Framework) -- distinct, differently-numbered indicator sets on the same "Open SDG" platform, confirmed live; pick the one matching what the caller means by "SDG indicator X.Y.Z". Leave query empty to list every indicator in that framework. This data has no WDS/SDMX cube/PID equivalent -- it is not otherwise reachable through any other tool in this codebase.
- Keywords
- statcan, SDG, sustainable development goals, indicator, UN, 2030 agenda, goal, target
- Mots-clés
- statcan, ODD, objectifs de développement durable, indicateur, ONU, programme 2030, objectif, cible
| Parameter | Type | Default |
|---|---|---|
framework | "canada" | "global" | required |
query | str | "" |
lang | "en" | "fr" | "en" |
limit | int | 10 |
call_tool {"name": "statcan_sdg_search_indicators", "arguments": {"framework": "…"}}SDMX API: filtered series 4
sdmx_get_data Get filtered, server-side-sliced observations for a StatCan table.
Use for fetching only the dimension combination you need rather than the full table. key is a dot-separated string of member ids, one per non-time dimension, in dimension-position order (empty segment = wildcard; use sdmx_get_key_for_dimension instead of a wildcard on a >30-code dimension). last_n_observations cannot be combined with start_period/end_period — StatCan rejects that combination.
- Keywords
- statcan, sdmx, data, filtered, key, dimensions, query, observations, slice
- Mots-clés
- statcan, sdmx, données, filtré, clé, dimensions, requête, observations, découpage
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
key | str | required |
start_period | str | null | null |
end_period | str | null | null |
last_n_observations | int | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "sdmx_get_data", "arguments": {"product_id": "…", "key": "…"}}sdmx_get_key_for_dimension Build a complete OR key covering every leaf code of one dimension.
Use for querying a dimension with more than ~30 codes (e.g. detailed geography or occupation) — StatCan's SDMX API returns a sparse, unpredictable sample if that dimension is left wildcarded instead. Splice the returned or_key into the dot-separated key at this dimension's position before calling sdmx_get_data.
- Keywords
- statcan, sdmx, wildcard, or key, large dimension, leaf codes, sparse sample, geography, occupation
- Mots-clés
- statcan, sdmx, caractère générique, clé OR, grande dimension, codes terminaux, échantillon partiel, géographie, profession
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
dimension_position | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "sdmx_get_key_for_dimension", "arguments": {"product_id": "…", "dimension_position": "…"}}sdmx_get_structure Get the SDMX dimension structure for a StatCan table: each non-time dimension's codelist, with parent/child code relationships.
Use for understanding a table's dimensions before building an SDMX query key, or before calling sdmx_get_key_for_dimension on a large dimension.
- Keywords
- statcan, sdmx, structure, dimensions, codelist, dsd, keys, Statistics Canada
- Mots-clés
- statcan, sdmx, structure, dimensions, liste de codes, dsd, clés, classification
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "sdmx_get_structure", "arguments": {"product_id": "…"}}sdmx_get_vector_data Get filtered SDMX observations for a known vector ID.
Use for fetching one specific series via SDMX when you already have its vector ID (resolves the vector to a productId/coordinate internally, then builds the matching SDMX key).
- Keywords
- statcan, sdmx, vector, data, observations, series, query, Statistics Canada
- Mots-clés
- statcan, sdmx, vecteur, données, observations, série, requête, identifiant de vecteur
| Parameter | Type | Default |
|---|---|---|
vector_id | int | required |
start_period | str | null | null |
end_period | str | null | null |
last_n_observations | int | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "sdmx_get_vector_data", "arguments": {"vector_id": "…"}}Surveys and metadata 2
statcan_surveys_get_survey_metadata Get a survey's IMDB metadata: status, frequency, description, and subjects.
Use for the genuine "Definitions, data sources and methods" content for one specific survey or statistical program -- its active/inactive status, collection frequency, a plain-language description, and its subject classifications -- found via statcan_surveys_search_surveys. This comes from IMDB (Integrated Metadata Base), a separate, older system from the Reference/ Analysis catalogues; its full methodology sections (target population, sampling, data sources, data accuracy) are linked via detail_url rather than fully parsed here, since they are long prose sections better read directly than flattened into fields.
- Keywords
- StatCan, IMDB, survey metadata, methodology, target population, data quality, survey status, survey frequency
- Mots-clés
- Statistique Canada, BMDI, métadonnées d'enquête, méthodologie, population cible, statut de l'enquête, fréquence, description de l'enquête
| Parameter | Type | Default |
|---|---|---|
survey_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "statcan_surveys_get_survey_metadata", "arguments": {"survey_id": "…"}}statcan_surveys_search_surveys Search StatCan's A-Z directory of surveys and statistical programs (~899 confirmed live).
Use for finding a survey's numeric ID (needed by statcan_surveys_get_survey_metadata) by name -- covers both active and inactive/discontinued surveys and statistical programs. Distinct from statcan_reference_search_documents/search_analysis (documents about surveys) and from statcan_daily_* (release bulletin) -- this is the master list of the surveys/programs themselves. An empty query returns the full directory.
- Keywords
- StatCan, survey, statistical program, survey directory, survey ID, Statistics Canada, data source, survey list
- Mots-clés
- Statistique Canada, enquête, programme statistique, répertoire des enquêtes, numéro d'enquête, source de données, liste des enquêtes, enquêtes statistiques
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
lang | "en" | "fr" | "en" |
limit | int | 20 |
call_tool {"name": "statcan_surveys_search_surveys", "arguments": {}}Web Data Service: tables and vectors 16
wds_get_bulk_vector_data_by_range Get observations for multiple vectors released within a date range.
Use for bulk historical retrieval across several series at once, filtered by release date (not reference period). start_release_datetime/end_release_datetime must be full "YYYY-MM-DDTHH:MM" (e.g. "2024-01-01T08:30") — WDS rejects a bare date with HTTP 406.
- Keywords
- statcan, bulk, vectors, date range, release date, history, wds, Statistics Canada
- Mots-clés
- statcan, en masse, vecteurs, vecteurs multiples, plage de dates, date de diffusion, historique, wds
| Parameter | Type | Default |
|---|---|---|
vector_ids | list[int] | required |
start_release_datetime | str | required |
end_release_datetime | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_bulk_vector_data_by_range", "arguments": {"vector_ids": "…", "start_release_datetime": "…", "end_release_datetime": "…"}}wds_get_changed_cube_list List StatCan tables (cubes) that changed on a given date.
Use for detecting which tables were updated, e.g. after the daily 8:30am ET release.
- Keywords
- statcan, changed, updated, cube, table, release, today, wds
- Mots-clés
- statcan, modifié, mis à jour, cube, tableau, diffusion, aujourd'hui, wds
| Parameter | Type | Default |
|---|---|---|
date | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_changed_cube_list", "arguments": {}}wds_get_changed_series_data_from_cube_coord Get just the newly-changed data points for a table + coordinate.
Use for fetching only what changed for a specific series identified by productId/coordinate rather than vector ID.
- Keywords
- statcan, changed, coordinate, delta, updated data, wds, Statistics Canada, revisions
- Mots-clés
- statcan, modifié, coordonnée, écart, données mises à jour, changements, tableau, wds
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
coordinate | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_changed_series_data_from_cube_coord", "arguments": {"product_id": "…", "coordinate": "…"}}wds_get_changed_series_data_from_vector Get just the newly-changed data points for a vector.
Use for fetching only what changed rather than the full latest-N window, after wds_get_changed_series_list flags a vector.
- Keywords
- statcan, changed, vector, delta, updated data, wds, Statistics Canada, revisions
- Mots-clés
- statcan, modifié, vecteur, écart, données mises à jour, série, changements, wds
| Parameter | Type | Default |
|---|---|---|
vector_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_changed_series_data_from_vector", "arguments": {"vector_id": "…"}}wds_get_changed_series_list List StatCan series that changed (new release) today.
Use for detecting updated series for a scheduled refresh. WDS documents this method as always reflecting today's changes — it does not accept a date parameter (unlike wds_get_changed_cube_list).
- Keywords
- statcan, changed, updated, series, release, today, wds, refresh
- Mots-clés
- statcan, modifié, mis à jour, série, diffusion, aujourd'hui, wds, actualisation
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_changed_series_list", "arguments": {}}wds_get_code_sets Get StatCan's code-set descriptions: scalar factors, frequency, symbol, status, unit of measure, survey, subject, classification type, security level, and terminated codes.
Use for decoding any numeric code returned by another WDS tool, e.g. applying a scalarFactorCode multiplier to a raw value.
- Keywords
- statcan, code sets, decode, scalar factor, frequency, symbol, status, uom, wds, lookup
- Mots-clés
- statcan, ensembles de codes, décoder, facteur d'échelle, fréquence, symbole, statut, unité de mesure, wds, référence
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_code_sets", "arguments": {}}wds_get_cube_metadata Get full metadata for one StatCan table: dimensions, member trees, frequency, date range, and footnotes.
Use for understanding a table's structure before requesting data, finding the coordinate/member IDs needed for a data query.
- Keywords
- statcan, metadata, dimensions, members, productId, cube, structure, footnotes, wds
- Mots-clés
- statcan, métadonnées, dimensions, membres, productId, cube, structure, notes de bas de page, wds
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_cube_metadata", "arguments": {"product_id": "…"}}wds_get_data_by_reference_period_range Get observations for vectors within a reference-period range.
Use for retrieving a specific historical window (e.g. 2015-01-01 to 2020-12-01) rather than "latest N." start_ref_period/end_ref_period must be full "YYYY-MM-DD" — WDS rejects an abbreviated "YYYY-MM" with HTTP 406.
- Keywords
- statcan, reference period, range, history, vectors, wds, date range, Statistics Canada
- Mots-clés
- statcan, période de référence, plage, plage de dates, historique, vecteurs, données historiques, wds
| Parameter | Type | Default |
|---|---|---|
vector_ids | list[int] | required |
start_ref_period | str | required |
end_ref_period | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_data_by_reference_period_range", "arguments": {"vector_ids": "…", "start_ref_period": "…", "end_ref_period": "…"}}wds_get_data_from_cube_coord Get the latest N observations for a table + coordinate pair.
Use for fetching data when you have a productId/coordinate but not yet the vector ID.
- Keywords
- statcan, coordinate, observations, latest, data, wds, productId, Statistics Canada
- Mots-clés
- statcan, coordonnée, observations, dernières données, données, wds, productId, tableau
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
coordinate | str | required |
latest_n | int | 12 |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_data_from_cube_coord", "arguments": {"product_id": "…", "coordinate": "…"}}wds_get_data_from_vectors Get the latest N observations for one or more StatCan vectors.
Use for fetching recent values of one or more known time series. Note: scalarFactorCode in each observation is NOT pre-applied to value — see statcan.wds.apply_scalar_factor if a scaled figure is needed.
- Keywords
- statcan, vector, observations, latest, data, time series, wds, values
- Mots-clés
- statcan, vecteur, observations, dernières données, données, série chronologique, wds, valeurs
| Parameter | Type | Default |
|---|---|---|
vector_ids | list[int] | required |
latest_n | int | 12 |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_data_from_vectors", "arguments": {"vector_ids": "…"}}wds_get_full_table_download_csv Get the download URL for a full StatCan table as CSV.
Use for bulk/offline analysis of an entire table rather than individual series — hands back a URL, does not fetch the file.
- Keywords
- statcan, csv, download, full table, bulk, export, wds, Statistics Canada
- Mots-clés
- statcan, csv, téléchargement, tableau complet, en masse, exportation, wds, données complètes
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_full_table_download_csv", "arguments": {"product_id": "…"}}wds_get_full_table_download_sdmx Get the download URL for a full StatCan table as SDMX/XML.
Use for bulk retrieval in SDMX format rather than CSV — hands back a URL, does not fetch the file.
- Keywords
- statcan, sdmx, xml, download, full table, bulk, export, wds
- Mots-clés
- statcan, sdmx, xml, téléchargement, tableau complet, en masse, exportation, wds
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_full_table_download_sdmx", "arguments": {"product_id": "…"}}wds_get_series_info_from_cube_pid_coord Resolve a productId + coordinate to its stable vector ID.
Use for converting a table/dimension-position pair (from wds_get_cube_metadata) into a vector ID for later reuse.
- Keywords
- statcan, coordinate, vector, resolve, productId, series info, wds, Statistics Canada
- Mots-clés
- statcan, coordonnée, vecteur, résoudre, conversion, productId, information de série, identifiant, wds
| Parameter | Type | Default |
|---|---|---|
product_id | int | required |
coordinate | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_series_info_from_cube_pid_coord", "arguments": {"product_id": "…", "coordinate": "…"}}wds_get_series_info_from_vector Resolve a StatCan vector ID to its productId and coordinate.
Use for figuring out which table and dimension-position a known vector belongs to.
- Keywords
- statcan, vector, resolve, productId, coordinate, series info, wds, Statistics Canada
- Mots-clés
- statcan, vecteur, résoudre, conversion, productId, coordonnée, information de série, identifiant, wds
| Parameter | Type | Default |
|---|---|---|
vector_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_get_series_info_from_vector", "arguments": {"vector_id": "…"}}wds_list_all_cubes List every StatCan data table (cube) currently available via WDS.
Use for a full inventory scan, building a local index, checking total table count. Prefer wds_search_cubes for a topic search.
- Keywords
- statcan, list, inventory, all cubes, catalogue, wds, productId, full list, tables
- Mots-clés
- statcan, liste, inventaire, tous les cubes, catalogue, wds, productId, liste complète, tableaux
| Parameter | Type | Default |
|---|---|---|
lite | bool | true |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_list_all_cubes", "arguments": {}}wds_search_cubes Search Statistics Canada's ~8,000 data tables (cubes) by title keyword.
Use for finding a StatCan table's productId when you only know a topic, discovering which tables cover a subject before requesting metadata or data.
- Keywords
- statcan, statistics canada, table, cube, search, productId, discover, wds, catalogue, browse, labour force, unemployment rate, employment, GDP by industry, CPI, population estimates, retail trade, wages, trade, time series
- Mots-clés
- statcan, statistique canada, tableau, cube, recherche, productId, découverte, wds, catalogue, parcourir, population active, taux de chômage, emploi, PIB par industrie, IPC, estimations de population, commerce de détail, salaires, commerce, séries chronologiques
| Parameter | Type | Default |
|---|---|---|
query | str | required |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "wds_search_cubes", "arguments": {"query": "…"}}Federal and national
House of Commons, via OpenParliament.ca
parliament_
House of Commons data from OpenParliament.ca (unofficial, not a government site): bills and their status, recorded votes with party and individual ballots, current and former MPs, Hansard and committee speeches, and House committees with their meetings, witnesses and evidence.
parliament_get_bill Get one bill's status, sponsor, short title, text link and recorded votes.
Use for where a bill stands (e.g. second reading, royal assent), who sponsored it, whether it became law, and every House vote on it. session like '45-1', number like 'C-2'.
- Keywords
- bill status, reading, royal assent, sponsor, LEGISinfo, legislation, House vote, Parliament
- Mots-clés
- état du projet de loi, lecture, sanction royale, parrain, LEGISinfo, législation, vote, Parlement
| Parameter | Type | Default |
|---|---|---|
session | str | required |
number | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_get_bill", "arguments": {"session": "…", "number": "…"}}parliament_get_committee Get one House of Commons committee: sessions, acronyms, subcommittees, recent meetings.
Use for a committee's full name, its acronym in each session (e.g. FINA, ETHI) with the ourcommons.ca page, its subcommittees, and its 10 most recent meetings. committee is a slug from parliament_list_committees, e.g. 'finance' or 'public-accounts'. lang="fr" returns the French name and French noscommunes.ca pages.
- Keywords
- committee profile, committee acronym, subcommittee, committee meetings, standing committee, House of Commons, ourcommons, committee history
- Mots-clés
- profil du comité, sigle du comité, sous-comité, réunions du comité, comité permanent, Chambre des communes, historique du comité, travaux du comité
| Parameter | Type | Default |
|---|---|---|
committee | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_get_committee", "arguments": {"committee": "…"}}parliament_get_committee_meeting Get one committee meeting's witnesses, times, links and transcript (evidence).
Use for who testified before a committee (witness name, title and organization), what MPs and witnesses said, and links to the minutes, notice and webcast. committee slug, session like '45-1' and meeting number come from parliament_search_committee_meetings. Page through the transcript with offset; limit=0 returns witnesses only. Text is plain; lang="fr" returns the French transcript, witness titles and French minutes and notice pages (noscommunes.ca).
- Keywords
- committee testimony, witness, evidence, committee transcript, hearing, minutes, webcast, what was said in committee
- Mots-clés
- témoignages, témoin, liste des témoins, qui a témoigné, comparution, transcription de la réunion, procès-verbal, webdiffusion, délibérations du comité, audience
| Parameter | Type | Default |
|---|---|---|
committee | str | required |
session | str | required |
number | int | required |
limit | int | 50 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_get_committee_meeting", "arguments": {"committee": "…", "session": "…", "number": "…"}}parliament_get_politician Get an MP's contact details and party and riding history.
Use for an MP's email, phone, ourcommons.ca page and every term (party, riding, dates). slug like 'ziad-aboultaif'.
- Keywords
- MP profile, contact, email, riding history, party history, member of Parliament, term, MP
- Mots-clés
- profil du député, coordonnées, courriel, circonscription, historique, parti, mandat, député
| Parameter | Type | Default |
|---|---|---|
slug | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_get_politician", "arguments": {"slug": "…"}}parliament_get_vote Get one House of Commons vote with how each party voted.
Use for party positions on a vote and, with include_ballots, how every MP voted (MP slugs). session like '45-1', number is the vote number from parliament_search_votes.
- Keywords
- vote breakdown, party vote, ballot, how did MPs vote, division, House of Commons, dissent, recorded vote
- Mots-clés
- résultat du vote, vote des partis, vote des députés, appel nominal, Chambre des communes, dissidence, vote par appel nominal, Parlement
| Parameter | Type | Default |
|---|---|---|
session | str | required |
number | int | required |
include_ballots | bool | false |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_get_vote", "arguments": {"session": "…", "number": "…"}}parliament_list_committees List House of Commons standing and special committees in a session.
Use for which committees exist (e.g. Finance, Health, Public Accounts) and the slug the other committee tools take. session like '44-1' (default: the current session; data from 39-1, 2006); keyword filters on the English or French name, ignoring case and accents, e.g. "santé", "sante" or "ethics". lang="fr" returns French names. Subcommittees are listed by parliament_get_committee.
- Keywords
- committee, standing committee, special committee, House of Commons committee, parliamentary committee, FINA, Parliament, committee list
- Mots-clés
- comité, comité permanent, comité spécial, comités de la Chambre des communes, comité parlementaire, liste des comités, Parlement, commission parlementaire
| Parameter | Type | Default |
|---|---|---|
session | str | null | null |
keyword | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_list_committees", "arguments": {}}parliament_search_bills Search House of Commons and Senate bills in one parliamentary session.
Use for finding bills by a word in the English or French title or by number (e.g. "housing", "logement", "C-2"; case, accents and apostrophe style are ignored), bills sponsored by an MP (sponsor slug from parliament_search_politicians), private members' bills, or bills introduced since a date. session is like '45-1' (default: the current session). Newest first. Source is OpenParliament.ca (unofficial). Follow up with parliament_get_bill.
- Keywords
- bill, legislation, House of Commons, Parliament, LEGISinfo, private member's bill, government bill, Senate bill, act
- Mots-clés
- projet de loi, législation, Chambre des communes, Parlement, LEGISinfo, projet de loi émanant d'un député, loi, Sénat
| Parameter | Type | Default |
|---|---|---|
keyword | str | null | null |
session | str | null | null |
sponsor | str | null | null |
private_member | bool | null | null |
introduced_from | str | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_search_bills", "arguments": {}}parliament_search_committee_meetings List House of Commons committee meetings, newest first.
Use for a committee's meetings (committee slug), all committee meetings in a session or date range (YYYY-MM-DD), or only public or only in camera (private) meetings. Shows whether a transcript exists; upcoming meetings on notice appear with future dates. Read one with parliament_get_committee_meeting. Results carry no text, so lang has no effect.
- Keywords
- committee meeting, hearing, committee schedule, in camera, committee evidence, sitting, House of Commons committee, testimony
- Mots-clés
- réunion de comité, séance du comité, audience, à huis clos, témoignages, calendrier des comités, comité de la Chambre des communes, comparution
| Parameter | Type | Default |
|---|---|---|
committee | str | null | null |
session | str | null | null |
date_from | str | null | null |
date_to | str | null | null |
in_camera | bool | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_search_committee_meetings", "arguments": {}}parliament_search_hansard Full-text search of House of Commons debates and committee evidence.
Use for who said what about a topic in Parliament, e.g. "pharmacare" or an exact phrase in quotes ("housing crisis"), since 1994. Returns 15 hits per page with date, speaker (MP slug), party and excerpt, by relevance or date. Read a full sitting with parliament_search_speeches. Hits come from openparliament.ca's English-only search page, so lang has no effect.
- Keywords
- Hansard search, debate transcript, what did MPs say, parliamentary debate, committee testimony, quote, speech, mention
- Mots-clés
- recherche hansard, débats parlementaires, transcription, ce qu'ont dit les députés, témoignages en comité, citation, mention, discours
| Parameter | Type | Default |
|---|---|---|
query | str | required |
sort | "relevance" | "newest" | "oldest" | "relevance" |
page | int | 1 |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_search_hansard", "arguments": {"query": "…"}}parliament_search_politicians Find Members of Parliament by name, province (e.g. 'AB') or party.
Use for current MPs, their party and riding, and the slug other parliament_ tools take. include_former adds past MPs (name only). Party and riding names come back in English, so lang has no effect.
- Keywords
- MP, member of Parliament, riding, constituency, House of Commons, party, caucus, politician
- Mots-clés
- député, députée, circonscription, Chambre des communes, parti, caucus, élu, parlementaire
| Parameter | Type | Default |
|---|---|---|
name | str | null | null |
province | str | null | null |
party | str | null | null |
include_former | bool | false |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_search_politicians", "arguments": {}}parliament_search_speeches Read Hansard and committee speeches by MP, sitting day or date range.
Use for what an MP said in the House or in committee (politician slug), the full debate of one sitting (debate_date, YYYY-MM-DD), or speeches between dates. Text is plain, in English or French.
- Keywords
- Hansard, debate, speech, question period, committee evidence, transcript, House of Commons, said
- Mots-clés
- hansard, débats, intervention, période des questions, témoignages en comité, transcription, Chambre des communes, discours
| Parameter | Type | Default |
|---|---|---|
politician | str | null | null |
debate_date | str | null | null |
date_from | str | null | null |
date_to | str | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_search_speeches", "arguments": {}}parliament_search_votes List recorded (division) votes in the House of Commons, newest first.
Use for recent votes, votes in a session or date range (YYYY-MM-DD), votes on one bill (session and bill), and passed or failed motions, with yea/nay totals. Use parliament_get_vote for party and MP ballots.
- Keywords
- vote, division, recorded vote, House of Commons, motion, yeas, nays, Parliament, roll call
- Mots-clés
- vote, vote par appel nominal, Chambre des communes, motion, pour, contre, Parlement, scrutin
| Parameter | Type | Default |
|---|---|---|
session | str | null | null |
bill | str | null | null |
date_from | str | null | null |
date_to | str | null | null |
result | "Passed" | "Failed" | "Tie" | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "parliament_search_votes", "arguments": {}}Federal and national
Bank of Canada
boc_
Bank of Canada Valet API: exchange rates, key interest rates (policy rate, prime rate), CPI/inflation measures, commodity price indexes, and other statistical series and series groups.
Full description
Bank of Canada Valet API: exchange rates, key interest rates (policy rate, prime rate), CPI/inflation measures, commodity price indexes, and other statistical series and series groups. Single flat REST/JSON API, no sub-API split needed.
boc_get_group Get a Bank of Canada Valet group's description and member series.
Use for discovering all the series in a themed group before fetching their observations together, e.g. FX_RATES_DAILY (daily exchange rates for ~27 currencies) or CPI_MONTHLY (Total CPI plus core-inflation measures such as CPI-trim, CPI-median, CPI-common).
- Keywords
- bank of canada, boc, valet, group, detail, member series, cpi, exchange rates, commodity prices, metadata
- Mots-clés
- banque du canada, valet, groupe, détail, séries membres, IPC, taux de change, prix des produits de base, métadonnées
| Parameter | Type | Default |
|---|---|---|
name | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_get_group", "arguments": {"name": "…"}}boc_get_group_observations Get observations for every series in a Bank of Canada Valet group.
Use for fetching all series in a themed group at once, e.g. every daily exchange rate in FX_RATES_DAILY or the full CPI_MONTHLY family (Total CPI, CPI-trim, CPI-median, CPI-common), without listing each series name individually. start_date/end_date and recent/recent_weeks/recent_months/ recent_years are mutually exclusive, same as boc_get_observations.
- Keywords
- bank of canada, boc, valet, group, observations, data, exchange rates, cpi, inflation, commodity prices, time series, history, recent, date range
- Mots-clés
- banque du canada, valet, groupe, observations, données, taux de change, IPC, inflation, prix des produits de base, série chronologique, historique, plage de dates
| Parameter | Type | Default |
|---|---|---|
group_name | str | required |
start_date | str | null | null |
end_date | str | null | null |
recent | int | null | null |
recent_weeks | int | null | null |
recent_months | int | null | null |
recent_years | int | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_get_group_observations", "arguments": {"group_name": "…"}}boc_get_observations Get observations for one or more Bank of Canada Valet series.
Use for fetching exchange rate history, interest rate history, CPI/inflation history, or commodity price history for one or more named series in a single call (series_names accepts multiple codes at once, e.g. ["FXUSDCAD", "FXEURCAD"]). start_date/end_date (each "YYYY-MM-DD") and recent/recent_weeks/recent_months/recent_years are mutually exclusive - Valet rejects mixing them. Series requested together are merged into one row per date only when they share the same publication frequency; mixing frequencies (e.g. a daily FX rate with monthly CPI) returns separate rows, each carrying only its own series - check each row's values keys rather than assuming every requested series appears in every row.
- Keywords
- bank of canada, boc, valet, observations, data, exchange rate, interest rate, policy rate, prime rate, cpi, inflation, commodity price, time series, history, recent, date range
- Mots-clés
- banque du canada, valet, observations, données, taux de change, taux d'intérêt, taux directeur, taux préférentiel, IPC, inflation, prix des matières premières, série chronologique, historique, plage de dates
| Parameter | Type | Default |
|---|---|---|
series_names | list[str] | required |
start_date | str | null | null |
end_date | str | null | null |
recent | int | null | null |
recent_weeks | int | null | null |
recent_months | int | null | null |
recent_years | int | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_get_observations", "arguments": {"series_names": "…"}}boc_get_series Get the label and description for one Bank of Canada Valet series.
Use for confirming what a series code actually measures before requesting its observations, e.g. FXUSDCAD (USD/CAD daily exchange rate), V39079 (target for the overnight rate / policy rate), V80691311 (prime rate), V41690973 (Total CPI).
- Keywords
- bank of canada, boc, valet, series, detail, metadata, description, label, lookup
- Mots-clés
- banque du canada, valet, série, détail, métadonnées, description, étiquette, recherche par code, consulter
| Parameter | Type | Default |
|---|---|---|
name | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_get_series", "arguments": {"name": "…"}}boc_list_groups List every Bank of Canada Valet series group (~2,500).
Use for a full inventory scan of themed series groupings. Prefer boc_search_groups for a topic search - this returns the entire catalogue.
- Keywords
- bank of canada, boc, valet, list, groups, inventory, catalogue, full list
- Mots-clés
- banque du canada, valet, liste, groupes, inventaire, catalogue, liste complète, parcourir
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_list_groups", "arguments": {}}boc_list_series List every Bank of Canada Valet statistical series (~16,000).
Use for a full inventory scan or building a local index. Prefer boc_search_series for a topic search - this returns the entire catalogue.
- Keywords
- bank of canada, boc, valet, list, inventory, all series, catalogue, full list
- Mots-clés
- banque du canada, valet, liste, inventaire, toutes les séries, catalogue, liste complète, parcourir
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_list_series", "arguments": {}}boc_search_groups Search Bank of Canada Valet's series groups by keyword.
Use for finding a themed group of related series (e.g. daily exchange rates, the CPI family including CPI-trim/median/common, weekly/monthly/annual commodity price indexes) when you want several related series at once rather than one series name.
- Keywords
- bank of canada, boc, valet, group, series group, search, find, cpi, exchange rates, commodity prices, discover
- Mots-clés
- banque du canada, valet, groupe, groupe de séries, recherche, trouver, IPC, taux de change, prix des produits de base, découvrir
| Parameter | Type | Default |
|---|---|---|
query | str | required |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_search_groups", "arguments": {"query": "…"}}boc_search_series Search Bank of Canada Valet's ~16,000 statistical series by keyword.
Use for finding a Valet series name when you only know a topic - exchange rates, interest rates (policy rate, prime rate), CPI/ inflation measures, commodity prices, and hundreds of other monetary/financial series.
- Keywords
- bank of canada, boc, valet, series, search, find, exchange rate, interest rate, policy rate, prime rate, cpi, inflation, commodity price, discover
- Mots-clés
- banque du canada, valet, série, recherche, trouver, taux de change, taux d'intérêt, taux directeur, taux préférentiel, IPC, inflation, prix des matières premières, découvrir
| Parameter | Type | Default |
|---|---|---|
query | str | required |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "boc_search_series", "arguments": {"query": "…"}}Federal and national
Innovation, Science and Economic Development Canada
ised_cipo_ ised_clean_growth_ ised_corporations_ ised_ip_horizons_ ised_spectrum_
Innovation, Science and Economic Development Canada (ISED), via four separate platforms.
Full description
Innovation, Science and Economic Development Canada (ISED), via four separate platforms. Corporations Canada's federal corporation lookup API (ised-isde.canada.ca/cc/lgcy/api/corporations, tools prefixed ised_corporations_): look up one federal corporation by its numeric corporation ID or 9-digit business number, returning current status, names, addresses, director limits, annual return filing history, and incorporation/by-law activities. The Spectrum Management System's licence site data (an Esri-hosted ArcGIS FeatureServer, tools prefixed ised_spectrum_): ~840,000 wireless spectrum licence site records (licensee, service type, transmit/receive frequencies, tower location and height, antenna specifications), refreshed monthly by ISED. The Canadian Trademarks Database (CIPO)'s search API (ised-isde.canada.ca/cipo/trademark-search/srch, tools prefixed ised_cipo_): search over 2 million Canadian trademark records (registered, pending, expunged, or abandoned) by owner name, mark text, goods/services text, application/registration number, Nice classification, or Vienna design code, returning mark name/type, status, Nice classes, and logo image URLs. CIPO's IP Horizons researcher datasets (tools prefixed ised_ip_horizons_): the quarterly bulk files of the full patent, industrial design and trademark registers, listed by table, patent-number range and release from their open.canada.ca packages, plus the patent and industrial design data dictionaries (bilingual variable names, types and descriptions), and patent lookup by number or search by owner/inventor name, IPC class, title and filing date over the patent main, party and IPC tables, downloaded on first use into a local Parquet cache (MAPLE_IP_HORIZONS_CACHE_DIR). The Trademarks Database endpoint is not documented publicly -- it backs the search UI's own XHR calls -- but is a plain unauthenticated JSON POST with no session requirement, confirmed live. It has no pagination beyond the requested max_return count. The Clean Growth Hub's federal clean technology investment figures for 2016-2024 (tools prefixed ised_clean_growth_), published only as a web page and PDF, read into numbers: headline totals, value by year and subsector, and share of agreements by province. ISED's bulk statistical datasets (Financial Performance Data, historical insolvency statistics, and a bulk CSV export of the same federal-corporations register) are ordinary CKAN datasets published by the 'ic' organization on open.canada.ca, already reachable via ckan_search_datasets(fq='organization:ic') on the federal CKAN module -- no dedicated module needed for those.
Trademarks (CIPO) 1
ised_cipo_search_trademarks Search the Canadian Trademarks Database (CIPO) by one field.
Use for finding registered/pending/expunged/abandoned Canadian trademarks by owner name, mark text, goods/services description, application or registration number, Nice classification, Vienna design-code, or CIPO status. Returns application number, mark name and type, current status, Nice classes, and any logo image URLs. An empty criteria is a deliberate match-all against the entire register (over 2 million records). Results are ranked by the upstream API and max_return only caps how many top-ranked matches come back in one call -- there is no way to page past that count. The search API answers in English only (status and mark-type labels), confirmed live 2026-09-23, so lang has no effect.
- Keywords
- CIPO, ISED, trademark, brand, mark, owner, applicant, Nice classification, Vienna code, trademark status, registered, abandoned, expunged
- Mots-clés
- OPIC, ISDE, recherche de marques de commerce, marque de commerce, marque, propriétaire, demandeur, classification de Nice, code de Vienne, statut de la marque, enregistrée, abandonnée, radiée
| Parameter | Type | Default |
|---|---|---|
search_field | "all" | "trademark" | "trademark_description" | "owner_name" | "old_owner_name" | "goods" | "services" | "application_number" | "original_application_number" | "registration_number" | "international_registration_number" | "nice_classification" | "cipo_status" | "disclaimer" | "vienna_code" | "vienna_description" | required |
criteria | str | "" |
max_return | int | 20 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_cipo_search_trademarks", "arguments": {"search_field": "…"}}Clean technology investment 1
ised_clean_growth_get_federal_investment Get federal clean technology investment 2016-2024 (Clean Technology Data Strategy) as data.
Use for how much the federal government has committed to cleantech projects: total ($29 billion), number of agreements, median agreement, for-profit share, non-repayable share, and totals by purpose (development, business support, adoption); agreement value by year; share of agreements by province or territory; value by cleantech subsector; plus the page's methodology notes. The Clean Growth Hub publishes these only as a web page and PDF; this tool reads them into numbers (dollars, not billions). For project-level records, query the grants and contributions DataStore table named in records_resource_id with ckan_datastore_search(portal='federal'). lang picks English or French labels and notes; the numbers are the same.
- Keywords
- clean technology, cleantech, federal investment, Clean Growth Hub, CTDS, green funding, grants and contributions, renewable energy, subsector, ISED, NRCan
- Mots-clés
- technologies propres, investissement fédéral, Carrefour de la croissance propre, stratégie de données, financement vert, subventions et contributions, énergie renouvelable, sous-secteur
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_clean_growth_get_federal_investment", "arguments": {}}Federal corporations 1
ised_corporations_get_corporation Look up one federal corporation by its Corporations Canada id or business number.
Use for getting a federal (not provincial) corporation's current status, legal/operating names, registered addresses, director limits, annual-return filing history, and incorporation/by-law activities, given its numeric corporation id or 9-digit business number (as found in another dataset or a filing). This is a single-record lookup, not a name search -- there is no documented endpoint to search by corporation name.
- Keywords
- Corporations Canada, ISED, ISDE, federal corporation, business number, BN, corporate registry, director, annual return, incorporation, by-laws, company status
- Mots-clés
- Corporations Canada, ISDE, société fédérale, numéro d'entreprise, NE, registre des sociétés, administrateur, rapport annuel, incorporation, règlements, statut de l'entreprise
| Parameter | Type | Default |
|---|---|---|
id_or_business_number | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_corporations_get_corporation", "arguments": {"id_or_business_number": "…"}}Patents and IP bulk data 4
ised_ip_horizons_get_dictionary Get the IP Horizons data dictionary for CIPO patent or industrial design bulk data.
Use for understanding the columns of the IP Horizons patent or industrial design tables before downloading them: each variable's English and French name, type and description, grouped by table (e.g. patent 'main', 'interested_party', 'ipc_classification'), plus coverage-period, delimiter and encoding notes. CIPO publishes no dictionary for the trademark files. Every field carries both languages, so lang has no effect.
- Keywords
- IP Horizons, CIPO, data dictionary, codebook, patent variables, industrial design, column definitions, field descriptions, metadata, schema
- Mots-clés
- Horizons PI, OPIC, dictionnaire de données, livre de codes, variables des brevets, dessin industriel, définitions des colonnes, description des champs, métadonnées
| Parameter | Type | Default |
|---|---|---|
ip_type | "patent" | "industrial_design" | required |
table | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_ip_horizons_get_dictionary", "arguments": {"ip_type": "…"}}ised_ip_horizons_get_patent Look up one Canadian patent by number in CIPO's IP Horizons data.
Use for a Canadian patent or application's title (EN/FR), filing and grant dates, status, PCT numbers, and its owners, inventors, applicants and agents with their city and country. Set include_classifications=True to add its IPC classes, which reads a much larger file. Data is as of the latest quarterly release, not live. The first call downloads the needed table (tens to hundreds of MB) into a local cache; if it times out, the download continues and a retry a few minutes later answers from the cache. lang has no effect: titles come in both languages.
- Keywords
- patent lookup, patent number, Canadian patent, CIPO, IP Horizons, patent owner, inventor, applicant, filing date, grant date, IPC class, intellectual property
- Mots-clés
- recherche de brevet, numéro de brevet, brevet canadien, OPIC, Horizons PI, titulaire du brevet, inventeur, demandeur, date de dépôt, date d'octroi, classe CIB, propriété intellectuelle
| Parameter | Type | Default |
|---|---|---|
patent_number | int | required |
include_classifications | bool | false |
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_ip_horizons_get_patent", "arguments": {"patent_number": "…"}}ised_ip_horizons_list_files List CIPO's IP Horizons bulk data files for patents, industrial designs or trademarks.
Use for finding the download links for Canada's complete patent, industrial design or trademark registers as researcher bulk data, by table (e.g. patent 'main', 'claim', 'abstract', 'disclosure', 'interested_party', 'priority_claim', 'ipc_classification') and patent-number range. Each file is a ZIP of one pipe-delimited UTF-8 CSV, refreshed quarterly; large tables are split by patent number. latest_only=True keeps each table's newest release folder only. Pair with ised_ip_horizons_get_dictionary for column meanings; for a live search of individual trademarks use ised_cipo_search_trademarks. Resource names on open.canada.ca are inconsistent, so table and range come from each download URL. Both languages share one file set, so lang has no effect.
- Keywords
- IP Horizons, CIPO, patent data, bulk download, industrial design, trademark data, intellectual property, inventor, applicant, IPC classification, patent claims, researcher dataset
- Mots-clés
- Horizons PI, OPIC, données sur les brevets, téléchargement en vrac, dessin industriel, marques de commerce, propriété intellectuelle, inventeur, demandeur, classification CIB, revendications
| Parameter | Type | Default |
|---|---|---|
ip_type | "patent" | "industrial_design" | "trademark" | required |
table | str | null | null |
latest_only | bool | true |
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_ip_horizons_list_files", "arguments": {"ip_type": "…"}}ised_ip_horizons_search_patents Search Canadian patents by owner/inventor name, IPC class, title or filing date.
Use for finding the Canadian patents of a company or inventor (party_name, a case-insensitive substring; party_type narrows to owner, inventor, applicant or agent), patents in a technology class (ipc like 'H01M', 'H01M 8' or 'H01M 8/04'), by title words (English or French), or by filing-date range. Filters combine with AND. Returns the newest matches by filing date and the total match count across all ~3.2 million records since 1869. Data is as of the latest quarterly release. Each filter type downloads its table once into a local cache on first use; the IPC table is ~740 MB and can take many minutes, so a first call may time out while the download continues in the background; retry later. Follow up with ised_ip_horizons_get_patent for parties and classes. lang has no effect.
- Keywords
- patent search, Canadian patents, patent owner, assignee, inventor, company patents, IPC classification, technology class, filing date, CIPO, IP Horizons, innovation
- Mots-clés
- recherche de brevets, brevets canadiens, titulaire, cessionnaire, inventeur, brevets d'une entreprise, classification CIB, domaine technologique, date de dépôt, OPIC, Horizons PI
| Parameter | Type | Default |
|---|---|---|
party_name | str | null | null |
party_type | "owner" | "inventor" | "applicant" | "agent" | null | null |
ipc | str | null | null |
title | str | null | null |
filed_from | str | null | null |
filed_to | str | null | null |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_ip_horizons_search_patents", "arguments": {}}Spectrum licences 1
ised_spectrum_query_licences Query wireless spectrum licence site records from ISED's Spectrum Management System.
Use for finding radio/wireless spectrum licence sites by licensee, service type, location, or frequency, out of ~840,000 records refreshed monthly. Filter with an ArcGIS SQL where clause on fields such as LICENSEE, SERVICE, PROV, TRANSMIT_FREQ, RECEIVE_FREQ, LATITUDE, LONGITUDE, STUCT_HT (structure/tower height), TX_PWR (transmit power).
- Keywords
- ISED, ISDE, spectrum, radio licence, wireless, telecommunications, frequency, licensee, transmitter, antenna, tower, Spectrum Management System, SMS
- Mots-clés
- ISDE, spectre, licence radio, sans fil, télécommunications, fréquence, titulaire de licence, émetteur, antenne, tour, Système de gestion du spectre, SGS
| Parameter | Type | Default |
|---|---|---|
where | str | null | null |
out_fields | str | "*" |
order_by | str | null | null |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ised_spectrum_query_licences", "arguments": {}}Federal and national
Canada Mortgage and Housing Corporation
cmhc_dt_ cmhc_
Canada Mortgage and Housing Corporation (CMHC), via two separate platforms.
Full description
Canada Mortgage and Housing Corporation (CMHC), via two separate platforms. The Housing Market Information Portal (HMIP, www03.cmhc-schl.gc.ca/hmip-pimh, tools prefixed cmhc_): rental market survey vacancy rates and rents, new housing construction (starts/completions), secondary rental market, seniors' rental housing, and population/household/core-housing-need indicators, for Canada and by province, as historical time series or a current cross-tabulation -- no hardcoded table catalogue, categories and breakdowns are discovered live and data is fetched through HMIP's own CSV export. The 'Data Tables' document catalogue (www.cmhc-schl.gc.ca, tools prefixed cmhc_dt_): official per-edition Excel table publications for Rental Market Survey, Household Characteristics, and related surveys, with direct download links resolved through the site's own resolver API for any historical geography/edition, not just the current one.
Data tables (Excel) 3
cmhc_dt_get_download_url Resolve one CMHC data table's official Excel download link for a geography/edition.
Use for getting the direct, official download URL for a specific published edition of a CMHC data table (e.g. October 2022 rather than the current default) - geography_id/edition_id come from cmhc_dt_get_table's geographies/editions lists; omit either to get the most recent edition / first geography option. Raises a clear error if the id is not one of that table's known options, rather than silently returning nothing.
- Keywords
- cmhc, housing, download link, excel file, data table, historical edition, geography, publication, direct link, xlsx
- Mots-clés
- schl, logement, lien de téléchargement, fichier excel, tableau de données, édition historique, géographie, publication, lien direct
| Parameter | Type | Default |
|---|---|---|
category | str | required |
slug | str | required |
geography_id | str | null | null |
edition_id | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cmhc_dt_get_download_url", "arguments": {"category": "…", "slug": "…"}}cmhc_dt_get_table Get one CMHC data table's description, geography/edition options, and default download link.
Use for confirming what a table covers and which geography_id/ edition_id values cmhc_dt_get_download_url will accept for it, before requesting a specific historical edition or geography. slug comes from cmhc_dt_list_tables.
- Keywords
- cmhc, housing, data table, detail, description, geography, edition, publication date, document type, metadata
- Mots-clés
- schl, logement, tableau de données, détail, description, géographie, édition, date de publication, type de document, métadonnées
| Parameter | Type | Default |
|---|---|---|
category | str | required |
slug | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "cmhc_dt_get_table", "arguments": {"category": "…", "slug": "…"}}cmhc_dt_list_tables List CMHC's officially-published data tables in a category.
Use for browsing what official Excel table publications CMHC has for a topic, before fetching one table's detail or download link. category must be one of "rental-market", "household- characteristics", or "canadian-housing-survey-data-tables" (the last currently returns no tables - its own tables live elsewhere and are not yet mapped). Read docs://cmhc/well-known-categories for a sample of well-known table slugs in the first two categories.
- Keywords
- cmhc, housing, data tables, publications, excel, download, rental market, household characteristics, canadian housing survey, catalogue, list
- Mots-clés
- schl, logement, tableaux de données, publications, excel, téléchargement, marché locatif, caractéristiques des ménages, enquête canadienne sur le logement, catalogue, liste
| Parameter | Type | Default |
|---|---|---|
category | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "cmhc_dt_list_tables", "arguments": {"category": "…"}}Housing Market Information Portal 4
cmhc_get_table_data Get CMHC housing data for a category as a table (time series or cross-tab).
Use for fetching actual CMHC Rental Market Survey vacancy rates/ rents, housing starts/completions, seniors' rental housing data, or any other category's numeric data - e.g. national historical rental vacancy rates by bedroom type, or current vacancy rates broken down by province. Pass row_field="TIMESERIES" for a historical time series (one row per period) or a province/centre-breakdown field from cmhc_get_table_options for a current cross-tabulation (one row per province/centre). Each returned cell carries CMHC's own reliability flag (a/b/c/d = Excellent/Very good/Good/Poor) alongside the value, value: 0 for a real, counted zero (flagged "-" by CMHC), or value: null with the raw marker in flag when data was suppressed ("**"/"n/a") or not applicable ("++") - see docs://cmhc/gotchas for the full legend. category_level_1/ category_level_2/column_field/row_field must come from cmhc_list_categories/cmhc_get_table_options first - an unrecognized combination raises a clear error rather than guessing. The result's available_filters lists extra narrowing dimensions this particular table supports beyond column_field/row_field (e.g. season: April/October, dwelling_type_desc_en: Row/Apartment for a Rental Market Survey table) - these genuinely change the returned values, not just a label; pass a subset as filters (e.g. {"dwelling_type_desc_en": "Row"}) on a follow-up call to narrow to just that slice. An unrecognized filter key/value raises a clear error rather than being silently ignored.
- Keywords
- cmhc, housing, hmip, rental market, vacancy rate, rent, average rent, housing starts, completions, time series, historical, data, table, province, bedroom type, reliability flag, filter, dwelling type, season
- Mots-clés
- schl, logement, pimh, marché locatif, taux d'inoccupation, loyer, loyer moyen, mises en chantier, achèvements, série chronologique, historique, données, tableau, province, type de chambre, indicateur de fiabilité, filtre, type de logement, saison
| Parameter | Type | Default |
|---|---|---|
category_level_1 | str | required |
category_level_2 | str | required |
column_field | str | required |
row_field | str | required |
geography_type | str | "Country" |
geography_id | str | "1" |
filters | dict[str, str] | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cmhc_get_table_data", "arguments": {"category_level_1": "…", "category_level_2": "…", "column_field": "…", "row_field": "…"}}cmhc_get_table_options Get the valid breakdown options for a CMHC category before requesting data.
Use for finding which column_field/row_field pairs cmhc_get_table_data will accept for a given category (e.g. "Bedroom Type" vs "Year of Construction" as the column breakdown, "Historical Time Periods" for a time series vs "Provinces" for a current cross-tabulation) - a category/geography this doesn't return an option for will not resolve in cmhc_get_table_data either.
- Keywords
- cmhc, housing, hmip, table options, column field, row field, breakdown, bedroom type, time series, historical, provinces, discover
- Mots-clés
- schl, logement, pimh, options de tableau, champ colonne, champ ligne, répartition, type de chambre, série chronologique, historique, provinces, découvrir
| Parameter | Type | Default |
|---|---|---|
category_level_1 | str | required |
category_level_2 | str | required |
geography_type | str | "Country" |
geography_id | str | "1" |
lang | "en" | "fr" | "en" |
call_tool {"name": "cmhc_get_table_options", "arguments": {"category_level_1": "…", "category_level_2": "…"}}cmhc_list_categories List CMHC housing-data categories available at a geography.
Use for discovering what CMHC covers before requesting data - new housing construction (starts/completions), primary and secondary rental market (vacancy rates, rents), seniors' rental housing, population/households/housing stock, and core housing need. Read docs://cmhc/well-known-categories first - it already lists the common categories with their exact spelling. geography_type/geography_id default to "Country"/"1" (Canada); pass a province id from cmhc_list_provinces for province-level categories instead. Category names are language-dependent strings (not fixed codes) - the values this returns for lang="fr" must be passed back with lang="fr" to other cmhc_ tools.
- Keywords
- cmhc, housing, hmip, category, discover, rental market, vacancy rate, rent, housing starts, completions, seniors housing, core housing need, mortgage, corporation
- Mots-clés
- schl, logement, pimh, catégorie, découvrir, marché locatif, taux d'inoccupation, loyer, mises en chantier, achèvements, logements pour personnes âgées, besoins impérieux, hypothèque, société
| Parameter | Type | Default |
|---|---|---|
geography_type | str | "Country" |
geography_id | str | "1" |
lang | "en" | "fr" | "en" |
call_tool {"name": "cmhc_list_categories", "arguments": {}}cmhc_list_provinces List Canadian provinces/territories with their CMHC HMIP geography id.
Use for getting a geography_id (with geography_type="Province") to pass to cmhc_list_categories/cmhc_get_table_options/ cmhc_get_table_data for province-level data instead of national Canada-wide data. CMA/city-level geography is not yet supported by this module - only Canada and provinces.
- Keywords
- cmhc, housing, hmip, province, territory, geography, geography id, list, canada
- Mots-clés
- schl, logement, pimh, province, territoire, géographie, identifiant géographique, liste, canada
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "cmhc_list_provinces", "arguments": {}}Federal and national
Canadian Dairy Commission
cdc_
Canadian Dairy Commission (cdc-ccl.ca), tools prefixed cdc_: special milk class component prices ($/kg butterfat, protein, other solids for classes 3(d), 4(a), 4(m), 5(a), 5(b), 5(c), monthly since 2002, from the CDC's yearly CSV files), the butter support price since 2010…
Full description
Canadian Dairy Commission (cdc-ccl.ca), tools prefixed cdc_: special milk class component prices ($/kg butterfat, protein, other solids for classes 3(d), 4(a), 4(m), 5(a), 5(b), 5(c), monthly since 2002, from the CDC's yearly CSV files), the butter support price since 2010, the national milk production target (total quota, kg butterfat, monthly since 2017), the Harmonized Milk Classification System, and the CDC market data file on AAFC's open-data server (farm milk production by province since 2016, milk class sales in litres, kg and dollars for the ten provinces and East/West regions since July 2020, farms shipping milk). cdc_list_datasets also lists the provincial milk marketing boards and national poultry and egg agencies checked on 2026-09-26: their data are PDFs (Dairy Farmers of Ontario, Les Producteurs de lait du Quebec, Alberta Milk, Chicken and Turkey Farmers of Canada), behind a captcha or broken TLS (BC Milk Marketing Board, Canadian Hatching Egg Producers), or limited by terms (Egg Farmers of Canada), with StatCan tables (wds_) and CKAN tariff-rate-quota lists as alternatives.
cdc_get_butter_support_prices Get the Canadian Dairy Commission's butter support price ($/kg) since 2010.
Use for the price at which the CDC buys and sells butter, set each year (usually effective February 1, sometimes mid-year such as May 2024 or September 2022) after its cost of production study and consultations. Each row keeps the published label ("2024 (May)", "2024 (mai)" with lang="fr") and an effective date. The CDC has not bought skim milk powder since 2017, so there is no powder support price. lang switches labels, notes and the linked page; values are identical in both languages.
- Keywords
- butter support price, support price, butter price, Canadian Dairy Commission, CDC, dairy policy, farm gate milk price, supply management
- Mots-clés
- prix de soutien du beurre, prix de soutien, prix du beurre, Commission canadienne du lait, CCL, politique laitière, prix du lait à la ferme, gestion de l'offre
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "cdc_get_butter_support_prices", "arguments": {}}cdc_get_component_prices Get CDC special milk class component prices ($/kg butterfat, protein, other solids), monthly.
Use for the price of milk components in classes 3(d) (restaurant pizza mozzarella), 4(a) (butter, powders), 4(m) (animal feed), and 5(a), 5(b), 5(c) (dairy ingredients for further processing and confectionery), from January 2002 to the latest announced month. year_from/year_to pick calendar years (default: the current year); milk_class filters one class ("5(a)", "5a", "3D"). Rows are sorted by month and class; a price the CDC does not set (0 or blank in its file) is None. For the butter support price use cdc_get_butter_support_prices; for class definitions, cdc_get_milk_classes. lang switches notes and the linked page.
- Keywords
- milk price, component pricing, special milk class, butterfat price, protein price, other solids, class 5, class 4(a), Canadian Dairy Commission, dairy ingredients, SMCPP
- Mots-clés
- prix du lait, prix des composants, classes spéciales, prix de la matière grasse, prix des protéines, autres solides, classe 5, classe 4(a), Commission canadienne du lait, ingrédients laitiers
| Parameter | Type | Default |
|---|---|---|
year_from | int | null | null |
year_to | int | null | null |
milk_class | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cdc_get_component_prices", "arguments": {}}cdc_get_milk_classes Get the Harmonized Milk Classification System: which products belong to each milk class.
Use for looking up what dairy products fall in classes 1 to 5 and their subclasses (1(a) fluid milk, 2(a) yogurt, 3(a)-3(d) cheeses, 4(a) butter and powders, 4(m) animal feed, 5(a)-5(c) ingredients for further processing), which provincial boards use to bill milk components. milk_class filters by class or prefix ("3", "3(c)", "4a"). lang="fr" returns the French product descriptions.
- Keywords
- milk class, harmonized milk classification, dairy product classes, class 1 fluid milk, cheese class, butter, yogurt, Canadian Dairy Commission
- Mots-clés
- classe de lait, classification harmonisée du lait, classes de produits laitiers, lait de consommation, crème, fromage, beurre, yogourt, Commission canadienne du lait
| Parameter | Type | Default |
|---|---|---|
milk_class | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cdc_get_milk_classes", "arguments": {}}cdc_get_national_quota Get Canada's national milk production target (total quota), monthly, in kg of butterfat.
Use for the monthly total quota the CDC sets for Canada under the Canadian Milk Supply Management Committee, from January 2017 (the CDC publishes earlier years only by email request). Default: the latest year. Rows give year, month, kilograms of butterfat, the figure exactly as published and, for 2017-2018, the change from a year earlier. Notes flag months the pages omit (December 2018) and figures that are not valid numbers (March 2023). For actual farm production by province use cdc_query_market_data(dataset= "production"). lang switches notes and the linked pages.
- Keywords
- national milk production target, total quota, milk quota, butterfat, dairy production, supply management, CMSMC, Canadian Dairy Commission
- Mots-clés
- cible nationale de production laitière, quota total, quota de lait, matière grasse, production laitière, gestion de l'offre, CCGAL, Commission canadienne du lait
| Parameter | Type | Default |
|---|---|---|
year_from | int | null | null |
year_to | int | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cdc_get_national_quota", "arguments": {}}cdc_list_datasets List the Canadian Dairy Commission datasets available here, and the marketing boards checked.
Use for seeing which dairy supply management data this server reaches (component prices, butter support price, national total quota, milk classes, production and milk class sales) and which tool returns each; and learning why provincial milk marketing boards (Dairy Farmers of Ontario, Les Producteurs de lait du Québec, Alberta Milk, BC Milk Marketing Board) and the national egg, chicken, turkey and hatching egg agencies have no tool (PDF only, captcha, or terms), with StatCan tables to use instead. No upstream call is made. lang="fr" returns French titles, notes and names (organizations without an official French name keep their own).
- Keywords
- Canadian Dairy Commission, CDC, dairy, supply management, marketing board, milk, quota, egg farmers, chicken farmers, turkey, catalogue
- Mots-clés
- Commission canadienne du lait, CCL, produits laitiers, gestion de l'offre, office de commercialisation, lait, quota, Producteurs de lait du Québec, producteurs d'œufs, producteurs de poulet, dindon, volaille, catalogue
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "cdc_list_datasets", "arguments": {}}cdc_query_market_data Query CDC market data: milk production by province, milk class sales, farms shipping milk.
Use for monthly farm milk production in litres by province (dataset="production", since January 2016); monthly milk sales by class and subclass for the ten provinces ("sales_p10") or the East and West pools ("sales_by_region", with region), since July 2020, as litres, kg and dollars of butterfat, protein and other solids (segment, e.g. "butterfat_revenue"); and farms shipping milk on August 1 by province ("farms"). Filters: province (two-letter code), milk_class ("4", "4A", "3(b)"), dates as YYYY, YYYY-MM or YYYY-MM-DD. Newest rows first, up to limit (max 5000). Revenue divided by kg sold gives an average price per kg. lang="fr" returns French labels (region "Est"/"Ouest" is accepted too).
- Keywords
- milk production, dairy sales, milk class sales, butterfat sales, dairy farms, P10, milk pool, Canadian Dairy Commission, provincial milk production
- Mots-clés
- production de lait, production laitière par province, ventes de produits laitiers, ventes par classe, ventes de matière grasse, fermes laitières, producteurs de lait, P10, mise en commun du lait, Commission canadienne du lait
| Parameter | Type | Default |
|---|---|---|
dataset | "production" | "sales_p10" | "sales_by_region" | "farms" | required |
province | str | null | null |
region | str | null | null |
milk_class | str | null | null |
segment | "volume" | "butterfat_sales" | "butterfat_revenue" | "protein_sales" | "protein_revenue" | "other_solids_sales" | "other_solids_revenue" | "farm_count" | null | null |
date_from | str | null | null |
date_to | str | null | null |
limit | int | 500 |
lang | "en" | "fr" | "en" |
call_tool {"name": "cdc_query_market_data", "arguments": {"dataset": "…"}}Federal and national
Immigration, Refugees and Citizenship Canada
ircc_monthly_ ircc_
Immigration, Refugees and Citizenship Canada (IRCC). ircc_: Express Entry rounds of invitations (draw history, CRS cutoffs, invitations, pool distribution). ircc_monthly_: the Monthly IRCC Updates tables, January 2015 to the latest month: permanent residents by province, CMA…
Full description
Immigration, Refugees and Citizenship Canada (IRCC). ircc_: Express Entry rounds of invitations (draw history, CRS cutoffs, invitations, pool distribution). ircc_monthly_: the Monthly IRCC Updates tables, January 2015 to the latest month: permanent residents by province, CMA, census subdivision, citizenship, category, occupation, age and gender; study and work permit holders; temporary-to-permanent transitions; Express Entry admissions and invitations; asylum claimants. Counts are rounded to 5 and 1-4 suppressed. Other IRCC datasets are reachable through the federal ckan_ tools filtered to organization:cic.
Monthly IRCC Updates 3
ircc_monthly_describe_table Describe one IRCC monthly table: its dimensions, values and time span.
Use for learning the dimension keys (e.g. 'province_territory', 'immigration_category_main_category', 'country_of_citizenship') and their exact values before filtering or grouping with ircc_monthly_query, and the first and last month covered (most tables run from January 2015 to the latest month). table_id comes from ircc_monthly_list_tables, e.g. 'ODP-PR-PT_IMMCAT'. Downloads the whole file (up to about 30 MB), cached for hours.
- Keywords
- IRCC table columns, dimensions, categories, province, country of citizenship, immigration category, coverage, codebook
- Mots-clés
- colonnes du tableau IRCC, dimensions, catégories, province, pays de citoyenneté, catégorie d'immigration, période couverte, dictionnaire de données
| Parameter | Type | Default |
|---|---|---|
table_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ircc_monthly_describe_table", "arguments": {"table_id": "…"}}ircc_monthly_list_tables List IRCC's monthly immigration statistics tables (Monthly IRCC Updates).
Use for finding the table to query for monthly counts of permanent residents (admissions by province, census metropolitan area, census subdivision, country of citizenship, immigration category, occupation, age, gender, French-speaking), Express Entry admissions and invited candidates, study permit holders (including by designated learning institution), work permit holders (TFWP, International Mobility Program, post-graduation work permits), transitions from temporary to permanent residence, and asylum claimants. query keeps tables whose id, title or dataset contain every word. Archived series (Syrian, Afghan, resettled refugees) are left out unless include_archived. Pass a table_id to ircc_monthly_describe_table, then ircc_monthly_query.
- Keywords
- immigration, permanent residents, admissions, newcomers, study permits, international students, work permits, temporary foreign workers, asylum claimants, refugees, IRCC monthly data
- Mots-clés
- immigration, résidents permanents, admissions, nouveaux arrivants, permis d'études, étudiants étrangers, permis de travail, travailleurs étrangers temporaires, demandeurs d'asile, réfugiés, données mensuelles d'IRCC
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
include_archived | bool | false |
lang | "en" | "fr" | "en" |
call_tool {"name": "ircc_monthly_list_tables", "arguments": {}}ircc_monthly_query Query and total an IRCC monthly immigration table.
Use for monthly, quarterly or yearly counts of permanent residents, study and work permit holders, temporary-to-permanent transitions or asylum claimants, for a province, city (CMA or census subdivision), country of citizenship, immigration category or occupation. filters maps a dimension key to one value in English or French, e.g. {"province_territory": "Alberta"}. period sums to 'month', 'quarter' or 'year' (default: the table's finest). group_by lists the dimensions to keep; others are summed over (group_by=[] gives one total per period; omitted keeps every dimension). sort 'value_desc' ranks the largest groups (top countries); 'period' keeps the most recent limit rows in time order. Counts are rounded to 5 and 1-4 are suppressed ('--'), counted as 0 and reported per row in suppressed_cells, so sums are approximate. Tables overlap: the permanent resident tables are the same people cut by province, citizenship, age, gender, CMA or occupation, and Express Entry and French-speaking admissions are subsets of them, so total within one table and never add tables together.
- Keywords
- immigrants per month, permanent resident admissions by province, new permanent residents, international students by country, work permits by province, asylum claims, immigration trend, IRCC time series
- Mots-clés
- immigrants par mois, admissions de résidents permanents par province, nouveaux résidents permanents, étudiants étrangers par pays, permis de travail par province, demandes d'asile, tendance de l'immigration, série chronologique IRCC
| Parameter | Type | Default |
|---|---|---|
table_id | str | required |
filters | dict[str, str] | null | null |
year_from | int | null | null |
year_to | int | null | null |
period | "month" | "quarter" | "year" | null | null |
group_by | list[str] | null | null |
sort | "period" | "value_desc" | "period" |
limit | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ircc_monthly_query", "arguments": {"table_id": "…"}}Express Entry rounds 3
ircc_get_express_entry_round Get one Express Entry round of invitations by its draw number.
Use for looking up a specific round found with ircc_list_express_entry_rounds, or a round number a user already knows. draw_number is a string, not an int: most rounds are plain numbers ("444"), but two rounds IRCC ran on the same day (2018-05-30) are published as "91a" and "91b" rather than separate sequential numbers.
- Keywords
- Express Entry, round, draw number, invitation, CRS cutoff, immigration, permanent residence, IRCC
- Mots-clés
- Entrée express, ronde, numéro de tirage, invitation, score limite SCG, immigration, résidence permanente, IRCC
| Parameter | Type | Default |
|---|---|---|
draw_number | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ircc_get_express_entry_round", "arguments": {"draw_number": "…"}}ircc_get_latest_express_entry_round Get the most recent Express Entry round of invitations.
Use for answering "what is the current CRS cutoff score" or "when was the last Express Entry draw" without knowing a draw number.
- Keywords
- Express Entry, latest round, current CRS cutoff, most recent draw, today, this week, immigration, permanent residence, IRCC
- Mots-clés
- Entrée express, dernière ronde, score limite SCG actuel, tirage le plus récent, aujourd'hui, cette semaine, immigration, résidence permanente, IRCC
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "ircc_get_latest_express_entry_round", "arguments": {}}ircc_list_express_entry_rounds List Express Entry rounds of invitations, newest first.
Use for tracking CRS (Comprehensive Ranking System) cutoff score history, invitations issued per round, and candidate-pool score distribution over time. program filters by a case-insensitive substring match against the round's name and invited program(s), e.g. "Canadian Experience Class" or "Provincial Nominee". since (an ISO date) filters to rounds on or after that date. The upstream feed has no server-side filtering, so MapleStats fetches the full history once (cached for hours, since new rounds appear roughly weekly) and filters/limits locally.
- Keywords
- Express Entry, rounds of invitations, CRS, Comprehensive Ranking System, cutoff score, draw, invitations issued, immigration, permanent residence, Canadian Experience Class, Federal Skilled Worker, Provincial Nominee Program, category-based selection, IRCC
- Mots-clés
- Entrée express, rondes d'invitations, SCG, système de classement global, score limite, tirage, invitations émises, immigration, résidence permanente, catégorie de l'expérience canadienne, travailleurs qualifiés, programme des candidats des provinces, sélection fondée sur les catégories, IRCC
| Parameter | Type | Default |
|---|---|---|
program | str | null | null |
since | str | null | null |
limit | int | 20 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ircc_list_express_entry_rounds", "arguments": {}}Federal and national
CanadaBuys
canadabuys_
CanadaBuys federal procurement notices (PSPC open data CSVs): search currently open or newly posted tender notices, search award notices by supplier, buying organization, or keyword for any fiscal year since 2022-2023…
Full description
CanadaBuys federal procurement notices (PSPC open data CSVs): search currently open or newly posted tender notices, search award notices by supplier, buying organization, or keyword for any fiscal year since 2022-2023, and fetch the full detail of one notice by its reference number.
canadabuys_get_notice Get the full detail of one CanadaBuys notice by reference number (e.g. "MX-443841357513"), including the untruncated description. Looks in open tenders first, then award notices for the current and previous fiscal years, or only fiscal_year when given.
Use for reading the full text of a tender or award found by a search.
- Keywords
- CanadaBuys, notice detail, tender detail, award detail, reference number, solicitation, full description, procurement notice
- Mots-clés
- AchatsCanada, détail de l'avis, appel d'offres, avis d'attribution, numéro de référence, sollicitation, description complète, avis d'approvisionnement
| Parameter | Type | Default |
|---|---|---|
reference_number | str | required |
fiscal_year | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "canadabuys_get_notice", "arguments": {"reference_number": "…"}}canadabuys_list_bulk_files List CanadaBuys' whole-history and legacy bulk CSV downloads with their URLs, sizes, and last-modified dates: every tender notice from 2009, award notices from 2012, and contract history from 2009 in one file each (57MB to over 800MB). These are links for offline analysis, not queried here; lang is a no-op because the files are bilingual.
Use for downloading the full CanadaBuys or pre-CanadaBuys (Buy and Sell) procurement history for research or bulk analysis.
- Keywords
- CanadaBuys, bulk download, legacy, Buy and Sell, historical tenders, historical awards, contract history, full dataset, CSV
- Mots-clés
- AchatsCanada, téléchargement en bloc, Achatsetventes, appels d'offres historiques, attributions historiques, historique des contrats, jeu de données complet, fichier CSV
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "canadabuys_list_bulk_files", "arguments": {}}canadabuys_search_awards Search federal contract award notices on CanadaBuys for one fiscal year (April-March, e.g. "2025-2026"; defaults to the current year, earliest 2022-2023). supplier and buyer are case-insensitive substring filters on the winning supplier's legal name and the contracting organization. Returns contract amount, dates, and supplier location, newest first.
Use for who won a government contract; which contracts a company has been awarded; how much a department spent on a procurement.
- Keywords
- CanadaBuys, contract award, award notice, supplier, vendor, winning bidder, contract value, federal spending, procurement, PSPC
- Mots-clés
- AchatsCanada, attribution de contrat, avis d'attribution, fournisseur, soumissionnaire retenu, valeur du contrat, dépenses fédérales, approvisionnement, marché public, SPAC
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
supplier | str | null | null |
buyer | str | null | null |
category | "goods" | "services" | "construction" | "services_related_to_goods" | null | null |
fiscal_year | str | null | null |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "canadabuys_search_awards", "arguments": {}}canadabuys_search_contracts Search federal contract history (contracts awarded, including amendments) for one fiscal year, from 2009-2010 to the current year ("2009-jan-Mar" covers January to March 2009). Each contract's amendments are merged into one record with its original amount, total value, and amendment count, sorted by total value (largest first). supplier matches legal or standardized supplier name; buyer matches the contracting department; min_value filters on total contract value.
Use for historical federal contracts back to 2009; largest contracts a department signed; a company's federal contract history; sole-source (non-competitive) contracts and their justification.
- Keywords
- CanadaBuys, contract history, contracts awarded, federal contracts, supplier, vendor, sole source, non-competitive, amendment, contract value, government spending, PSPC
- Mots-clés
- AchatsCanada, historique des contrats, contrats octroyés, marchés fédéraux, fournisseur, fournisseur unique, non concurrentiel, modification, valeur du contrat, dépenses gouvernementales, SPAC
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
supplier | str | null | null |
buyer | str | null | null |
category | "goods" | "services" | "construction" | "services_related_to_goods" | null | null |
min_value | float | null | null |
fiscal_year | str | null | null |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "canadabuys_search_contracts", "arguments": {}}canadabuys_search_tenders Search federal tender notices (bid opportunities) on CanadaBuys. notice_set "open" covers every tender still accepting bids; "new" covers only those posted today. query matches title, description, UNSPSC commodity, reference and solicitation numbers (all terms must appear). region and buyer are case-insensitive substring filters on region of delivery and contracting organization. Results are sorted soonest-closing first.
Use for finding open government contracts to bid on; listing what a department is currently buying; checking closing dates for a tender.
- Keywords
- CanadaBuys, tender, bid opportunity, RFP, RFQ, solicitation, procurement, government contract, PSPC, open tenders, closing date
- Mots-clés
- AchatsCanada, appel d'offres, occasion de soumission, demande de propositions, sollicitation, approvisionnement, marché public, SPAC, appels d'offres ouverts, date de clôture
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
notice_set | "open" | "new" | "open" |
category | "goods" | "services" | "construction" | "services_related_to_goods" | null | null |
region | str | null | null |
buyer | str | null | null |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "canadabuys_search_tenders", "arguments": {}}Federal and national
Canadian Grain Commission
cgc_
Canadian Grain Commission (grainscanada.gc.ca, tools prefixed cgc_): Grain Statistics Weekly by crop year from 2013-14 (producer deliveries, shipments and stocks at primary and process elevators by province, terminal receipts, exports, stocks and disposition by port and grade…
Full description
Canadian Grain Commission (grainscanada.gc.ca, tools prefixed cgc_): Grain Statistics Weekly by crop year from 2013-14 (producer deliveries, shipments and stocks at primary and process elevators by province, terminal receipts, exports, stocks and disposition by port and grade, feed grains, producer cars, imported grains, stock summary; thousands of tonnes, updated each Thursday) and monthly grain exports from licensed facilities by grain, grade, port and destination country since January 2013. Filters, weekly or summed results, English or French labels.
cgc_exports_describe List the grains, ports and destination countries in the CGC's monthly grain exports file.
Use for the values cgc_exports_query filters on (42 grain names including imported and 'US' grains, grades, elevator types PRIMARY, TERMINALS and CONTAINER, port regions, world regions, about 150 destination countries) and the months covered (January 2013 to the latest month, usually a few weeks behind). lang="fr" lists the French names ('R.P. de Chine', 'Silos Terminaux', 'Conteneurs').
- Keywords
- grain exports, destination countries, export markets, Canadian Grain Commission, licensed facilities, container exports, ports, wheat, canola
- Mots-clés
- exportations de grain, pays de destination, marchés d'exportation, Commission canadienne des grains, installations agréées, conteneurs, ports, céréales, blé, canola
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "cgc_exports_describe", "arguments": {}}cgc_exports_query Get monthly Canadian grain exports by grain and destination country from the Canadian Grain Commission.
Use for how much wheat, durum, canola, barley, oats, peas, lentils or soybeans Canada exported to China, Japan, the United States, Mexico or any other country, by month, calendar year or crop year (August to July), from licensed primary, terminal and container facilities, since January 2013. Filters take one value or a list (cgc_exports_describe lists them); region is the port region, elevator PRIMARY, TERMINALS or CONTAINER. With frequency 'month' and no group_by, rows are as published; otherwise values are summed per period over every column not in group_by (e.g. frequency='crop_year', group_by=['destination']), and months shows partial periods. Rows come in period order, largest first within a period; past limit the oldest periods are dropped. total_ktonnes sums every match. Thousands of tonnes. With lang="fr" names are French: elevator 'Silos des Prairies', 'Silos Terminaux' or 'Conteneurs', destination 'R.P. de Chine', 'Japon', 'États-Unis'; filters ignore case, accents, hyphens and spaces, and an unknown name lists the ones containing it.
- Keywords
- grain exports by country, canola exports to China, wheat exports, export destinations, monthly exports, crop year exports, Canadian Grain Commission, pulse exports, lentil exports, trade
- Mots-clés
- exportations de grain par pays, exportations de canola vers la Chine, exportations de blé, destinations d'exportation, exportations mensuelles, campagne agricole, Commission canadienne des grains, céréales, légumineuses, lentilles, commerce
| Parameter | Type | Default |
|---|---|---|
grain | str | list[str] | null | null |
destination | str | list[str] | null | null |
region | str | list[str] | null | null |
elevator | str | list[str] | null | null |
global_region | str | list[str] | null | null |
grade | str | list[str] | null | null |
year_from | int | null | null |
year_to | int | null | null |
frequency | "month" | "year" | "crop_year" | "month" |
group_by | list["grain" | "grade" | "elevator" | "region" | "global_region" | "destination"] | null | null |
limit | int | 200 |
lang | "en" | "fr" | "en" |
call_tool {"name": "cgc_exports_query", "arguments": {}}cgc_weekly_describe List what the Canadian Grain Commission's Grain Statistics Weekly holds for a crop year.
Use for the first step before cgc_weekly_query: the weeks published so far (grain week and the Sunday it ends), and per worksheet its metrics, periods, grains, regions and grades. Worksheets: Primary (producer deliveries, shipments, stocks, condo storage by prairie province), Process (deliveries, shipments, milled grain and stocks at process elevators), Terminal Receipts, Terminal Exports, Terminal Stocks and Terminal Disposition (by port: Vancouver, Prince Rupert, Churchill, Thunder Bay, Bay & Lakes, St. Lawrence, and by grade), Primary Shipment Distribution, Feed Grains, Feed Grains Shipment Distribution, Producer Cars, Imported Grains, Summary (stocks by elevator type). crop_year is e.g. '2025-26' (August to July), from 2013-14; default: the latest. Values are thousands of tonnes. lang="fr" reads the French file: worksheet, metric, period, grain and region names are then French ('Silos primaires', 'Terminaux - exportations', 'Semaine en cours').
- Keywords
- Canadian Grain Commission, CGC, grain statistics weekly, GSW, crop year, grain handling, primary elevators, terminal elevators, grain stocks, canola, wheat
- Mots-clés
- Commission canadienne des grains, CCG, statistiques hebdomadaires sur le grain, campagne agricole, manutention du grain, silos primaires, silos terminaux, silos-élévateurs, stocks de grain, céréales, canola, blé
| Parameter | Type | Default |
|---|---|---|
crop_year | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cgc_weekly_describe", "arguments": {}}cgc_weekly_query Get weekly grain deliveries, shipments, exports and stocks from the Canadian Grain Commission.
Use for producer deliveries of wheat, canola, barley, oats, peas or lentils to primary elevators by province; terminal exports and receipts by port (Vancouver, Prince Rupert, Thunder Bay, St. Lawrence) and grade; grain stocks in commercial storage; weekly or crop-year-to-date grain movement. worksheet is required (e.g. 'Primary', 'Terminal Exports', 'Summary'; cgc_weekly_describe lists them and their values). period is 'Current Week' (that week alone) or 'Crop Year' (to date). Filters take one value or a list. Omit group_by for the published rows; pass it (e.g. ['grain']) to sum the other columns per week, e.g. deliveries over all provinces; summing requires one metric and one period. latest_week_only keeps the newest week. Rows come in week order; past limit the latest are kept. Thousands of tonnes; rows without a region are national totals. From crop year 2013-14; updated each Thursday. With lang="fr" every name is French, e.g. worksheet 'Silos primaires', metric 'Livraisons', period 'Semaine en cours' or 'Campagne agricole', grain 'Blé', region 'Saskatchewan'; filters ignore case, accents, hyphens and spaces.
- Keywords
- grain deliveries, grain exports, grain stocks, primary elevator, terminal elevator, port of Vancouver, canola deliveries, wheat exports, crop year to date, thousand tonnes
- Mots-clés
- livraisons de grain, livraisons des producteurs, exportations de grain, stocks de grain, silo primaire, silo terminal, silo-élévateur, port de Vancouver, livraisons de canola, exportations de blé, céréales, orge, campagne agricole, milliers de tonnes
| Parameter | Type | Default |
|---|---|---|
worksheet | str | required |
crop_year | str | null | null |
metric | str | list[str] | null | null |
period | str | list[str] | null | null |
grain | str | list[str] | null | null |
grade | str | list[str] | null | null |
region | str | list[str] | null | null |
week_from | int | null | null |
week_to | int | null | null |
latest_week_only | bool | false |
group_by | list["worksheet" | "metric" | "period" | "grain" | "grade" | "region"] | null | null |
limit | int | 200 |
lang | "en" | "fr" | "en" |
call_tool {"name": "cgc_weekly_query", "arguments": {"worksheet": "…"}}Federal and national
Environment and Climate Change Canada
eccc_
Environment and Climate Change Canada / Meteorological Service of Canada, via the MSC GeoMet-OGC-API (api.weather.gc.ca): weather alerts, current conditions and surface observations (SWOB), city forecasts, air quality health index (AQHI)…
Full description
Environment and Climate Change Canada / Meteorological Service of Canada, via the MSC GeoMet-OGC-API (api.weather.gc.ca): weather alerts, current conditions and surface observations (SWOB), city forecasts, air quality health index (AQHI), climate stations/daily/hourly/monthly observations and 1981-2010 normals, hydrometric (water level/flow) stations and real-time/historical data, marine forecasts, and long-term climate extremes. One generic OGC API - Features client covers all ~100 collections this server publishes rather than a bespoke tool per dataset.
eccc_get_collection Get one MSC GeoMet collection's description, spatial extent, and queryable properties.
Use for confirming what a collection covers and which property names you can filter/sort/select by (e.g. province and alert_type for weather-alerts, STATION_NUMBER for hydrometric-realtime) before calling eccc_query_items - an unknown property name is silently ignored upstream and returns zero rows rather than an error, so checking here first avoids that trap.
- Keywords
- environment canada, eccc, msc, geomet, collection, detail, metadata, queryables, properties, schema, extent, bbox
- Mots-clés
- environnement canada, smc, geomet, collection, détail, métadonnées, propriétés interrogeables, schéma, étendue
| Parameter | Type | Default |
|---|---|---|
collection_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "eccc_get_collection", "arguments": {"collection_id": "…"}}eccc_list_collections List every MSC GeoMet OGC API collection (~100).
Use for a full inventory scan. Prefer eccc_search_collections for a topic search, or docs://eccc/well-known-collections for the collections that matter most - this returns the entire catalogue, including many specialized downscaled-climate-projection families most callers will not need.
- Keywords
- environment canada, eccc, msc, geomet, weather, climate, list, inventory, all collections, catalogue, full list
- Mots-clés
- environnement canada, smc, geomet, météo, climat, liste, inventaire, toutes les collections, catalogue, liste complète
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "eccc_list_collections", "arguments": {}}eccc_query_items Query rows (GeoJSON features) from one MSC GeoMet collection.
Use for fetching actual weather alerts, current surface observations (SWOB), AQHI readings/forecasts, climate normals or daily/hourly observations, hydrometric water level/flow, or any other MSC GeoMet collection's data - one generic query works across every collection (see docs://eccc/well-known-collections for good starting collection_id values and example filters). bbox is [west, south, east, north] in decimal degrees (WGS84). datetime_filter accepts a single RFC3339 datetime or an interval ("start/end", ".." for an open end) - support genuinely varies by collection and is not predictable from the collection's own metadata (confirmed: hydrometric-realtime supports it, weather-alerts does not and raises an error) - omit it and filter by filters/bbox instead if it fails. filters are exact-match property=value pairs (e.g. {"province": "ON"} or {"STATION_NUMBER": "05BL023"}) combined with AND. fields limits which properties come back (omit for all). sortby is a property name, prefixed with - for descending (e.g. "-publication_datetime"). limit is capped at 1000 per request - several collections here have hundreds of thousands of rows, so page with offset rather than requesting everything at once. Read docs://eccc/gotchas before relying on datetime_filter or on climate-stations' LATITUDE/LONGITUDE properties.
- Keywords
- environment canada, eccc, msc, geomet, weather alert, current conditions, swob, observation, aqhi, air quality, climate normal, hydrometric, water level, flow, marine forecast, query, data, filter, bbox, station
- Mots-clés
- environnement canada, smc, geomet, alerte météo, conditions actuelles, observation, cote air santé, qualité de l'air, normale climatique, hydrométrique, niveau d'eau, débit, prévision maritime, requête, données, filtre, station
| Parameter | Type | Default |
|---|---|---|
collection_id | str | required |
bbox | list[float] | null | null |
datetime_filter | str | null | null |
filters | dict[str, str] | null | null |
fields | list[str] | null | null |
sortby | str | null | null |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "eccc_query_items", "arguments": {"collection_id": "…"}}eccc_search_collections Search MSC GeoMet's ~100 weather/climate/water OGC API collections by keyword.
Use for finding a collection id when you only know a topic - e.g. "alert", "aqhi", "climate normal", "hydrometric", "swob", "marine", "snowfall". Read docs://eccc/well-known-collections first - it already lists the collection ids that matter most, with example filters for each.
- Keywords
- environment canada, eccc, msc, geomet, weather, climate, collection, search, find, discover, dataset, catalogue
- Mots-clés
- environnement canada, smc, geomet, météo, climat, collection, recherche, trouver, découvrir, jeu de données, catalogue
| Parameter | Type | Default |
|---|---|---|
query | str | required |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "eccc_search_collections", "arguments": {"query": "…"}}Federal and national
Financial Consumer Agency of Canada: comparison tools
fcac_
Financial Consumer Agency of Canada comparison tools (itools-ioutils.fcac-acfc.gc.ca, tools prefixed fcac_): credit cards offered in a province (about 95 in Ontario: annual fees, purchase, cash advance and balance transfer rates, foreign conversion fee, minimum income, rewards…
Full description
Financial Consumer Agency of Canada comparison tools (itools-ioutils.fcac-acfc.gc.ca, tools prefixed fcac_): credit cards offered in a province (about 95 in Ontario: annual fees, purchase, cash advance and balance transfer rates, foreign conversion fee, minimum income, rewards, insurance) and chequing and savings accounts (monthly fees and how to waive them, included transactions, interest rate tiers, withdrawal, transfer, overdraft, NSF and other fees, low-cost and no-cost accounts). Data comes from the financial institutions and is read live (EN/FR); only products submitted to FCAC are listed.
fcac_get_bank_account Every fee of one chequing or savings account, from FCAC's Account Comparison Tool.
Use for one account's monthly fee and how to waive it, included transactions, interest rate tiers, and the fees once included transactions run out: withdrawals (branch, ATM, other bank's ATM, abroad), transfers and Interac e-Transfers, overdraft protection, non-sufficient funds (NSF), debit purchases abroad, bill payments, cheque images and statements. product_id comes from fcac_search_bank_accounts; pass the same province, account_type, currency and groups used there, because the tool only opens an account from its result list. Every section is under sections.
- Keywords
- bank account fees, NSF fee, overdraft fee, ATM fee, e-Transfer fee, monthly fee waiver, minimum balance, savings interest rate, FCAC, chequing account
- Mots-clés
- frais de compte bancaire, frais d'insuffisance de fonds, chèque sans provision, frais de découvert, frais de guichet, frais de retrait, virement Interac, forfait bancaire, solde minimum, taux d'intérêt épargne, ACFC, compte-chèques
| Parameter | Type | Default |
|---|---|---|
product_id | str | required |
province | "AB" | "BC" | "MB" | "NB" | "NL" | "NS" | "NT" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT" | required |
account_type | "chequing" | "savings" | "chequing" |
currency | "CAD" | "USD" | "other" | "CAD" |
groups | list["senior" | "gis_recipient" | "rdsp_beneficiary" | "youth" | "student" | "newcomer" | "indigenous" | "social_assistance" | "disability_tax_credit"] | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "fcac_get_bank_account", "arguments": {"product_id": "…", "province": "…"}}fcac_get_credit_card Full details of one credit card from FCAC's Credit Card Comparison Tool.
Use for one card's annual fees (first and additional card), purchase, cash advance and balance transfer interest rates, foreign currency conversion fee, minimum personal and household income, reward categories and how to redeem them, other benefits, and included insurance (travel medical, trip cancellation, rental car, and more). product_id comes from fcac_search_credit_cards; pass the same province, currency, student and secured values used there, because the tool only opens a card from its result list. Every section of the page is also returned under sections.
- Keywords
- credit card details, cash advance rate, balance transfer rate, foreign transaction fee, minimum income, card insurance, annual fee, FCAC, card benefits, rewards program
- Mots-clés
- détails de carte de crédit, taux d'avance de fonds, taux de transfert de solde, frais de conversion de devises, revenu minimum, assurance voyage, assurance carte, frais annuels, ACFC, avantages
| Parameter | Type | Default |
|---|---|---|
product_id | str | required |
province | "AB" | "BC" | "MB" | "NB" | "NL" | "NS" | "NT" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT" | required |
currency | "CAD" | "USD" | "other" | "CAD" |
student | bool | false |
secured | bool | false |
lang | "en" | "fr" | "en" |
call_tool {"name": "fcac_get_credit_card", "arguments": {"product_id": "…", "province": "…"}}fcac_search_bank_accounts Compare chequing or savings accounts in a province, from FCAC's Account Comparison Tool.
Use for bank and credit union accounts available in a province (two-letter code) with their monthly fee (chequing), interest rate (savings), included transactions and whether they fall under the Commitment on Low-Cost and No-Cost Accounts (about 61 chequing and 38 savings accounts in Ontario). groups adds accounts offered to 'senior', 'gis_recipient', 'rdsp_beneficiary', 'youth', 'student', 'newcomer', 'indigenous', 'social_assistance' or 'disability_tax_credit' customers. Filter by words in the name, institution, maximum monthly fee (dollars) or low_cost_only. Default order is FCAC's (most included transactions first). Pass a product_id with the same options to fcac_get_bank_account for every fee. Read live; lang="fr" returns FCAC's French names and labels (numbers are the same), and query and institution then match the French names, ignoring case, accents and apostrophe style.
- Keywords
- bank account, chequing account, savings account, monthly fee, bank fees, low-cost account, no-fee account, interest rate, FCAC, compare accounts, credit union, transactions
- Mots-clés
- compte bancaire, compte-chèques, compte chèque, compte d'épargne, forfait bancaire, frais mensuels, frais bancaires, compte à frais modiques, compte sans frais, taux d'intérêt, ACFC, coopérative de crédit, caisse populaire
| Parameter | Type | Default |
|---|---|---|
province | "AB" | "BC" | "MB" | "NB" | "NL" | "NS" | "NT" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT" | required |
account_type | "chequing" | "savings" | "chequing" |
currency | "CAD" | "USD" | "other" | "CAD" |
groups | list["senior" | "gis_recipient" | "rdsp_beneficiary" | "youth" | "student" | "newcomer" | "indigenous" | "social_assistance" | "disability_tax_credit"] | null | null |
query | str | "" |
institution | str | "" |
max_monthly_fee | float | null | null |
low_cost_only | bool | false |
sort | "monthly_fee" | "institution" | "name" | null | null |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "fcac_search_bank_accounts", "arguments": {"province": "…"}}fcac_search_credit_cards Compare credit cards offered in a province, from FCAC's Credit Card Comparison Tool.
Use for which credit cards are available in a province (two-letter code, e.g. 'ON', 'QC') and what they cost: annual fee, purchase interest rate and reward categories, for every card the financial institutions list with the Financial Consumer Agency of Canada (about 95 in Ontario). Filter by words in the card or bank name, institution, maximum annual fee (dollars), maximum purchase rate (percent) and rewards ('cash_back', 'travel', 'groceries', 'gas', 'general_merchandise'; every one given must apply). student=True adds student cards; secured=True lists secured cards instead. Default order is FCAC's (annual fee, low to high). Pass a product_id with the same province and options to fcac_get_credit_card for cash advance and balance transfer rates, foreign conversion fee, minimum income and insurance. Read live; lang="fr" returns FCAC's French names, labels and reward categories (numbers are the same), and query and institution then match the French names, ignoring case, accents and apostrophe style.
- Keywords
- credit card, interest rate, annual fee, APR, rewards card, cash back, travel rewards, low interest card, FCAC, compare cards, bank fees, consumer finance
- Mots-clés
- carte de crédit, comparer les cartes de crédit, taux d'intérêt, frais annuels, carte sans frais annuels, récompenses, remise en argent, points de récompense, carte à faible taux, carte étudiante, carte de crédit garantie, ACFC, Agence de la consommation en matière financière, frais bancaires
| Parameter | Type | Default |
|---|---|---|
province | "AB" | "BC" | "MB" | "NB" | "NL" | "NS" | "NT" | "NU" | "ON" | "PE" | "QC" | "SK" | "YT" | required |
currency | "CAD" | "USD" | "other" | "CAD" |
student | bool | false |
secured | bool | false |
query | str | "" |
institution | str | "" |
max_annual_fee | float | null | null |
max_purchase_rate | float | null | null |
rewards | list["cash_back" | "travel" | "groceries" | "gas" | "general_merchandise"] | null | null |
sort | "annual_fee" | "purchase_rate" | "institution" | "name" | null | null |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "fcac_search_credit_cards", "arguments": {"province": "…"}}Federal and national
Canada Gazette
gazette_
Canada Gazette: list recent issues of Part I (notices and proposed regulations) and Part II (registered regulations, SOR/SI), list an issue's notices by section, department and act, and read a notice's text, in English or French.
gazette_get_issue List every notice or regulation in one Canada Gazette issue.
Use for seeing what was published on a date (default: the latest issue), grouped by section (government notices, commissions, proposed regulations, miscellaneous notices) with the department and act for Part I, or the SOR/SI instruments for Part II. issue_date is YYYY-MM-DD from gazette_list_issues.
- Keywords
- Canada Gazette issue, table of contents, notices, regulations, department, act, SOR, SI, publication date
- Mots-clés
- édition de la Gazette du Canada, table des matières, avis, règlements, ministère, loi, DORS, TR
| Parameter | Type | Default |
|---|---|---|
part | 1 | 2 | 1 |
issue_date | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "gazette_get_issue", "arguments": {}}gazette_get_notice Read the text of one Canada Gazette notice or regulation.
Use for the wording of a notice, proposed regulation (with its Regulatory Impact Analysis Statement) or registered regulation. url comes from gazette_get_issue; the language follows the URL (open the French issue for French text).
- Keywords
- Canada Gazette notice text, regulation text, RIAS, regulatory impact, proposed regulation, order, Canada Gazette, notice
- Mots-clés
- texte de l'avis, texte du règlement, REIR, résumé de l'étude d'impact, projet de règlement, décret, Gazette du Canada, avis
| Parameter | Type | Default |
|---|---|---|
url | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "gazette_get_notice", "arguments": {"url": "…"}}gazette_list_issues List recent Canada Gazette issues (Part I notices, Part II regulations).
Use for finding an issue date to open with gazette_get_issue. Part I (weekly, Saturdays) carries government notices, commission notices and proposed regulations; Part II (every second Wednesday) carries registered regulations (SOR) and statutory instruments (SI).
- Keywords
- Canada Gazette, government notices, proposed regulations, regulations, SOR, orders in council, official publication, Part I
- Mots-clés
- Gazette du Canada, avis du gouvernement, projets de règlement, règlements, DORS, décrets, publication officielle, Partie I
| Parameter | Type | Default |
|---|---|---|
part | 1 | 2 | 1 |
limit | int | 10 |
lang | "en" | "fr" | "en" |
call_tool {"name": "gazette_list_issues", "arguments": {}}Federal and national
Canadian Food Inspection Agency
cfia_
Canadian Food Inspection Agency animal disease tables on inspection.canada.ca, tools prefixed cfia_: yearly counts of confirmed herds and flocks per federally reportable terrestrial animal disease, 2011 to the current year (updated on the 10th of each month…
Full description
Canadian Food Inspection Agency animal disease tables on inspection.canada.ca, tools prefixed cfia_: yearly counts of confirmed herds and flocks per federally reportable terrestrial animal disease, 2011 to the current year (updated on the 10th of each month; the CKAN copy stops at 2021); one row per confirmation, with date, province and animal type, for chronic wasting disease, scrapie, bovine tuberculosis, cysticercosis, BSE, trichinellosis and avian influenza before 2021; and every highly pathogenic avian influenza infected premises since December 2021 (current or released, province, municipality, commercial or not, WOAH class, control zone) with the CFIA's status by province table (birds impacted). Read from the HTML pages, which have no data file behind them; rabies, aquatic animal diseases and food testing are CKAN datasets (cfia-acia).
cfia_avian_influenza Get highly pathogenic avian influenza (HPAI, bird flu) infected premises in Canada from CFIA.
Use for every poultry and bird premises the CFIA has confirmed with avian influenza since December 2021 (about 660): premises id, date detected, province, municipality, commercial or non-commercial, WOAH poultry or non-poultry, primary control zone and its order, and whether it is still under CFIA quarantine (status="current") or released. Filter by province (code or name), date_from/date_to (YYYY, YYYY-MM or YYYY-MM-DD) and premises_type; counts gives current and released premises by province, month, year or premises type. The result also carries the CFIA's status-by-province table with the estimated birds impacted. Newest first, up to limit (max 1000). lang="fr" gives French municipalities, zones (ZCP) and labels; dates follow the English page.
- Keywords
- avian influenza, bird flu, HPAI, H5N1, infected premises, poultry outbreak, CFIA, quarantine, control zone, birds impacted, flocks
- Mots-clés
- influenza aviaire, grippe aviaire, IAHP, H5N1, lieux infectés, éclosion, volailles, ACIA, quarantaine, zone de contrôle primaire, oiseaux touchés
| Parameter | Type | Default |
|---|---|---|
status | "current" | "released" | "all" | "all" |
province | str | null | null |
date_from | str | null | null |
date_to | str | null | null |
premises_type | "commercial" | "non_commercial" | "captive_wild" | null | null |
counts_by | "province" | "month" | "year" | "premises_type" | "province" |
limit | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "cfia_avian_influenza", "arguments": {}}cfia_disease_detections List each confirmed CFIA detection of a reportable animal disease: date, province, species.
Use for when and where chronic wasting disease was confirmed in farmed deer and elk (monthly, 2011 to now), scrapie in sheep and goat flocks, bovine tuberculosis and cysticercosis in cattle herds, BSE cases (with the animal's age), trichinellosis, and avian influenza in poultry before 2021. disease takes a name or abbreviation in English or French (default: all seven); filter by year, province (code or name) or animal_type ("elk", "wapiti", "goat"); counts_by groups rows by year, YYYY-MM month, province or animal type. herds counts the herds a row stands for ("Elk (3 herds)"), matching the yearly totals of cfia_reportable_diseases. For avian influenza since December 2021 use cfia_avian_influenza. lang="fr" gives French locations, animal types and notes; dates follow the English pages.
- Keywords
- chronic wasting disease, CWD, scrapie, bovine tuberculosis, BSE, mad cow, cysticercosis, detections, herds infected, deer, elk, CFIA
- Mots-clés
- maladie débilitante chronique, MDC, tremblante, tuberculose bovine, ESB, vache folle, cysticercose, détections, troupeaux infectés, cerf, wapiti, ACIA
| Parameter | Type | Default |
|---|---|---|
disease | str | null | null |
year_from | int | null | null |
year_to | int | null | null |
province | str | null | null |
animal_type | str | null | null |
counts_by | "year" | "month" | "province" | "animal_type" | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cfia_disease_detections", "arguments": {}}cfia_reportable_diseases Get yearly counts of federally reportable terrestrial animal diseases in Canada (CFIA).
Use for how many farmed herds or flocks were confirmed with a federally reportable disease each year from 2011 to the current year (avian influenza, chronic wasting disease, equine infectious anemia, bovine tuberculosis, scrapie, cysticercosis, BSE, Newcastle disease, anthrax, anaplasmosis, trichinellosis), as published by the CFIA and updated on the 10th of each month (current_as_of gives the month end the counts run to). disease accepts a name in either language or an abbreviation ("CWD", "maladie débilitante chronique", "BSE", "tremblante"), ignoring case, accents and apostrophes; totals_by adds sums by year or by disease. Each row names the tool with one row per detection (cfia_disease_detections, cfia_avian_influenza). Rabies and aquatic diseases are CKAN datasets (organization cfia-acia). lang="fr" reads the French page (French disease names and notes).
- Keywords
- reportable disease, animal disease, CFIA, chronic wasting disease, avian influenza, equine infectious anemia, bovine tuberculosis, scrapie, BSE, livestock health, herds infected
- Mots-clés
- maladie à déclaration obligatoire, maladies animales, ACIA, maladie débilitante chronique, influenza aviaire, anémie infectieuse des équidés, tuberculose bovine, tremblante, ESB, santé animale, troupeaux infectés
| Parameter | Type | Default |
|---|---|---|
year_from | int | null | null |
year_to | int | null | null |
disease | str | null | null |
totals_by | "year" | "disease" | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "cfia_reportable_diseases", "arguments": {}}Federal and national
Canadian Institute for Health Information
cihi_
Canadian Institute for Health Information Indicator Library: search ~200 health-system indicators (hospital mortality and readmissions, wait times, ED visits, health spending, patient outcomes), read an indicator's description and data availability…
Full description
Canadian Institute for Health Information Indicator Library: search ~200 health-system indicators (hospital mortality and readmissions, wait times, ED visits, health spending, patient outcomes), read an indicator's description and data availability, and query its data table by place, reporting level, time frame and breakdown, in English or French.
cihi_get_indicator Get a CIHI indicator's description, data availability, update date, and topics.
Use for understanding what an indicator measures and which years and places it covers before reading its data. indicator is a slug from cihi_search_indicators; lang="fr" returns the French page.
- Keywords
- CIHI, indicator definition, methodology, data availability, update frequency, health system, health indicator, definition
- Mots-clés
- ICIS, définition de l'indicateur, méthodologie, disponibilité des données, fréquence de mise à jour, système de santé, indicateur de santé, définition
| Parameter | Type | Default |
|---|---|---|
indicator | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "cihi_get_indicator", "arguments": {"indicator": "…"}}cihi_get_indicator_data Read a CIHI indicator's data table (by place, reporting level, year, and breakdown).
Use for rates and values such as 30-day stroke mortality in Alberta, or readmission rates by hospital. place is a substring of "Place or organization"; filters match columns exactly, e.g. {"Reporting level": "Province/Territory", "Time frame": "2024–2025", "Level 1 breakdown": "Not applicable"}. The last limit matching rows in file order come back. lang="fr" reads CIHI's French file, with French column names.
- Keywords
- CIHI, health data, hospital mortality rate, readmission rate, province, hospital, fiscal year, risk-adjusted rate
- Mots-clés
- ICIS, données sur la santé, taux de mortalité, taux de réadmission, province, hôpital, exercice, taux ajusté
| Parameter | Type | Default |
|---|---|---|
indicator | str | required |
place | str | null | null |
filters | dict[str, str] | null | null |
table | str | null | null |
limit | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "cihi_get_indicator_data", "arguments": {"indicator": "…"}}cihi_search_indicators Search CIHI's Indicator Library of ~200 health-system indicators.
Use for finding an indicator's slug, e.g. "stroke mortality", "readmission", "wait times", "emergency department", "hospital stays", "public spending". Every word must appear in the English name; read French content with lang="fr" on the other cihi_ tools.
- Keywords
- CIHI, health indicators, hospital, mortality, readmission, wait times, emergency department, health system performance
- Mots-clés
- ICIS, indicateurs de santé, hôpital, mortalité, réadmission, temps d'attente, urgences, rendement du système de santé
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
lang | "en" | "fr" | "en" |
call_tool {"name": "cihi_search_indicators", "arguments": {}}Federal and national
Elections Canada: candidate financial returns
elections_financial_returns_
Elections Canada Political Financing (elections.ca/WPAPPS/WPF): search federal election candidates by name, party, or province, then retrieve any of the 13 parts of a candidate's official campaign financial return (declaration, contributions received, loans, expenses, transfers…
Full description
Elections Canada Political Financing (elections.ca/WPAPPS/WPF): search federal election candidates by name, party, or province, then retrieve any of the 13 parts of a candidate's official campaign financial return (declaration, contributions received, loans, expenses, transfers, bank reconciliation) as structured line-item data. Covers the Candidates political entity only; distinct from the bulk poll-by-poll results and donor-contribution CKAN datasets already reachable via ckan_* (portal="federal").
elections_financial_returns_get_financial_return_part Retrieve one part of a federal election candidate's official Complete Financial Return -- declaration, contributions received, loans, expenses, transfers, or bank reconciliation.
Use for auditing a candidate's campaign expenses or donors; the declared official agent; unpaid claims or loans; bank reconciliation totals; any line item from an official candidate financial return filed under the Canada Elections Act.
- Keywords
- elections canada, campaign finance, financial return, candidate expenses, contributions received, official agent, election spending, political financing, donor, campaign loan
- Mots-clés
- élections canada, financement de campagne, rapport financier, dépenses de candidat, contributions reçues, agent officiel, dépenses électorales, financement politique, donateur, prêt de campagne
| Parameter | Type | Default |
|---|---|---|
candidate_client_id | str | required |
part | str | required |
election_id | str | required |
act | str | "after_2019" |
return_status | "submitted" | "amended" | "submitted" |
lang | "en" | "fr" | "en" |
call_tool {"name": "elections_financial_returns_get_financial_return_part", "arguments": {"candidate_client_id": "…", "part": "…", "election_id": "…"}}elections_financial_returns_list_elections List general elections and by-elections available for a candidate financial-return search under a given Canada Elections Act period.
Use for finding the election_id to pass into elections_financial_returns_search_candidates or elections_financial_returns_get_financial_return_part; discovering recent or upcoming by-elections not yet known by name.
- Keywords
- elections canada, election list, by-election, general election, candidate, political financing, act period, election id, writ, campaign return
- Mots-clés
- élections canada, liste des élections, élection partielle, élection générale, candidat, financement politique, période de la loi, identifiant d'élection, bref, rapport de campagne
| Parameter | Type | Default |
|---|---|---|
act | str | "after_2019" |
lang | "en" | "fr" | "en" |
call_tool {"name": "elections_financial_returns_list_elections", "arguments": {}}elections_financial_returns_search_candidates Search federal election candidates on Elections Canada's Political Financing portal, returning each match's client_id, party, and electoral district for use with elections_financial_returns_get_financial_return_part.
Use for finding a specific candidate's internal id before pulling their campaign financial return; browsing candidates by party or province for one election; discovering valid party_id/province_id values via the result's available_parties/available_provinces.
- Keywords
- elections canada, candidate search, political financing, campaign return, client id, party, electoral district, province, financial disclosure
- Mots-clés
- élections canada, recherche de candidats, financement politique, rapport de campagne, identifiant, parti, circonscription, province, divulgation financière
| Parameter | Type | Default |
|---|---|---|
election_id | str | required |
act | str | "after_2019" |
last_name | str | "" |
first_name | str | "" |
party_id | str | "-1" |
province_id | str | "-1" |
district_id | str | "-1" |
return_status | "submitted" | "amended" | "submitted" |
lang | "en" | "fr" | "en" |
call_tool {"name": "elections_financial_returns_search_candidates", "arguments": {"election_id": "…"}}Federal and national
Fisheries and Oceans Canada: tides and water levels
dfo_iwls_
Fisheries and Oceans Canada tides and water levels (Canadian Hydrographic Service IWLS API): search ~1,575 tide stations, station details and datums, observed water levels, water-level predictions, and high/low tide times for any window of up to 7 days.
dfo_iwls_get_station Get one DFO tide station's details: location, region, datums, and available series.
Use for checking whether a station is tidal or a tide-table reference port and converting its chart-datum levels to CGVD2013 or CGVD28 with the datum offsets.
- Keywords
- DFO, tide station, chart datum, CGVD2013, geodetic datum, station metadata, hydrographic, reference port
- Mots-clés
- MPO, station marégraphique, zéro des cartes, CGVD2013, niveau de référence géodésique, métadonnées, port de référence, niveau d'eau
| Parameter | Type | Default |
|---|---|---|
station_code | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "dfo_iwls_get_station", "arguments": {"station_code": "…"}}dfo_iwls_get_water_levels Get tide times, predicted water levels, or observed water levels for one station.
Use for high and low tide times ("wlp-hilo", the default), predicted levels ("wlp"), or official observed levels ("wlo") in metres above chart datum. start/end are ISO dates or UTC datetimes (default: now to +24 h); the window is capped at 7 days. Set resolution (e.g. "SIXTY_MINUTES") to thin minute-level series; it is ignored for high/low tides.
- Keywords
- tides, tide table, high tide, low tide, water level, prediction, observed, DFO, harbour, marine forecast
- Mots-clés
- marées, table des marées, pleine mer, basse mer, niveau d'eau, prédiction, observé, MPO, port, prévision maritime
| Parameter | Type | Default |
|---|---|---|
station_code | str | required |
series_code | str | "wlp-hilo" |
start | str | null | null |
end | str | null | null |
resolution | "ONE_MINUTE" | "FIVE_MINUTES" | "FIFTEEN_MINUTES" | "SIXTY_MINUTES" | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "dfo_iwls_get_water_levels", "arguments": {"station_code": "…"}}dfo_iwls_search_stations Search Canada's ~1,575 tide and water-level stations (Fisheries and Oceans Canada).
Use for finding a station's five-digit code (e.g. "07120" Victoria Harbour) before fetching tides or water levels. query matches the station name, alternative name, or exact code; series_code narrows to stations publishing that series ("wlo" observed, "wlp" predicted, "wlp-hilo" high/low tides). lang="fr" returns French series names.
- Keywords
- DFO, Canadian Hydrographic Service, tide station, tides, water level, harbour, port, coast, marine, tide gauge
- Mots-clés
- MPO, Pêches et Océans, Service hydrographique du Canada, station marégraphique, marées, niveau d'eau, port, côte, marégraphe
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
operating_only | bool | true |
series_code | str | null | null |
limit | int | 20 |
lang | "en" | "fr" | "en" |
call_tool {"name": "dfo_iwls_search_stations", "arguments": {}}Federal and national
Natural Resources Canada: energy use
nrcan_energy_use_
Natural Resources Canada energy-use data (Office of Energy Efficiency): the Comprehensive Energy Use Database (energy use and GHG emissions by sector and province, 2000 onward) and survey tables from the Survey of Household Energy Use (SHEU, SHEU-CMA)…
Full description
Natural Resources Canada energy-use data (Office of Energy Efficiency): the Comprehensive Energy Use Database (energy use and GHG emissions by sector and province, 2000 onward) and survey tables from the Survey of Household Energy Use (SHEU, SHEU-CMA), commercial and institutional buildings (SCIEU), multi-unit residential buildings, arenas, industrial consumption (ICE) and appliance shipments. List a product's tables, then read any table in English or French.
nrcan_energy_use_get_table Read one NRCan energy-use table (header rows, data rows, and notes).
Use for household energy use by region and fuel, energy intensity, GHG emissions by sector and energy source over time, heating system shares, and commercial or industrial energy use. table_key comes from nrcan_energy_use_list_tables. lang="fr" returns NRCan's French table. Survey tables print a quality letter after each value; the legend is in notes.
- Keywords
- NRCan, energy consumption, petajoules, GHG emissions, household energy use survey, heating, natural gas, electricity
- Mots-clés
- RNCan, consommation d'énergie, pétajoules, émissions de GES, enquête sur les ménages, chauffage, gaz naturel, électricité
| Parameter | Type | Default |
|---|---|---|
table_key | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "nrcan_energy_use_get_table", "arguments": {"table_key": "…"}}nrcan_energy_use_list_products List NRCan's energy-use products: the Comprehensive Energy Use Database and energy surveys.
Use for choosing what to read. Surveys: Survey of Household Energy Use (SHEU 2019/2015, also by CMA), multi-unit residential buildings, commercial and institutional buildings (SCIEU), arenas, industrial consumption (ICE), appliance shipments. The comprehensive database covers energy use and GHG emissions by sector and province since 2000.
- Keywords
- NRCan, energy use, energy consumption, household energy survey, SHEU, GHG emissions, energy efficiency, residential, buildings
- Mots-clés
- RNCan, consommation d'énergie, utilisation de l'énergie, enquête sur les ménages, émissions de GES, efficacité énergétique, base de données, énergie
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "nrcan_energy_use_list_products", "arguments": {}}nrcan_energy_use_list_tables List the tables of one NRCan energy-use product, with titles and table keys.
Use for finding a table, e.g. product="sheu_2019" (household space heating, appliances, dwelling characteristics), or product="comprehensive" with sector ("res", "com", "id", "tran", "agr", "agg") and jurisdiction ("ca", "ab", "on", ...). Titles come from NRCan's English menus; read a table in French with nrcan_energy_use_get_table(lang="fr").
- Keywords
- NRCan, energy use tables, household energy, heating, appliances, sector, province, energy database
- Mots-clés
- RNCan, tableaux, consommation d'énergie, chauffage, appareils, secteur, province, base de données
| Parameter | Type | Default |
|---|---|---|
product | str | required |
sector | str | null | null |
jurisdiction | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "nrcan_energy_use_list_tables", "arguments": {"product": "…"}}Federal and national
Public Health Agency of Canada: Health Infobase
phac_infobase_
PHAC Health Infobase: list, describe and query the data files behind the Public Health Agency of Canada's surveillance dashboards (respiratory virus detections and FluWatch+, wastewater, opioid and stimulant harms, supervised consumption sites, substance use surveys, measles…
Full description
PHAC Health Infobase: list, describe and query the data files behind the Public Health Agency of Canada's surveillance dashboards (respiratory virus detections and FluWatch+, wastewater, opioid and stimulant harms, supervised consumption sites, substance use surveys, measles, mpox, tuberculosis, notifiable diseases, vaccine adverse events, chronic disease indicators, archived COVID-19 data), filtered by column values, province and date range, in English or French.
phac_infobase_describe_dataset Describe a PHAC Health Infobase dataset: columns, values, date coverage, last update.
Use for before querying, learning a surveillance file's columns and their most common values (for exact filters), its date range, the provinces or places it covers, when PHAC last updated it, and which suppression markers it uses ("Suppr.", "X", "n/a"; "Mas." and "n.d." in French files). dataset_id comes from phac_infobase_list_datasets; lang="fr" reads the French file when PHAC publishes one (French column names and labels, sometimes decimal commas) and otherwise the English file; file_language says which.
- Keywords
- PHAC, Health Infobase, data dictionary, columns, coverage, last updated, surveillance data, suppressed values, metadata
- Mots-clés
- ASPC, Santé Infobase, dictionnaire de données, colonnes, période couverte, dernière mise à jour, données de surveillance, valeurs supprimées, métadonnées
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "phac_infobase_describe_dataset", "arguments": {"dataset_id": "…"}}phac_infobase_list_datasets List PHAC Health Infobase surveillance datasets (dashboard data files), by topic.
Use for finding public health surveillance data from the Public Health Agency of Canada's Health Infobase dashboards: respiratory virus detections and FluWatch+ (influenza, COVID-19, RSV), wastewater viral load, opioid and stimulant deaths and hospitalizations, supervised consumption sites, substance use surveys, measles, mpox, tuberculosis, notifiable diseases, vaccine adverse events, chronic disease and cancer indicators, archived COVID-19 cases and vaccination. topic is one of respiratory, covid19, wastewater, vaccination, substance_use, infectious_disease, chronic_disease, health_status; query matches words in English or French titles, ignoring case and accents. lang="fr" returns French titles and descriptions for every dataset; languages shows which ones also have a French data file (9 of them), the others are read from the English file. Returns dataset ids for phac_infobase_describe_dataset and phac_infobase_query. The Chronic Disease Surveillance System (CCDSS) data tool has no downloadable file.
- Keywords
- PHAC, Health Infobase, public health surveillance, FluWatch, influenza, COVID-19, RSV, opioid overdose, wastewater, measles, tuberculosis, notifiable diseases
- Mots-clés
- ASPC, Santé Infobase, surveillance de la santé publique, ÉpiGrippe, grippe, influenza, COVID-19, VRS, virus respiratoires, surdoses d'opioïdes, eaux usées, rougeole, tuberculose, maladies à déclaration obligatoire, vaccination
| Parameter | Type | Default |
|---|---|---|
topic | str | null | null |
query | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "phac_infobase_list_datasets", "arguments": {}}phac_infobase_query Query rows of a PHAC Health Infobase dataset by column values, date range and province.
Use for weekly influenza, COVID-19 and RSV percent positive by province, apparent opioid toxicity deaths by province and year, wastewater viral load for a city, measles cases by province, tuberculosis incidence, and similar surveillance series. filters are exact, case-insensitive column matches, e.g. for opioid_stimulant_harms {"Source": "Deaths", "Specific_Measure": "Overall numbers", "Unit": "Number", "Time_Period": "By year"}; geography accepts a province or territory name (English or French), abbreviation (ON, QC) or PRUID code; start/end are YYYY, YYYY-MM, YYYY-MM-DD or YYYY Qn (or Tn) on the dataset's date column. The most recent limit matching rows come back, oldest first. Values are returned as published; suppression markers are listed. lang="fr" reads the French file where one exists, whose column names and values are French (e.g. {"Source": "Mortalité", "Unité": "Nombre", "Période_Temps": "Par année"}; quarters "2025 T3"), so take filter names and values from phac_infobase_describe_dataset called with the same lang. Filters also ignore accents and apostrophe style.
- Keywords
- PHAC, Health Infobase, surveillance time series, weekly cases, percent positivity, overdose deaths, province, wastewater, rates per 100, 000
- Mots-clés
- ASPC, Santé Infobase, séries chronologiques de surveillance, cas hebdomadaires, pourcentage de positivité, taux de positivité, décès par surdose, province, eaux usées, taux pour 100 000
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
filters | dict[str, str] | null | null |
geography | str | null | null |
start | str | null | null |
end | str | null | null |
columns | list[str] | null | null |
limit | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "phac_infobase_query", "arguments": {"dataset_id": "…"}}Federal and national
Recalls and safety alerts
recalls_
Government of Canada recalls and safety alerts (Health Canada, CFIA, Transport Canada): search food, health product, consumer product and vehicle notices by keyword, agency, category, class and date; count them by year or category…
Full description
Government of Canada recalls and safety alerts (Health Canada, CFIA, Transport Canada): search food, health product, consumer product and vehicle notices by keyword, agency, category, class and date; count them by year or category; and get one notice's affected products, lots, hazard and what to do, in English or French.
recalls_get Get one recall or safety alert's full notice: affected products, lots, hazard and what to do.
Use for the details behind a recall_id from recalls_search, such as the affected products table (brand, product, size, UPC, lot or serial numbers, DIN, expiry), the issue and safety risk text, what consumers should do, distribution provinces, recalling companies, recall class and recall date. layout says which page format was read: 'current' pages fill the typed fields; older 'legacy' notices put their header in details and their body in legacy_text. For vehicle notices, agency_reference holds the Transport Canada recall number for tc_recalls_get. lang="fr" reads the French page (untranslated notices come back in English).
- Keywords
- recall details, affected products, lot number, UPC, hazard, what to do, recalling firm, distribution, recall class, safety alert
- Mots-clés
- détails du rappel, produits visés, numéro de lot, code CUP, danger, que faire, entreprise, distribution, classe de rappel, avis de sécurité
| Parameter | Type | Default |
|---|---|---|
recall_id | int | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "recalls_get", "arguments": {"recall_id": "…"}}recalls_search Search Government of Canada recalls and safety alerts (Health Canada, CFIA, Transport Canada).
Use for finding food recalls (allergens, Listeria, Salmonella, E. coli), drug, natural health product and medical device recalls, consumer product recalls (toys, cribs, electronics, cannabis) and vehicle recall notices on recalls-rappels.canada.ca. query matches every word in the title, product, issue, category and organization, ignoring case, accents, plurals and words such as "aux" or "the" (e.g. "peanut cookies", "biscuits aux arachides"). agency and product_type narrow the source; category is a text match on the category (e.g. "Toys", "Dairy"); recall_class is "Class 1" to "Class 3" (CFIA food; "Classe 1" also works) or "Type I" to "Type III" (Health Canada health products). Dates (YYYY-MM-DD) filter on the notice's last-updated date, the same date the site's search uses. Newest first; archived notices are excluded unless include_archived=True. Pass recall_id to recalls_get for affected lots, UPCs and what to do. For vehicle recalls by make, model and year use tc_recalls_search. lang="fr" searches and returns the French text, so with it query and category must be French (e.g. "jouets", "Produits laitiers"); untranslated notices keep an English title and URL.
- Keywords
- recall, safety alert, food recall, allergen, health product recall, drug recall, medical device, consumer product, Health Canada, CFIA, advisory, product safety
- Mots-clés
- rappel, avis de rappel, rappel alimentaire, rappel d'aliments, allergène, rappel de médicament, instrument médical, produit de consommation, rappel de jouets, Santé Canada, ACIA, avis de sécurité, mise en garde, sécurité des produits, retrait du marché
| Parameter | Type | Default |
|---|---|---|
query | str | null | null |
agency | "health_canada" | "cfia" | "transport_canada" | null | null |
product_type | "food" | "health_product" | "consumer_product" | "vehicle" | null | null |
category | str | null | null |
recall_class | str | null | null |
updated_from | str | null | null |
updated_to | str | null | null |
include_archived | bool | false |
limit | int | 25 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "recalls_search", "arguments": {}}recalls_summarize Count Government of Canada recalls and safety alerts by year, agency, product type or category.
Use for statistics such as food recalls per year, allergen recalls by issue (e.g. product_type="food", group_by="issue"), Health Canada recalls by recall class, or which consumer product categories are recalled most. Takes the same filters as recalls_search. year is the last-updated year (the dump has no separate recall date). Unlike recalls_search, archived notices are included by default, so counts cover the full history back to the 1990s; pass include_archived=False to match the site's search. lang="fr" returns French organization, category, issue and class labels (and then takes French query and category text); agency and product_type keys and the "(none)" and "unknown" keys stay as codes.
- Keywords
- recall statistics, recalls per year, count, trend, food recalls, allergen, Health Canada, CFIA, product safety, summary
- Mots-clés
- statistiques de rappels, rappels par année, nombre, tendance, rappels d'aliments, allergène, Santé Canada, ACIA, sécurité des produits, sommaire
| Parameter | Type | Default |
|---|---|---|
group_by | "year" | "agency" | "product_type" | "organization" | "category" | "issue" | "recall_class" | required |
query | str | null | null |
agency | "health_canada" | "cfia" | "transport_canada" | null | null |
product_type | "food" | "health_product" | "consumer_product" | "vehicle" | null | null |
category | str | null | null |
recall_class | str | null | null |
updated_from | str | null | null |
updated_to | str | null | null |
include_archived | bool | true |
top | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "recalls_summarize", "arguments": {"group_by": "…"}}Federal and national
Canada Energy Regulator
cer_
Canada Energy Regulator open data: find CER CSV files (pipeline throughput and capacity, oil/gas/NGL/LNG/refined product exports, pipeline tolls, incidents, refinery runs, Canada's Energy Future projections) and query their rows with column filters and date ranges…
cer_list_datasets Find Canada Energy Regulator datasets and their CSV file URLs.
Use for locating CER data such as "throughput" (pipeline throughput and capacity per pipeline and key point), "exports" (crude oil, natural gas, NGL, LNG, refined products), "tolls", "incident", "refinery", or "energy future" (Canada's Energy Future scenarios). lang="fr" returns the French files and titles.
- Keywords
- CER, Canada Energy Regulator, NEB, pipeline, throughput, capacity, oil exports, natural gas exports, LNG, tolls, incidents
- Mots-clés
- Régie de l'énergie du Canada, ONE, pipeline, débit, capacité, exportations de pétrole, gaz naturel, GNL, droits, incidents
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
limit | int | 10 |
lang | "en" | "fr" | "en" |
call_tool {"name": "cer_list_datasets", "arguments": {}}cer_query_file Read rows from one Canada Energy Regulator CSV file with filters and a date range.
Use for pipeline throughput vs capacity over time (e.g. filters {"Key Point": "International boundary at or near Haskett, Manitoba"}), export volumes by year, or tolls by pipeline. url comes from cer_list_datasets; filters match column values exactly (case-insensitive); start/end are YYYY or YYYY-MM-DD on the file's Date/Year column; the most recent limit rows come back. The file's own language decides the column names.
- Keywords
- CER, pipeline throughput, capacity utilization, exports, volumes, tolls, time series, CSV, oil, natural gas
- Mots-clés
- Régie de l'énergie, débit des pipelines, taux d'utilisation, exportations, volumes, droits, séries chronologiques, pipelines, gaz naturel
| Parameter | Type | Default |
|---|---|---|
url | str | required |
filters | dict[str, str] | null | null |
columns | list[str] | null | null |
start | str | null | null |
end | str | null | null |
limit | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "cer_query_file", "arguments": {"url": "…"}}Federal and national
GC InfoBase
gc_infobase_
GC InfoBase (Treasury Board Secretariat): federal spending and results open datasets.
Full description
GC InfoBase (Treasury Board Secretariat): federal spending and results open datasets. List the files (Main Estimates, Public Accounts authorities and expenditures by vote, standard object and transfer payment, planned and actual spending and FTEs by program, results indicators, federal organizations) and query rows by organization, fiscal year and column values, in English or French.
gc_infobase_list_files List GC InfoBase's federal spending and results files (Treasury Board Secretariat).
Use for finding the file for Main Estimates, Public Accounts (authorities and expenditures by vote, standard object, transfer payments), planned vs actual spending and FTEs by program, departmental results indicators, or the inventory of federal organizations. query filters names; lang="fr" returns the French files.
- Keywords
- GC InfoBase, federal spending, Public Accounts, Main Estimates, departmental results, FTE, programs, Treasury Board
- Mots-clés
- InfoBase du GC, dépenses fédérales, Comptes publics, Budget principal des dépenses, résultats ministériels, ETP, programmes, budget fédéral
| Parameter | Type | Default |
|---|---|---|
query | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "gc_infobase_list_files", "arguments": {}}gc_infobase_query Query rows of one GC InfoBase file by organization, fiscal year, and column values.
Use for a department's authorities and expenditures, transfer payments, program spending and FTEs, or results targets, e.g. organization="Canada Revenue Agency", fiscal_year="2023-24". organization is a substring match; fiscal_year matches the start year whatever the file's format ("2023-24", "2023-2024", "FY 2023-24"); filters are exact column matches. resource_id comes from gc_infobase_list_files; use a French file for French column names.
- Keywords
- federal spending, department budget, expenditures, authorities, transfer payments, program spending, FTE, public accounts
- Mots-clés
- dépenses fédérales, budget ministériel, autorisations, paiements de transfert, dépenses de programme, ETP, comptes publics, InfoBase du GC
| Parameter | Type | Default |
|---|---|---|
resource_id | str | required |
organization | str | null | null |
fiscal_year | str | null | null |
filters | dict[str, str] | null | null |
columns | list[str] | null | null |
limit | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "gc_infobase_query", "arguments": {"resource_id": "…"}}Federal and national
Natural Resources Canada: geolocation and place names
nrcan_geo_
Natural Resources Canada geolocation and place names: locate a place, address or postal code (Geolocator), and search the Canadian Geographical Names Database for official names of cities, lakes, rivers, mountains and parks by text, province, feature type…
Full description
Natural Resources Canada geolocation and place names: locate a place, address or postal code (Geolocator), and search the Canadian Geographical Names Database for official names of cities, lakes, rivers, mountains and parks by text, province, feature type, point radius or bounding box, in English or French.
nrcan_geo_locate Geocode a Canadian place, street address, or postal code to coordinates (NRCan Geolocator).
Use for turning "111 Wellington St Ottawa", "K1A 0A9", or "Parliament Hill" into latitude/longitude, province, and bounding box, e.g. before a spatial query elsewhere. lang="fr" returns French names and categories.
- Keywords
- geocode, geolocation, address lookup, postal code, FSA, coordinates, latitude longitude, NRCan, geo.ca, place search
- Mots-clés
- géocodage, géolocalisation, adresse, code postal, RTA, coordonnées, latitude longitude, RNCan, recherche de lieu
| Parameter | Type | Default |
|---|---|---|
query | str | required |
limit | int | 10 |
lang | "en" | "fr" | "en" |
call_tool {"name": "nrcan_geo_locate", "arguments": {"query": "…"}}nrcan_geo_search_names Search the Canadian Geographical Names Database for official place names.
Use for official names and locations of cities, towns, lakes, rivers, mountains, parks and other features. Combine query (name text), province ("AB" or SGC code "48"), feature_type (e.g. "CITY", "TOWN", "LAKE", "RIV", "MTN"), a point with radius_km, or bbox [west, south, east, north]. lang="fr" returns French feature types.
- Keywords
- place names, toponymy, gazetteer, geographical names, lake, river, mountain, official name, NRCan, CGNDB
- Mots-clés
- noms géographiques, toponymie, répertoire toponymique, lac, rivière, montagne, nom officiel, RNCan, BDTC
| Parameter | Type | Default |
|---|---|---|
query | str | null | null |
province | str | null | null |
feature_type | str | null | null |
latitude | float | null | null |
longitude | float | null | null |
radius_km | float | null | null |
bbox | list[float] | null | null |
limit | int | 10 |
lang | "en" | "fr" | "en" |
call_tool {"name": "nrcan_geo_search_names", "arguments": {}}Federal and national
Parliamentary Budget Officer
pbo_
Office of the Parliamentary Budget Officer (pbo-dpb.ca, tools prefixed pbo_): search PBO's 860+ publications (reports, notes, legislative costing notes, cost estimates of bills and motions, archived work since 2008) and read one with its tables: cost estimates over five years…
Full description
Office of the Parliamentary Budget Officer (pbo-dpb.ca, tools prefixed pbo_): search PBO's 860+ publications (reports, notes, legislative costing notes, cost estimates of bills and motions, archived work since 2008) and read one with its tables: cost estimates over five years, economic and fiscal projections, Estimates analysis. Tables come from PBO's structured PBOML documents, present for costing notes since 2021 and most reports since 2025; older items link to their PDF only. Use is personal and non-commercial, unaltered, with attribution to PBO.
pbo_get_publication Read one PBO publication with its tables and text.
Use for getting the numbers in a PBO costing or report: five-year cost estimates of a measure, projected revenues and spending, economic projections (GDP, unemployment, interest rates), Estimates breakdowns. publication_id is PBO's id, e.g. 'LEG-2526-012-S' or 'RP-2627-002-S', from pbo_search_publications. Tables come from PBO's structured PBOML document: 'table' ones have rows keyed by column label, 'html' ones rows of cells, 'kvlist' ones key/value pairs, each with sources and notes. Costing notes since 2021 and most reports since 2025 have them; older publications return has_structured_content false and a PDF link. Charts are images without data. Reuse is personal and non-commercial, unaltered, crediting PBO.
- Keywords
- PBO tables, cost estimate figures, costing results, fiscal impact, revenue projection, spending projection, economic projection, Parliamentary Budget Officer
- Mots-clés
- tableaux du DPB, estimation des coûts, incidence financière, projection des revenus, projection des dépenses, projection économique, directeur parlementaire du budget, résultats de l'évaluation
| Parameter | Type | Default |
|---|---|---|
publication_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "pbo_get_publication", "arguments": {"publication_id": "…"}}pbo_search_publications Search Parliamentary Budget Officer (PBO) publications.
Use for finding PBO's independent cost estimates of bills, motions and budget measures, legislative costing notes, economic and fiscal outlooks, reports on the Estimates, federal spending, program costs, tax changes and the public service. With a query, PBO's own search ranks results; without one, the newest come first. types keeps some kinds: RP report, NT note, LEG legislative costing note, ES cost estimate, OA additional analysis, LIBARC archived (2008-2021). 15 per page. Pass a result's id to pbo_get_publication for its tables.
- Keywords
- Parliamentary Budget Officer, PBO, cost estimate, costing note, fiscal cost, bill costing, economic and fiscal outlook, federal budget analysis, Estimates, fiscal sustainability
- Mots-clés
- directeur parlementaire du budget, DPB, estimation des coûts, note d'évaluation, coût financier, projet de loi, perspectives économiques et financières, budget fédéral, budget des dépenses, viabilité financière
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
types | list["RP" | "NT" | "LEG" | "ES" | "OA" | "LIBARC"] | null | null |
page | int | 1 |
lang | "en" | "fr" | "en" |
call_tool {"name": "pbo_search_publications", "arguments": {}}Federal and national
Senate of Canada votes
senate_
Senate of Canada recorded votes from sencanada.ca: votes by session with totals and related bill, and how each senator voted.
senate_get_vote Get how each senator voted on one Senate vote.
Use for every senator's yea, nay or abstention, with their group (ISG, CSG, PSG, Conservative) and province. vote_id and session come from senate_list_votes.
- Keywords
- senator vote, Senate ballot, how did senators vote, Senate group, ISG, CSG, PSG, abstention
- Mots-clés
- vote des sénateurs, Sénat, groupe sénatorial, abstention, appel nominal, GSI, GSC, GPS
| Parameter | Type | Default |
|---|---|---|
vote_id | int | required |
session | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "senate_get_vote", "arguments": {"vote_id": "…", "session": "…"}}senate_list_votes List recorded votes in the Senate of Canada for one session, newest first.
Use for Senate votes on a bill (bill like 'C-6' or 'S-205'), votes whose title contains a word, or all votes in a session (like '45-1', default current; sessions from 42-1), with yeas, nays, abstentions and result. House of Commons votes are parliament_search_votes.
- Keywords
- Senate vote, senators, recorded division, Senate of Canada, upper chamber, third reading, bill, adopted
- Mots-clés
- vote au Sénat, sénateurs, appel nominal, Sénat du Canada, chambre haute, troisième lecture, projet de loi, adopté
| Parameter | Type | Default |
|---|---|---|
session | str | null | null |
keyword | str | null | null |
bill | str | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "senate_list_votes", "arguments": {}}Federal and national
Transport Canada: vehicle recalls
tc_recalls_
Transport Canada motor vehicle safety recalls: search recalls by make, model and model year, and get a recall's full summary (issue, safety risk, corrective action, units affected, affected models and years) in English or French.
tc_recalls_get Get one Transport Canada vehicle recall: its description, units, and vehicles.
Use for the details behind a recall number from tc_recalls_search (e.g. "2021001"), including the affected makes, models and years. description is Transport Canada's single text covering the issue, the safety risk and the corrective action. lang="fr" returns the French category, system and description.
- Keywords
- recall details, safety risk, corrective action, units affected, Transport Canada, vehicle defect, notification, recall
- Mots-clés
- détails du rappel, risque pour la sécurité, mesure corrective, unités touchées, Transports Canada, défaut du véhicule, rappel, véhicule
| Parameter | Type | Default |
|---|---|---|
recall_number | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "tc_recalls_get", "arguments": {"recall_number": "…"}}tc_recalls_search Search Transport Canada motor vehicle safety recalls by make, model, and model year.
Use for checking whether a vehicle has recalls, e.g. make="Honda", model="Civic", year_from=2019, year_to=2020. Results are oldest first, so give a model-year range or page through with page. Pass a recall number to tc_recalls_get for details.
- Keywords
- vehicle recall, car recall, Transport Canada, safety recall, make, model, model year, defect, motor vehicle
- Mots-clés
- rappel de véhicule, rappel automobile, Transports Canada, rappel de sécurité, marque, modèle, année-modèle, défaut
| Parameter | Type | Default |
|---|---|---|
make | str | null | null |
model | str | null | null |
year_from | int | null | null |
year_to | int | null | null |
limit | int | 50 |
page | int | 1 |
lang | "en" | "fr" | "en" |
call_tool {"name": "tc_recalls_search", "arguments": {}}Federal and national
Borealis: Beyond 20/20 tables
borealis_search_ivt
Beyond 20/20 (.ivt) statistical tables on Borealis, the Canadian Dataverse Repository (borealisdata.ca, tools prefixed borealis_): about 3,300 IVT files deposited by Canadian university libraries…
Full description
Beyond 20/20 (.ivt) statistical tables on Borealis, the Canadian Dataverse Repository (borealisdata.ca, tools prefixed borealis_): about 3,300 IVT files deposited by Canadian university libraries, mostly Statistics Canada data that exists only in this format: historical censuses 1665-1871, Census of Population tabulations 1996-2021, Census of Agriculture 2001, the Labour Force Historical Review 1997-2008, Canadian Business Patterns and Business Counts, justice surveys and HART housing tabulations. Search by words in the dataset or file name; each hit returns its download URL, size, whether it needs a Borealis login, and an R snippet that reads it with canivt. StatCan's own 2006-2016 census tables are covered by statcan_census_tables_.
borealis_search_ivt Find Beyond 20/20 (.ivt) statistical tables on Borealis, with R code to read them.
Use for Statistics Canada tables that exist only as Beyond 20/20 files and were deposited on Borealis (the Canadian Dataverse) by university libraries: historical censuses 1665-1871, Census of Population tabulations 1996-2021, Census of Agriculture 2001, the Labour Force Historical Review 1997-2008, Canadian Business Patterns and Business Counts, justice surveys, HART housing tabulations. Every word of the query must match the dataset or file. Each hit gives the download URL, size, whether a Borealis login is needed, and an R snippet using canivt (mountainMath), the only maintained IVT reader. An empty query lists IVT files by relevance. lang has no effect; dataset titles are as deposited (English or French).
- Keywords
- Beyond 20/20, IVT, Borealis, Dataverse, Data Liberation Initiative, historical census, Canadian Business Patterns, Labour Force Historical Review, canivt, custom tabulation
- Mots-clés
- Beyond 20/20, IVT, Borealis, Dataverse, Initiative de démocratisation des données, recensement historique, Structure des industries canadiennes, Revue chronologique de la population active, totalisation personnalisée
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
limit | int | 20 |
lang | "en" | "fr" | "en" |
call_tool {"name": "borealis_search_ivt", "arguments": {}}Federal and national
CRA digital economy registry
cra_digital_economy_registry_search
CRA's public registry of digital economy businesses (cross-border digital products/services, platform-based short-term accommodation) registered for the simplified GST/HST under the Excise Tax Act (canada.ca, not CKAN).
Full description
CRA's public registry of digital economy businesses (cross-border digital products/services, platform-based short-term accommodation) registered for the simplified GST/HST under the Excise Tax Act (canada.ca, not CKAN). Search by legal name, trade name, or business number to confirm whether a business may charge GST/HST under the simplified regime.
cra_digital_economy_registry_search Search CRA's public registry of digital economy businesses registered for the simplified GST/HST (cross-border digital products/services and platform-based short-term accommodation), by legal name, trade name, or business number. Leave query empty to see the full registry size.
Use for confirming whether a foreign digital-economy business (an app store, streaming service, short-term rental platform) is registered to charge GST/HST under the simplified regime; looking up a business's registration or de-registration date by name or business number.
- Keywords
- CRA, GST, HST, digital economy, simplified GST/HST, registrant, registry, cross-border, platform, short-term accommodation, business number, tax registration
- Mots-clés
- ARC, TPS, TVH, économie numérique, TPS/TVH simplifiée, inscrit, registre, transfrontalier, plateforme, hébergement de courte durée, numéro d'entreprise, inscription fiscale
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
lang | "en" | "fr" | "en" |
call_tool {"name": "cra_digital_economy_registry_search", "arguments": {}}Federal and national
Competition Bureau: merger reviews
competition_bureau_search_mergers
Competition Bureau Canada merger reviews (competition-bureau.canada.ca, tools prefixed competition_bureau_): every merger review the Bureau reports, from the weekly report (about 830 reviews opened since November 2023…
Full description
Competition Bureau Canada merger reviews (competition-bureau.canada.ca, tools prefixed competition_bureau_): every merger review the Bureau reports, from the weekly report (about 830 reviews opened since November 2023, ongoing and concluded) and the archived monthly report (about 1,725 reviews concluded January 2015 to April 2023). Each review has the parties, opened and concluded dates (month only in the archive), the NAICS industry code and the outcome: advance ruling certificate, no action letter, consent agreement, judicial decision, abandoned, other, or ongoing. Search by party name, NAICS prefix, outcome and date. Parties may ask to keep a transaction off the report, and May-October 2023 is covered by neither page.
competition_bureau_search_mergers Search Competition Bureau Canada merger reviews, 2015 to this week.
Use for which mergers and acquisitions the Competition Bureau reviewed and how each ended: advance ruling certificate (ARC), no action letter (NAL), consent agreement (CA), judicial decision (JD), abandoned (TA), other, or still ongoing. Filter by party name (every word must appear), NAICS industry prefix (e.g. '2111' oil and gas extraction, '52' finance), outcome, and concluded month range (YYYY-MM). Covers the weekly report (reviews opened since November 2023, with opened and concluded dates) and the archived report (concluded January 2015 to April 2023, month only). Returns newest first, with outcome counts for all matches. Not every merger: parties may ask to keep one off the report, and May-October 2023 is missing. lang sets the outcome labels.
- Keywords
- merger review, acquisition, Competition Bureau, antitrust, competition law, advance ruling certificate, no action letter, consent agreement, NAICS, M&A, concentration
- Mots-clés
- examen de fusion, acquisition, Bureau de la concurrence, droit de la concurrence, certificat de décision préalable, lettre de non-intervention, consentement, SCIAN, fusions et acquisitions
| Parameter | Type | Default |
|---|---|---|
party | str | "" |
naics | str | null | null |
outcome | "ARC" | "NAL" | "CA" | "JD" | "TA" | "Other" | "Ongoing" | null | null |
concluded_from | str | null | null |
concluded_to | str | null | null |
include_ongoing | bool | true |
limit | int | 25 |
lang | "en" | "fr" | "en" |
call_tool {"name": "competition_bureau_search_mergers", "arguments": {}}Federal and national
Earthquakes Canada
earthquakes_search
Earthquakes Canada (Natural Resources Canada) event catalogue: search earthquakes in and near Canada by date range, magnitude, region box or distance from a point, or look one up by event ID.
earthquakes_search Search Earthquakes Canada (NRCan) for earthquakes in and near Canada.
Use for recent or historical earthquakes by date range (YYYY-MM-DD, default the last 30 days), magnitude, distance from a point (latitude, longitude, radius_km, e.g. near Vancouver), or a [west, south, east, north] bbox. Pass event_id alone for one event. Results are most recent first, with time (UTC), location, depth and magnitude. Use nrcan_geo_locate to turn a place into coordinates.
- Keywords
- earthquake, seismic event, tremor, quake, magnitude, epicentre, Earthquakes Canada, NRCan, seismology
- Mots-clés
- séisme, tremblement de terre, secousse, magnitude, épicentre, Séismes Canada, RNCan, sismologie
| Parameter | Type | Default |
|---|---|---|
start | str | null | null |
end | str | null | null |
min_magnitude | float | null | null |
max_magnitude | float | null | null |
latitude | float | null | null |
longitude | float | null | null |
radius_km | float | null | null |
bbox | list[float] | null | null |
event_id | str | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "earthquakes_search", "arguments": {}}Federal and national
Natural Resources Canada: burned areas
nrcan_nbac_query_fires
Natural Resources Canada's National Burned Area Composite (NBAC): fire polygons, reported/adjusted start and end dates, and adjusted burned area (hectares) for every mapped fire event in Canada since 1972, filterable by year, province/territory…
Full description
Natural Resources Canada's National Burned Area Composite (NBAC): fire polygons, reported/adjusted start and end dates, and adjusted burned area (hectares) for every mapped fire event in Canada since 1972, filterable by year, province/territory, and fire id via an OGC WFS 2.0 CQL_FILTER query.
nrcan_nbac_query_fires Query mapped fire polygons/records from Natural Resources Canada's NBAC.
Use for wildfire start/end dates, adjusted burned area (hectares), fire cause, and (optionally) fire polygon geometry, for any fire event mapped in Canada since 1972. Filter with a standard OGC CQL expression against NBAC's own field names, e.g. "admin_area = 'BC' AND year >= 2017 AND year <= 2024" to get every mapped BC fire from 2017 to 2024. Leave include_geometry false (the default) unless you specifically need the fire polygons -- NBAC's geometry can be large.
- Keywords
- NRCan, National Burned Area Composite, NBAC, wildfire, forest fire, burned area, fire polygon, hectares burned, CWFIS, fire perimeter, fire season, prescribed burn
- Mots-clés
- RNCan, Composite national des zones brûlées, CNZB, feu de forêt, incendie, superficie brûlée, polygone d'incendie, hectares brûlés, SCIF, périmètre d'incendie, saison des feux, brûlage dirigé
| Parameter | Type | Default |
|---|---|---|
cql_filter | str | null | null |
include_geometry | bool | false |
sort_by | str | null | null |
limit | int | 20 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "nrcan_nbac_query_fires", "arguments": {}}Provincial · Alberta
Alberta Economic Dashboard
ab_economic_
Alberta Economic Dashboard (Government of Alberta): list its ~260 curated economic data tables, inspect a table's columns and filter values, fetch filtered time series (labour, CPI, GDP, energy, exports, housing, population, business)…
Full description
Alberta Economic Dashboard (Government of Alberta): list its ~260 curated economic data tables, inspect a table's columns and filter values, fetch filtered time series (labour, CPI, GDP, energy, exports, housing, population, business), and browse the dashboard's key-indicator catalogue with last-update dates. English-only content.
ab_economic_get_data Get time-series rows from an Alberta Economic Dashboard table.
Use for Alberta unemployment, employment, wages, CPI, GDP, exports, energy production, housing and population series. Pass a table and filters from ab_economic_get_indicator_series (preferred), or column values from ab_economic_get_table_fields, e.g. table="UnemploymentRates_14100287", filters={"GeoName": "Alberta", "Sex": "Both sexes", "Age": "15 years and over"}. Dates are inclusive ISO dates; the most recent limit rows (max 2000) come back oldest first.
- Keywords
- Alberta, economic data, time series, unemployment rate, inflation, GDP, exports, oil production, Calgary, Edmonton
- Mots-clés
- Alberta, données économiques, séries chronologiques, taux de chômage, inflation, PIB, exportations, production pétrolière
| Parameter | Type | Default |
|---|---|---|
table | str | required |
filters | dict[str, str] | null | null |
start_date | str | null | null |
end_date | str | null | null |
limit | int | 120 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ab_economic_get_data", "arguments": {"table": "…"}}ab_economic_get_indicator_series Get the official API series published on one Alberta Economic Dashboard indicator page.
Use for the recommended route to Alberta data. Each indicator page (e.g. "Unemployment Rate", "Housing Starts", "Farm Cash Receipts") publishes named API links such as "Unemployment rate in Alberta" or "... by Industry"; each comes back as a table plus filters to pass straight to ab_economic_get_data.
- Keywords
- Alberta, economic dashboard, indicator, API, series, official data link, unemployment, housing starts, CPI
- Mots-clés
- Alberta, tableau de bord économique, indicateur, API, série, lien de données officiel, chômage, mises en chantier
| Parameter | Type | Default |
|---|---|---|
indicator | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ab_economic_get_indicator_series", "arguments": {"indicator": "…"}}ab_economic_get_table_fields Get an Alberta Economic Dashboard table's columns and their filter values.
Use for learning which columns (GeoName, Sex, Age, Industry, ...) and values to pass as filters to ab_economic_get_data, plus the indicator's name and frequency.
- Keywords
- Alberta, economic dashboard, table schema, columns, dimensions, filter values, metadata, field names
- Mots-clés
- Alberta, tableau de bord économique, structure du tableau, colonnes, dimensions, valeurs de filtre, métadonnées, noms de champs
| Parameter | Type | Default |
|---|---|---|
table | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ab_economic_get_table_fields", "arguments": {"table": "…"}}ab_economic_list_indicators List the Alberta Economic Dashboard's key indicators by topic, with last-update dates.
Use for seeing what Alberta's government tracks (agriculture, consumer spending, construction, energy, jobs, business, exports, productivity, population, GDP) and what was updated recently. Then get an indicator's published series with ab_economic_get_indicator_series.
- Keywords
- Alberta, economic dashboard, key indicators, economy, latest data, Government of Alberta, snapshot, updates
- Mots-clés
- Alberta, tableau de bord économique, indicateurs clés, économie, données récentes, gouvernement de l'Alberta, mises à jour, indicateurs économiques
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "ab_economic_list_indicators", "arguments": {}}ab_economic_list_tables List or search the Alberta Economic Dashboard's ~260 data tables.
Use for finding the table behind an Alberta indicator, e.g. query="Unemployment", "CPI", "AESO", "RigCount", "Exports", or a StatCan table number such as "14100287". Names ending in an 8-10 digit number mirror that StatCan table with Alberta-focused cuts.
- Keywords
- Alberta, economic data, tables, labour force, CPI, exports, energy, housing starts, population, rig count
- Mots-clés
- Alberta, données économiques, tableaux, population active, IPC, exportations, énergie, mises en chantier, population
| Parameter | Type | Default |
|---|---|---|
query | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "ab_economic_list_tables", "arguments": {}}Provincial · Alberta
Alberta Energy Regulator
aer_
Alberta Energy Regulator (AER) statistical reports (www.aer.ca): ST1 daily well-licence lists (raw report text) and monthly/yearly archive links, and ST3 monthly production-volume/price XLSX download links (butane, ethane, gas, NGL, oil, propane, sulphur, oil prices).
Full description
Alberta Energy Regulator (AER) statistical reports (www.aer.ca): ST1 daily well-licence lists (raw report text) and monthly/yearly archive links, and ST3 monthly production-volume/price XLSX download links (butane, ethane, gas, NGL, oil, propane, sulphur, oil prices). Distinct from open.alberta.ca's CKAN catalogue already covered by ckan_* (portal="ab").
aer_get_production_volumes_link Resolve AER's ST3 current-month production-volume/price XLSX download link for one product, confirming it exists.
Use for getting the latest monthly Alberta oil, gas, NGL or sulphur production spreadsheet, or AER's oil price workbook.
- Keywords
- Alberta, AER, ST3, production volumes, oil, gas, NGL, butane, ethane, propane, sulphur, oil prices, monthly statistics, energy resource industry
- Mots-clés
- Alberta, AER, ST3, volumes de production, pétrole, gaz, LGN, butane, éthane, propane, soufre, prix du pétrole, statistiques mensuelles, industrie énergétique
| Parameter | Type | Default |
|---|---|---|
product | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "aer_get_production_volumes_link", "arguments": {"product": "…"}}aer_get_well_licence_archive_link Resolve AER's ST1 well-licence archive ZIP download link for a given year (or one month of the current year), confirming it exists.
Use for finding the download for historical Alberta well licences by year or month, for bulk analysis outside this server.
- Keywords
- Alberta, AER, well licence archive, ST1, historical well licences, ZIP, oil and gas history, monthly archive, yearly archive
- Mots-clés
- Alberta, AER, archive des permis de puits, ST1, permis historiques, archive mensuelle, archive annuelle, pétrole et gaz
| Parameter | Type | Default |
|---|---|---|
year | int | required |
month | int | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "aer_get_well_licence_archive_link", "arguments": {"year": "…"}}aer_get_well_licences_daily Fetch AER's ST1 "Well Licences Issued - Daily List" report text for one weekday of the current week (well name, licence number, unique identifier, licensee, substance, field, and more, per licence).
Use for which new oil and gas wells AER licensed on a given day this week, and who the licensee is.
- Keywords
- Alberta, AER, Alberta Energy Regulator, ST1, well licence, well licences issued, oil and gas, drilling, licensee, daily report, mineral rights, field
- Mots-clés
- Alberta, AER, Alberta Energy Regulator, ST1, permis de puits, permis délivrés, pétrole et gaz, forage, titulaire de permis, rapport quotidien, droits miniers, champ
| Parameter | Type | Default |
|---|---|---|
day | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "aer_get_well_licences_daily", "arguments": {}}Provincial · British Columbia
BC Geographic Warehouse
bcgw_
BC Geographic Warehouse (BCGW), British Columbia's public geospatial data service (openmaps.gov.bc.ca), via standard OGC WFS 2.0: current wildfire perimeters/status, mining tenure (mineral/placer claims) by owner or area…
Full description
BC Geographic Warehouse (BCGW), British Columbia's public geospatial data service (openmaps.gov.bc.ca), via standard OGC WFS 2.0: current wildfire perimeters/status, mining tenure (mineral/placer claims) by owner or area, and a generic layer-query tool reaching any of BCGW's thousands of layers by type_name (discoverable via ckan_* with portal="bc").
bcgw_get_active_wildfires Query current BC wildfire perimeters and status from the BC Wildfire Service's mapped fire layer.
Use for checking active/recent wildfire status, size in hectares, and mapped perimeter for any fire tracked by the BC Wildfire Service. status is free text matched against real values like "Out of Control", "Being Held", "Under Control", "Out" -- there is no fixed enum. Leave include_geometry false unless the fire polygon itself is needed.
- Keywords
- British Columbia, BC, wildfire, forest fire, fire perimeter, fire status, fire centre, hectares burned, BC Wildfire Service, active fire, out of control, being held
- Mots-clés
- Colombie-Britannique, feu de forêt, incendie, périmètre d'incendie, statut du feu, hectares brûlés, service des incendies de forêt, feu actif, hors de contrôle, maîtrisé
| Parameter | Type | Default |
|---|---|---|
status | str | null | null |
fire_year | int | null | null |
min_size_hectares | float | null | null |
include_geometry | bool | false |
limit | int | 20 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "bcgw_get_active_wildfires", "arguments": {}}bcgw_get_mining_tenure Query acquired BC mineral/placer mining tenure (claims) by type, owner, or minimum area.
Use for mining rights research, resource-extraction analysis, and prospecting-zone identification -- claim name, tenure type (mineral/placer), owner, area in hectares, issue/expiry dates. tenure_type is "mineral" or "placer". owner_name does a substring match (case-insensitive from the caller's side).
- Keywords
- British Columbia, BC, mining, mineral tenure, placer claim, mining claim, prospecting, mining rights, owner, hectares, tenure number, resource extraction
- Mots-clés
- Colombie-Britannique, exploitation minière, titre minier, claim de placer, droits miniers, propriétaire, hectares, numéro de titre, prospection, extraction de ressources
| Parameter | Type | Default |
|---|---|---|
tenure_type | str | null | null |
owner_name | str | null | null |
min_area_hectares | float | null | null |
include_geometry | bool | false |
limit | int | 20 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "bcgw_get_mining_tenure", "arguments": {}}bcgw_query_layer Query any BC Geographic Warehouse (BCGW) layer directly by its type_name (e.g. "WHSE_LAND_AND_NATURAL_RESOURCE.PROT_RESTRICTED_AREAS_SP"), for any dataset not covered by a curated bcgw_* tool.
Use for pulling features from any BC government map layer (parks, land status, forestry, environment and more) with a CQL filter.
- Keywords
- British Columbia, BC, BCGW, BC Geographic Warehouse, WFS, geospatial, layer, feature, CQL filter, data catalogue, generic query, openmaps
- Mots-clés
- Colombie-Britannique, entrepôt géographique, WFS, géospatial, couche, entité, filtre CQL, catalogue de données, requête générique
| Parameter | Type | Default |
|---|---|---|
type_name | str | required |
cql_filter | str | null | null |
property_names | str | null | null |
include_geometry | bool | false |
sort_by | str | null | null |
limit | int | 20 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "bcgw_query_layer", "arguments": {"type_name": "…"}}Provincial · Quebec
Institut de la statistique du Québec
isq_
Institut de la statistique du Québec (statistique.quebec.ca, tools prefixed isq_): search about 7,000 detailed tables and read one.
Full description
Institut de la statistique du Québec (statistique.quebec.ca, tools prefixed isq_): search about 7,000 detailed tables and read one. Most are ISQ's own data found nowhere else: Québec health surveys (youth, care experience), the culture and communications observatory (cinema, performing arts, books, music), arts council statistics, investment and R&D surveys, income and population by MRC and municipality, plus ISQ tabulations of StatCan data for Québec. Labels are mostly French; values keep ISQ's flags (r revised, p provisional, x confidential, F unreliable).
isq_get_table Read one Institut de la statistique du Québec table: metadata and data.
Use for getting the values of a table found with isq_search_tables. table is the page slug, the ISQ table number, or the page URL; lang picks which language's page a slug belongs to (French by default, since every table has a French page). Dynamic tables return rows, one dict per row keyed by column label (header levels joined with ' / ', e.g. '2025' or 'Moins de 1 verre / (%)'), numbers parsed from French format, and flags with ISQ's signs per value (r revised, p provisional, x confidential, F unreliable; see flag_legend), plus the table's notes and sources. Static tables return cells as published and an Excel link. Page through long tables with offset and max_rows.
- Keywords
- Quebec table data, ISQ values, time series, regional statistics, survey estimates, confidence interval, MRC data, Quebec statistics
- Mots-clés
- données du tableau, ISQ, valeurs, série chronologique, statistiques régionales, estimations d'enquête, intervalle de confiance, MRC
| Parameter | Type | Default |
|---|---|---|
table | str | required |
offset | int | 0 |
max_rows | int | 200 |
lang | "en" | "fr" | "fr" |
call_tool {"name": "isq_get_table", "arguments": {"table": "…"}}isq_search_tables Search the Institut de la statistique du Québec's detailed tables.
Use for finding Québec statistics ISQ publishes and StatCan does not: regional and MRC or municipal data (population, disposable income), Québec health surveys (youth in secondary school, care experience), culture and communications (cinema attendance, performing arts, books, music, visual arts), arts council grants, investment and R&D surveys, agriculture, and ISQ tabulations of StatCan data for Québec. Matches every word of query (French or English, accents optional) against about 7,000 table page names. lang 'fr' or 'en' keeps one language's pages (many tables are French only). Pass a result's table to isq_get_table.
- Keywords
- Quebec statistics, ISQ, regional data, MRC, administrative region, health survey, culture statistics, cinema, disposable income, Québec tables
- Mots-clés
- statistiques du Québec, ISQ, Institut de la statistique, données régionales, MRC, région administrative, enquête de santé, statistiques de la culture, cinéma, revenu disponible, tableaux
| Parameter | Type | Default |
|---|---|---|
query | str | required |
lang | "en" | "fr" | "all" | "all" |
limit | int | 25 |
call_tool {"name": "isq_search_tables", "arguments": {"query": "…"}}Municipal · Alberta
Edmonton Police Service
eps_
Edmonton Police Service Community Safety Data Portal: reported occurrences (violent, property, disorder, drugs, weapons, traffic) by date, category, and nearest intersection
Full description
Edmonton Police Service Community Safety Data Portal: reported occurrences (violent, property, disorder, drugs, weapons, traffic) by date, category, and nearest intersection -- a rolling ~12 months plus calendar 2023 -- with filtered listings, grouped counts, and the portal's last refresh date.
eps_get_last_load_date Return the date the Edmonton Police Service last refreshed its Community Safety Data Portal occurrence data (EPS's own load record).
Use for checking how current EPS crime data is before analysing it.
- Keywords
- Edmonton, police, EPS, data freshness, last updated, refresh date, community safety, crime data, load date
- Mots-clés
- Edmonton, police, SPE, fraîcheur des données, dernière mise à jour, date d'actualisation, sécurité communautaire, données sur la criminalité
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "eps_get_last_load_date", "arguments": {}}eps_list_occurrences List individual Edmonton Police Service reported occurrences, newest first: reported date, category, group, type, nearest intersection, and WGS84 longitude/latitude.
Use for crime incidents near a street, recent assaults or break-ins in Edmonton, building a crime map.
- Keywords
- Edmonton, police, EPS, crime, occurrences, incidents, assault, theft, break and enter, property crime, community safety, crime map, intersection
- Mots-clés
- Edmonton, police, SPE, criminalité, incidents, infractions, voies de fait, vol, introduction par effraction, sécurité communautaire, carte de la criminalité, intersection
| Parameter | Type | Default |
|---|---|---|
dataset | "current" | "2023" | "current" |
category | str | null | null |
group | str | null | null |
type_group | str | null | null |
start_date | str | null | null |
end_date | str | null | null |
intersection_contains | str | null | null |
limit | int | 50 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "eps_list_occurrences", "arguments": {}}eps_summarize_occurrences Count Edmonton Police Service reported occurrences grouped by "category", "group", "type", "month", or "intersection", with the same filters as eps_list_occurrences. Counts are computed by the server over every matching row, not a sample.
Use for crime trends by month, most common offence types, crime hotspots by intersection, Edmonton crime statistics.
- Keywords
- Edmonton, police, EPS, crime statistics, crime trends, monthly crime, offence types, hotspots, counts, community safety, violent crime, property crime
- Mots-clés
- Edmonton, police, SPE, statistiques de criminalité, tendances, criminalité mensuelle, types d'infractions, points chauds, dénombrement, sécurité communautaire, crimes violents, crimes contre les biens
| Parameter | Type | Default |
|---|---|---|
dataset | "current" | "2023" | "current" |
group_by | "category" | "group" | "type" | "month" | "intersection" | "category" |
category | str | null | null |
group | str | null | null |
type_group | str | null | null |
start_date | str | null | null |
end_date | str | null | null |
intersection_contains | str | null | null |
top | int | 100 |
lang | "en" | "fr" | "en" |
call_tool {"name": "eps_summarize_occurrences", "arguments": {}}Municipal · Alberta
Edmonton Transit Service
ets_
Edmonton Transit Service real-time GTFS feeds: live bus/LRT vehicle positions, per-stop arrival/departure predictions with delays, and service alerts (detours, stop closures).
Full description
Edmonton Transit Service real-time GTFS feeds: live bus/LRT vehicle positions, per-stop arrival/departure predictions with delays, and service alerts (detours, stop closures). The static schedule is in data.edmonton.ca via socrata_* (portal='edmonton').
ets_get_service_alerts Current Edmonton Transit Service alerts: detours, stop closures, and disruptions, with cause, effect, severity, affected routes and stops, and the active period. Alert text is English only.
Use for is my route on detour, closed stops, construction impacts on Edmonton transit.
- Keywords
- Edmonton, ETS, service alerts, detours, stop closures, disruptions, construction, transit, bus, LRT, GTFS-RT
- Mots-clés
- Edmonton, ETS, avis de service, détours, fermetures d'arrêts, perturbations, travaux, transport en commun, autobus, SLR
| Parameter | Type | Default |
|---|---|---|
route_id | str | null | null |
stop_id | str | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ets_get_service_alerts", "arguments": {}}ets_get_stop_predictions Real-time predicted arrival/departure times at Edmonton Transit Service stops, with scheduled time and delay in seconds (positive = late), soonest first.
Use for next bus at a stop, how late a route is running, on-time performance snapshots.
- Keywords
- Edmonton, ETS, next bus, arrival times, departures, delays, on-time performance, real-time, GTFS-RT, trip updates, bus stop, transit
- Mots-clés
- Edmonton, ETS, prochain autobus, heures d'arrivée, départs, retards, ponctualité, temps réel, GTFS-RT, arrêt d'autobus, transport en commun
| Parameter | Type | Default |
|---|---|---|
stop_id | str | null | null |
route_id | str | null | null |
include_past | bool | false |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ets_get_stop_predictions", "arguments": {}}ets_get_vehicle_positions Live positions of Edmonton Transit Service buses and LRT trains: latitude/longitude, bearing, speed (km/h), route, trip, and the stop each vehicle is at or approaching.
Use for where is my bus, how many buses are running on a route, live transit maps for Edmonton.
- Keywords
- Edmonton, ETS, transit, bus, LRT, real-time, GTFS-RT, vehicle positions, live location, where is my bus, public transportation
- Mots-clés
- Edmonton, ETS, transport en commun, autobus, SLR, temps réel, GTFS-RT, position des véhicules, localisation en direct, transport public
| Parameter | Type | Default |
|---|---|---|
route_id | str | null | null |
limit | int | 50 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ets_get_vehicle_positions", "arguments": {}}Municipal · Alberta
EPCOR water quality, Edmonton
epcor_get_daily_water_quality
EPCOR Edmonton water quality: daily treated-water readings for the E.L.
Full description
EPCOR Edmonton water quality: daily treated-water readings for the E.L. Smith and Rossdale plants (hardness, pH, temperature, chlorine, alkalinity, conductivity, caustic soda, last 7 days). EPCOR's monthly and annual reports are PDF documents and are not covered.
epcor_get_daily_water_quality Daily-average treated drinking-water readings for the last 7 days from one of Edmonton's two EPCOR water treatment plants: total hardness, pH, temperature, total chlorine (chloramine) residual, alkalinity, conductivity, and caustic soda dose.
Use for how hard is Edmonton tap water, chlorine levels, recent water temperature or pH in Edmonton.
- Keywords
- Edmonton, EPCOR, drinking water, water quality, hardness, pH, chlorine, chloramine, conductivity, alkalinity, treatment plant, Rossdale, E.L. Smith
- Mots-clés
- Edmonton, EPCOR, eau potable, qualité de l'eau, dureté, pH, chlore, chloramine, conductivité, alcalinité, usine de traitement, Rossdale
| Parameter | Type | Default |
|---|---|---|
plant | "els" | "rossdale" | "els" |
lang | "en" | "fr" | "en" |
call_tool {"name": "epcor_get_daily_water_quality", "arguments": {}}Open-data catalogues
CKAN catalogues
ckan_
CKAN open-data catalogues: Government of Canada (open.canada.ca), Ontario, British Columbia, Alberta, Québec, Northwest Territories, Yukon, Montréal, Toronto, and Regina.
Full description
CKAN open-data catalogues: Government of Canada (open.canada.ca), Ontario, British Columbia, Alberta, Québec, Northwest Territories, Yukon, Montréal, Toronto, and Regina. Dataset search and detail, organizations, resources, licenses, tags, groups, and row-level DataStore queries, selected with a portal key.
ckan_datastore_search Query rows from a DataStore-backed CKAN resource (tabular data, not just metadata).
Use for reading actual records from a table on any CKAN portal except Yukon (no DataStore) and Alberta (DataStore broken portal-side). Only resources with datastore_active: true work. filters is exact-match per column, e.g. {"Year": "2024"}; query is full-text (rejected on federal resources over 100,000 rows — use filters). sort e.g. "Year desc"; fields a comma-separated column list; limit ≤ 1000. Rows are returned as published, so lang has no effect.
- Keywords
- CKAN, datastore, rows, records, table, query, filter, data
- Mots-clés
- CKAN, magasin de données, lignes, enregistrements, tableau, requête, filtre, données
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
resource_id | str | required |
filters | dict[str, str] | null | null |
query | str | null | null |
sort | str | null | null |
fields | str | null | null |
limit | int | 20 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_datastore_search", "arguments": {"portal": "…", "resource_id": "…"}}ckan_get_dataset Get one CKAN dataset's full metadata and every downloadable resource.
Use for resource URLs/formats, license, keywords/tags, publisher, update dates, and portal-specific metadata (in extras) for a dataset found with ckan_search_datasets. dataset_id is the id or name (slug). Check each resource's datastore_active before querying rows with ckan_datastore_search.
- Keywords
- CKAN, dataset detail, package_show, resources, download, metadata, license, open data
- Mots-clés
- CKAN, détail du jeu de données, ressources, téléchargement, métadonnées, licence, données ouvertes, jeu de données
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
dataset_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_get_dataset", "arguments": {"portal": "…", "dataset_id": "…"}}ckan_get_group Get one CKAN thematic group's description and dataset count.
Use for checking what a group from ckan_list_groups covers and how many datasets it holds before filtering ckan_search_datasets with fq="groups:<name>".
- Keywords
- CKAN, group detail, theme, topic, category, open data, catalogue, subject area, dataset count
- Mots-clés
- CKAN, détail du groupe, thème, sujet, catégorie, données ouvertes, catalogue, domaine, nombre de jeux de données
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
group_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_get_group", "arguments": {"portal": "…", "group_id": "…"}}ckan_get_organization Get one CKAN publishing organization's description and dataset count.
Use for confirming a department's or agency's identity before filtering searches by it. organization_id is the id or short name (e.g. "statcan", "nrcan-rncan" on the federal portal).
- Keywords
- CKAN, organization detail, department, agency, publisher, ministry, open data, datasets
- Mots-clés
- CKAN, détail de l'organisation, ministère, organisme, éditeur, ministères et organismes, données ouvertes, jeux de données
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
organization_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_get_organization", "arguments": {"portal": "…", "organization_id": "…"}}ckan_get_resource Get one CKAN resource (a single file or API endpoint within a dataset).
Use for a resource's download URL, format, size, dates, and whether it has a queryable DataStore table (datastore_active).
- Keywords
- CKAN, resource, file, download URL, format, datastore, data file, CSV
- Mots-clés
- CKAN, ressource, fichier, URL de téléchargement, format, fichier de données, CSV, magasin de données
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
resource_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_get_resource", "arguments": {"portal": "…", "resource_id": "…"}}ckan_list_groups List one CKAN portal's curated thematic groups (topics such as health, transport).
Use for browsing a catalogue by theme, then filtering searches with fq="groups:<name>". Not available on federal, Alberta, or Toronto, which do not use CKAN groups.
- Keywords
- CKAN, groups, themes, topics, categories, open data, browse, catalogue
- Mots-clés
- CKAN, groupes, thèmes, sujets, catégories, données ouvertes, parcourir, catalogue
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_list_groups", "arguments": {"portal": "…"}}ckan_list_licenses List the licenses one CKAN portal publishes datasets under (e.g. Open Government Licence).
Use for explaining what a dataset's license_id permits.
- Keywords
- CKAN, license, licence, open government licence, terms of use, open data, reuse, copyright
- Mots-clés
- CKAN, licence, licence du gouvernement ouvert, conditions d'utilisation, données ouvertes, réutilisation, droit d'auteur, licence ouverte
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_list_licenses", "arguments": {"portal": "…"}}ckan_list_organizations List the publishing organizations (departments, agencies, ministries) of one CKAN portal.
Use for browsing publishers before filtering ckan_search_datasets with fq="organization:<name>". Federal lists ~350 departments and agencies; Toronto and Regina each have one city organization.
- Keywords
- CKAN, organizations, publishers, departments, agencies, ministries, open data, catalogue
- Mots-clés
- CKAN, organisations, éditeurs, ministères, organismes, données ouvertes, catalogue, producteurs de données
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_list_organizations", "arguments": {"portal": "…"}}ckan_list_portals List every CKAN open-data catalogue (federal, provincial, territorial, city) and its key.
Use for finding the portal key every other ckan_ tool needs, and which portals support tags, groups, and row-level DataStore queries. Portals: federal (open.canada.ca), on (Ontario), bc (British Columbia), ab (Alberta), qc (Québec, Données Québec), nt (Northwest Territories), yt (Yukon), montreal, toronto, regina.
- Keywords
- CKAN, open data portal, catalogue, federal, provincial, territorial, municipal, city, list portals
- Mots-clés
- CKAN, portail de données ouvertes, catalogue, fédéral, provincial, territorial, municipal, ville, liste des portails
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_list_portals", "arguments": {}}ckan_list_tags List or search one CKAN portal's tag vocabulary.
Use for finding the exact tag to filter searches by (fq="tags:<tag>"). Unfiltered lists are capped at 200; pass query for a substring match. The federal portal has no tags (use its keywords via ckan_get_dataset instead).
- Keywords
- CKAN, tags, keywords, vocabulary, subjects, open data, browse, topics
- Mots-clés
- CKAN, mots-clés, étiquettes, vocabulaire, sujets, données ouvertes, parcourir, thèmes
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
query | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_list_tags", "arguments": {"portal": "…"}}ckan_search_datasets Search one Canadian CKAN open-data catalogue for datasets.
Use for finding a dataset by topic on open.canada.ca (portal "federal", ~48,000 datasets incl. CRA, OSFI, Health Canada, ESDC, Elections Canada), Ontario, BC, Alberta, Québec, NWT, Yukon, Montréal, Toronto, or Regina. Empty query matches everything; narrow with Solr fq, e.g. "organization:statcan" or "res_format:CSV". rows ≤ 100; page with start. sort e.g. "metadata_modified desc". lang picks French titles on bilingual portals (federal, on); Québec and Montréal content is French-only.
- Keywords
- CKAN, open data, dataset search, catalogue, government, federal, provincial, municipal, package_search, discover, browse
- Mots-clés
- CKAN, données ouvertes, recherche de jeux de données, catalogue, gouvernement, fédéral, provincial, municipal, découvrir, parcourir, filtre
| Parameter | Type | Default |
|---|---|---|
portal | "federal" | "on" | "bc" | "ab" | "qc" | "nt" | "yt" | "montreal" | "toronto" | "regina" | required |
query | str | "" |
fq | str | null | null |
rows | int | 10 |
start | int | 0 |
sort | str | null | null |
lang | "en" | "fr" | "en" |
call_tool {"name": "ckan_search_datasets", "arguments": {"portal": "…"}}Open-data catalogues
Socrata portals
socrata_
Socrata open-data portals for Nova Scotia, New Brunswick, Calgary, Edmonton, and Winnipeg: dataset search and detail, categories, tags, and direct SoQL row queries.
Full description
Socrata open-data portals for Nova Scotia, New Brunswick, Calgary, Edmonton, and Winnipeg: dataset search and detail, categories, tags, and direct SoQL row queries. Call socrata_list_portals for every portal key.
socrata_get_dataset Get one Socrata dataset's metadata, columns, and download links.
Use for inspecting a dataset found with socrata_search_datasets (same portal) before querying its rows.
- Keywords
- Socrata, dataset detail, columns, metadata, licence, publisher, download, CSV, views, Nova Scotia, New Brunswick, Calgary, Edmonton, Winnipeg
- Mots-clés
- Socrata, détail du jeu de données, colonnes, métadonnées, licence, éditeur, téléchargement, CSV, vues
| Parameter | Type | Default |
|---|---|---|
portal | "ns" | "nb" | "calgary" | "edmonton" | "winnipeg" | required |
dataset_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "socrata_get_dataset", "arguments": {"portal": "…", "dataset_id": "…"}}socrata_list_categories List one Socrata portal's dataset categories and how many datasets each has.
Use for discovering topic categories before filtering search.
- Keywords
- Socrata, categories, domain_category, catalogue, open data, topics, classification, themes
- Mots-clés
- Socrata, catégories, domaine, catalogue, données ouvertes, sujets, classification, thèmes
| Parameter | Type | Default |
|---|---|---|
portal | "ns" | "nb" | "calgary" | "edmonton" | "winnipeg" | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "socrata_list_categories", "arguments": {"portal": "…"}}socrata_list_portals List every Socrata open-data portal and its portal key.
Use for finding the portal key other socrata_ tools need — Nova Scotia (ns), New Brunswick (nb), Calgary, Edmonton, Winnipeg.
- Keywords
- Socrata, SODA, open data portal, Nova Scotia, New Brunswick, Calgary, Edmonton, Winnipeg, list portals
- Mots-clés
- Socrata, SODA, portail de données ouvertes, Nouvelle-Écosse, Nouveau-Brunswick, Calgary, Edmonton, Winnipeg, liste des portails
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "socrata_list_portals", "arguments": {}}socrata_list_tags List one Socrata portal's free-text dataset tags and how many datasets each has.
Use for discovering exact tag values for the search tag filter.
- Keywords
- Socrata, tags, domain_tags, keywords, vocabulary, catalogue, search, discover
- Mots-clés
- Socrata, étiquettes, mots-clés, vocabulaire, catalogue, recherche, découvrir, terminologie
| Parameter | Type | Default |
|---|---|---|
portal | "ns" | "nb" | "calgary" | "edmonton" | "winnipeg" | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "socrata_list_tags", "arguments": {"portal": "…"}}socrata_query_dataset_rows Query rows from one Socrata dataset with a SoQL clause.
Use for reading actual data values (not just metadata) from a dataset found with socrata_search_datasets, filtering with a SoQL $where clause, sorting, or full-text search within the dataset.
- Keywords
- Socrata, SODA, SoQL, rows, query, filter, data, select, where, order, resource API
- Mots-clés
- Socrata, SODA, SoQL, lignes, requête, filtrer, données, sélection, tri, recherche dans les données
| Parameter | Type | Default |
|---|---|---|
portal | "ns" | "nb" | "calgary" | "edmonton" | "winnipeg" | required |
dataset_id | str | required |
select | str | null | null |
where | str | null | null |
order | str | null | null |
q | str | null | null |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "socrata_query_dataset_rows", "arguments": {"portal": "…", "dataset_id": "…"}}socrata_search_datasets Search a Socrata open-data catalogue (Nova Scotia, New Brunswick, Calgary, Edmonton, Winnipeg).
Use for finding datasets by topic, category, tag, or free-text query.
- Keywords
- Nova Scotia, New Brunswick, Calgary, Edmonton, Winnipeg, open data, Socrata, dataset search, catalogue, government, province, city, category, tags
- Mots-clés
- Nouvelle-Écosse, Nouveau-Brunswick, Calgary, Edmonton, Winnipeg, données ouvertes, Socrata, recherche de jeux de données, catalogue, gouvernement, province, ville, catégorie, étiquettes
| Parameter | Type | Default |
|---|---|---|
portal | "ns" | "nb" | "calgary" | "edmonton" | "winnipeg" | required |
query | str | "" |
category | str | null | null |
tag | str | null | null |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "socrata_search_datasets", "arguments": {"portal": "…"}}Open-data catalogues
ArcGIS Hub portals
arcgis_hub_
Provincial and municipal ArcGIS Hub open-data portals (Manitoba, Saskatchewan, PEI, Ottawa, Halifax, Hamilton, Durham, York, Peel, Metro Vancouver, and 23 more): dataset search and detail, direct FeatureServer/MapServer row queries, and CSV/Shapefile/GeoJSON/KML download links.
Full description
Provincial and municipal ArcGIS Hub open-data portals (Manitoba, Saskatchewan, PEI, Ottawa, Halifax, Hamilton, Durham, York, Peel, Metro Vancouver, and 23 more): dataset search and detail, direct FeatureServer/MapServer row queries, and CSV/Shapefile/GeoJSON/KML download links. Call arcgis_hub_list_portals for every portal key.
arcgis_hub_get_dataset Get one ArcGIS Hub dataset item's metadata, service URL, and download links.
Use for inspecting a dataset found with arcgis_hub_search_datasets (same portal) before querying its rows or downloading it — Ottawa, Halifax, Manitoba, Saskatchewan, PEI, and every other arcgis_hub portal.
- Keywords
- ArcGIS Hub, dataset detail, FeatureServer, MapServer, metadata, licence, download, CSV, shapefile, GeoJSON, KML
- Mots-clés
- ArcGIS Hub, détail du jeu de données, FeatureServer, MapServer, métadonnées, licence, téléchargement, CSV, shapefile, GeoJSON, KML
| Parameter | Type | Default |
|---|---|---|
portal | "mb" | "sk" | "pe" | "hamilton" | "london" | "kitchener" | "windsor" | "saskatoon" | "victoria" | "surrey" | "ottawa" | "halifax" | "mississauga" | "peel" | "durham" | "waterloo_region" | "metro_vancouver" | "york" | "markham" | "newmarket" | "aurora" | "medicine_hat" | "grande_prairie" | "grande_prairie_county" | "st_albert" | "lethbridge" | "airdrie" | "strathcona_county" | "parkland_county" | "sturgeon_county" | "emrb" | "alberta_geological_survey" | "red_deer" | required |
item_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "arcgis_hub_get_dataset", "arguments": {"portal": "…", "item_id": "…"}}arcgis_hub_list_portals List every ArcGIS Hub open-data portal (province, city, region) and its portal key.
Use for finding the portal key the other arcgis_hub_ tools need, and portal-specific caveats. Covers Manitoba (mb), Saskatchewan (sk), Prince Edward Island (pe), Hamilton, London, Kitchener, Windsor, Saskatoon, Victoria, Surrey, Ottawa, Halifax, Mississauga, Peel, Durham, Waterloo Region, Metro Vancouver, York, Markham, Newmarket, Aurora, Medicine Hat, Grande Prairie, Grande Prairie County, St. Albert, Lethbridge, Airdrie, Strathcona County.
- Keywords
- ArcGIS Hub, open data portal, municipal, city, region, province, GIS, geospatial, list portals
- Mots-clés
- ArcGIS Hub, portail de données ouvertes, municipal, ville, région, province, SIG, géospatial, liste des portails
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "arcgis_hub_list_portals", "arguments": {}}arcgis_hub_query_feature_layer Query rows from one ArcGIS Hub dataset's FeatureServer/MapServer layer.
Use for reading actual feature attribute values (not just metadata) from a dataset found with arcgis_hub_search_datasets, filtering with an ArcGIS SQL where clause, sorting, or including geometry. Leave layer_index unset to auto-resolve the item's own layer, or the service's first layer or table id (not always 0).
- Keywords
- ArcGIS REST, FeatureServer, MapServer, query, rows, attributes, filter, where clause, municipal, geospatial, GIS
- Mots-clés
- ArcGIS REST, FeatureServer, MapServer, requête, lignes, attributs, filtre, clause where, municipal, géospatial, SIG
| Parameter | Type | Default |
|---|---|---|
portal | "mb" | "sk" | "pe" | "hamilton" | "london" | "kitchener" | "windsor" | "saskatoon" | "victoria" | "surrey" | "ottawa" | "halifax" | "mississauga" | "peel" | "durham" | "waterloo_region" | "metro_vancouver" | "york" | "markham" | "newmarket" | "aurora" | "medicine_hat" | "grande_prairie" | "grande_prairie_county" | "st_albert" | "lethbridge" | "airdrie" | "strathcona_county" | "parkland_county" | "sturgeon_county" | "emrb" | "alberta_geological_survey" | "red_deer" | required |
item_id | str | required |
layer_index | int | null | null |
where | str | null | null |
out_fields | str | "*" |
order_by | str | null | null |
return_geometry | bool | false |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "arcgis_hub_query_feature_layer", "arguments": {"portal": "…", "item_id": "…"}}arcgis_hub_search_datasets Search one Canadian ArcGIS Hub open-data catalogue (city, region, or province).
Use for finding datasets by topic, tag, item type, or free-text query on Manitoba, Saskatchewan, Prince Edward Island, Hamilton, London, Kitchener, Windsor, Saskatoon, Victoria, Surrey, Ottawa, Halifax, Mississauga, Peel, Durham, Waterloo Region, Metro Vancouver, York, Markham, Newmarket, Aurora, Medicine Hat, Grande Prairie, Grande Prairie County, St. Albert, Lethbridge, Airdrie, or Strathcona County open data.
- Keywords
- ArcGIS Hub, open data, dataset search, catalogue, municipal, city, region, province, GIS, geospatial
- Mots-clés
- ArcGIS Hub, données ouvertes, recherche de jeux de données, catalogue, municipal, ville, région, province, SIG, géospatial
| Parameter | Type | Default |
|---|---|---|
portal | "mb" | "sk" | "pe" | "hamilton" | "london" | "kitchener" | "windsor" | "saskatoon" | "victoria" | "surrey" | "ottawa" | "halifax" | "mississauga" | "peel" | "durham" | "waterloo_region" | "metro_vancouver" | "york" | "markham" | "newmarket" | "aurora" | "medicine_hat" | "grande_prairie" | "grande_prairie_county" | "st_albert" | "lethbridge" | "airdrie" | "strathcona_county" | "parkland_county" | "sturgeon_county" | "emrb" | "alberta_geological_survey" | "red_deer" | required |
query | str | "" |
tag | str | null | null |
item_type | str | null | null |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "arcgis_hub_search_datasets", "arguments": {"portal": "…"}}Open-data catalogues · British Columbia
City of Vancouver Open Data
opendatasoft_vancouver_
City of Vancouver Open Data Portal (opendata.vancouver.ca): dataset search and detail, direct record queries with ODSQL filtering/sorting, and CSV/JSON/GeoJSON export download links.
Full description
City of Vancouver Open Data Portal (opendata.vancouver.ca): dataset search and detail, direct record queries with ODSQL filtering/sorting, and CSV/JSON/GeoJSON export download links. The only Opendatasoft-platform source in this codebase.
opendatasoft_vancouver_get_dataset Get one Vancouver dataset's metadata, fields, and download links.
Use for inspecting a dataset found with opendatasoft_vancouver_search_datasets before querying its records or downloading it.
- Keywords
- Vancouver, Opendatasoft, dataset detail, fields, metadata, licence, publisher, download, CSV, JSON, GeoJSON
- Mots-clés
- Vancouver, Opendatasoft, détail du jeu de données, champs, métadonnées, licence, éditeur, téléchargement, CSV, JSON, GeoJSON
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "opendatasoft_vancouver_get_dataset", "arguments": {"dataset_id": "…"}}opendatasoft_vancouver_query_records Query records from one Vancouver dataset with ODSQL filtering/sorting.
Use for reading actual data values (not just metadata) from a dataset found with opendatasoft_vancouver_search_datasets, filtering with a raw ODSQL where clause (e.g. "service_category_1 = 'Housing'"), sorting with order_by, or a full-text query match within the dataset's own fields.
- Keywords
- Vancouver, Opendatasoft, ODSQL, records, query, filter, rows, data, select, where, order, Explore API
- Mots-clés
- Vancouver, Opendatasoft, ODSQL, enregistrements, requête, filtrer, lignes, données, sélection, tri, Explore API
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
select | str | null | null |
where | str | null | null |
order_by | str | null | null |
query | str | null | null |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "opendatasoft_vancouver_query_records", "arguments": {"dataset_id": "…"}}opendatasoft_vancouver_search_datasets Search Vancouver's Opendatasoft open-data catalogue.
Use for finding City of Vancouver datasets by topic or free-text query.
- Keywords
- Vancouver, Opendatasoft, open data, dataset search, catalogue, government, municipal, British Columbia, discovery
- Mots-clés
- Vancouver, Opendatasoft, données ouvertes, recherche de jeux de données, catalogue, gouvernement, municipal, Colombie-Britannique, découverte
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "opendatasoft_vancouver_search_datasets", "arguments": {}}Open-data catalogues · Newfoundland and Labrador
Open Data Newfoundland and Labrador
nl_opendata_
Open Data Newfoundland and Labrador (opendata.gov.nl.ca): HTML catalogue search over tabular and spatial datasets, dataset metadata, topic tags, and links to downloadable CSV, XLS, TXT, KMZ, and shapefile files.
Full description
Open Data Newfoundland and Labrador (opendata.gov.nl.ca): HTML catalogue search over tabular and spatial datasets, dataset metadata, topic tags, and links to downloadable CSV, XLS, TXT, KMZ, and shapefile files. The portal is English-only and has no documented JSON catalogue API.
nl_opendata_get_dataset Get full metadata and official file links for one Newfoundland and Labrador dataset.
Use for inspecting a dataset found with nl_opendata_search_datasets, reading its creator, publisher, geography, time coverage, release and modification dates, rights, topics, revisions, formats, file sizes, and binary download URLs.
- Keywords
- Newfoundland, Labrador, open data, dataset details, metadata, creator, publisher, geography, time coverage, rights, licence, topic, revision, format, file, download, CSV, XLS, KMZ
- Mots-clés
- Terre-Neuve, Labrador, données ouvertes, détail du jeu de données, métadonnées, créateur, éditeur, géographie, période, droits, licence, sujet, révision, format, fichier, téléchargement, CSV, XLS, KMZ
| Parameter | Type | Default |
|---|---|---|
dataset_id | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "nl_opendata_get_dataset", "arguments": {"dataset_id": "…"}}nl_opendata_list_tags List topic tags exposed by Newfoundland and Labrador's Explore page.
Use for discovering the portal's tag ids before calling nl_opendata_search_datasets with tag_id.
- Keywords
- Newfoundland, Labrador, open data, topic tags, keywords, vocabulary, catalogue, Explore, filter, demographics, health, justice, transportation, environment
- Mots-clés
- Terre-Neuve, Labrador, données ouvertes, mots-clés thématiques, vocabulaire, catalogue, explorer, filtre, démographie, santé, justice, transport, environnement
| Parameter | Type | Default |
|---|---|---|
lang | "en" | "fr" | "en" |
call_tool {"name": "nl_opendata_list_tags", "arguments": {}}nl_opendata_search_datasets Search Newfoundland and Labrador's official open-data catalogue.
Use for finding tabular or spatial datasets by title, publisher, creator, or a known topic-tag id. The upstream catalogue has no JSON search API or server-side pagination, so MapleStats fetches its small HTML listings and applies text filtering and offset/limit pagination locally. Use nl_opendata_list_tags first when a topic tag id is needed.
- Keywords
- Newfoundland, Labrador, NL, open data, dataset search, catalogue, tabular, spatial, geospatial, government, CSV, XLS, KMZ, shapefile, topic tag
- Mots-clés
- Terre-Neuve, Labrador, données ouvertes, recherche de jeux de données, catalogue, tabulaire, spatial, géospatial, gouvernement, CSV, XLS, KMZ, shapefile, mot-clé thématique
| Parameter | Type | Default |
|---|---|---|
query | str | "" |
dataset_type | "all" | "tabular" | "spatial" | "all" |
tag_id | str | null | null |
sort | "name" | "released_desc" | "released_asc" | "name" |
limit | int | 10 |
offset | int | 0 |
lang | "en" | "fr" | "en" |
call_tool {"name": "nl_opendata_search_datasets", "arguments": {}}Planning and code
Query planner
plan_query
Query planner: given a plain-language question, lists the topics it touches, the tools to call across agencies in order, local portals for places named, and caveats on combining the results.
Always visible to the agent, so search_tools does not return it.
plan_query Plan which sources answer a question that may span several agencies.
Use for the first call on a substantive question ("How have rents and interest rates moved in Calgary since 2020?"). Returns the topics it touches, the tools to call for each in order, local portals for any province or city named, and caveats on combining them. Then run the steps with call_tool. lang is accepted for consistency; the plan text is English.
- Keywords
- plan, which data source, where to find, combine sources, cross-source, question, research, Canada data
- Mots-clés
- planifier, quelle source de données, où trouver, combiner des sources, question, recherche, données canadiennes, statistiques
| Parameter | Type | Default |
|---|---|---|
question | str | required |
lang | "en" | "fr" | "en" |
call_tool {"name": "plan_query", "arguments": {"question": "…"}}Planning and code
Reproduction code
reproduce_code
Reproduction code: for a tool call, returns an R, Python, Stata or Julia snippet that fetches the same data straight from the source, using cansim, canivt, polars, TidierFiles or Stata's import commands, so analysis scripts stay reproducible.
reproduce_code Get R, Python, Stata and Julia scripts that fetch and clean the same data.
Use for moving any data tool's result into an analysis script reproducibly. Pass the tool name and the arguments you called it with; the server writes the scripts, ready to run. Tools that return documents or text (StatCan articles and Daily releases, Gazette notices, Hansard) get no script. It rebuilds the exact request: from the arguments (StatCan tables via cansim, Beyond 20/20 via canivt, Valet, Socrata, CKAN), or by recording the upstream request the tool makes (every query parameter, POST body and header). Where the tool filters a downloaded file itself (CanadaBuys, CER, GC InfoBase, CIHI, IRCC, PHAC Health Infobase, IP Horizons patents) or parses HTML tables (CFIA), the script repeats those steps. Scripts follow a header plus numbered sections (setup, read, check, prepare), save downloads under data/raw/, and clean names, text and numbers; Python uses polars, Julia TidierFiles, Stata import delimited (JSON and filtered files go through Stata's built-in Python). notes say what a script cannot repeat and why a language is missing; language picks one.
- Keywords
- reproducible, R code, Python code, Stata do-file, Julia, script, cansim, download data, replication, code generation
- Mots-clés
- reproductible, code R, code Python, Stata, Julia, script, télécharger les données, réplication, génération de code
| Parameter | Type | Default |
|---|---|---|
tool_name | str | required |
arguments | dict | required |
language | "all" | "r" | "python" | "stata" | "julia" | "all" |
call_tool {"name": "reproduce_code", "arguments": {"tool_name": "…", "arguments": "…"}}