abs-mcp
v0.13.12Query the ABS in plain English — CPI, labour force, building approvals, migration, GDP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_datasets
Fuzzy-search ABS dataflow names, descriptions, and keywords. Use this when you don't know the exact dataset ID. The 10 curated dataflows (LF, CPI, ANA_AGG, etc.) get a relevance boost so common queries like "unemployment" or "gdp" return the right dataset at rank #1 — not one of ABS's 800+ census tables that mention these keywords incidentally. Examples: # Discover which dataflow answers "what's NSW unemployment?" results = await search_datasets("unemployment") # → [{id: 'LF', name: 'Labour Force', is_curated: True}, ...] # Broader topic exploration results = await s…
| Parameter | Type | Description |
|---|---|---|
query * | string | Free-text search query. Matches against dataflow IDs, names, descriptions, and each curated YAML's search_keywords. Case-insensitive. |
limit | integer | Maximum number of results to return, ranked by relevance. Curated dataflows get a +25 score bonus so they surface above ABS's ~800 census tables for common queries. |
describe_dataset
Describe an ABS dataflow's filter dimensions, value codes, and source. For curated dataflows (LF, CPI, ANA_AGG, AWE, BA_GCCSA, ERP_Q, JV, LEND_HOUSING, WPI, ABS_ANNUAL_ERP_ASGS2021), returns plain-English dimension names + curated value keys + the ABS source URL. For other dataflows (~1,200 in total), returns raw SDMX dimensions and codelists translated to the same response shape — pass raw SDMX codes to get_data when querying these. Examples: # Curated path — plain-English values detail = await describe_dataset("LF") # detail.dimensions = [{'name': 'region', 'values': [{'ke…
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | ABS dataflow ID. Use search_datasets to discover, or list_curated to enumerate the 10 dataflows with plain-English support. Case-insensitive — 'lf', 'LF', and ' LF ' all resolve to 'LF'. |
get_data
Query an ABS dataflow and return observations. Pass filters and/or a period range — unfiltered queries on large dataflows can return tens of thousands of observations. Curated dataflows accept plain-English filter keys and values that are translated to SDMX codes server-side. For example, on LF: `{"region": "nsw", "measure": "unemployment_rate"}` resolves to SDMX key `M13.3.1599.20.1.M` with hidden-dim defaults auto-applied. Examples: # NSW unemployment monthly for 2024 resp = await get_data( "LF", filters={"region": "nsw", "measure": "unemployment_rate"},…
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | ABS dataflow ID like 'LF', 'CPI'. Use search_datasets to discover. |
end_period | Inclusive end period. Same format as start_period. | |
filters | Dimension filters. For curated dataflows: plain-English keys and values, e.g. {'region': 'nsw', 'measure': 'unemployment_rate'}. For raw dataflows: SDMX dimension IDs and codes. Pass a list as the val… | |
format | string | Response shape. 'records' (default): flat list of observations. 'series': observations grouped by dimension key for chart-friendly shapes. 'csv': returns the table as a CSV string in the `csv` field w… |
start_period | Inclusive start period. Format follows the dataflow's cadence: annual 'YYYY' (e.g. '2020'), monthly 'YYYY-MM' (e.g. '2024-03'), quarterly 'YYYY-Q1', half-yearly 'YYYY-S1', daily 'YYYY-MM-DD'. An int y… |
latest
Return the most recent observation(s) for a dataflow. Wraps get_data with lastNObservations=1 and a 15-minute cache TTL (vs 1 hour for general data calls). Use this for "what's the current X?" questions — it's a cheap, fast call: warm-cache p50 ~22ms, cold-cache ~200ms. Examples: # Latest NSW unemployment rate resp = await latest("LF", {"region": "nsw", "measure": "unemployment_rate"}) # → resp.records[0]: period='2026-03', value=4.61, unit='Percent' # Latest Australia headline annual inflation resp = await latest("CPI", {"region": "australia", "measure": "change_yea…
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | ABS dataflow ID. Use search_datasets to discover. |
filters | Dimension filters. For curated dataflows: plain-English keys and values. Without filters, expect one observation per dimension combination (often hundreds) — pass at least region + measure for a cle… | |
limit | integer | Maximum rows to return. Register-shaped datasets (e.g. C21_G02_SA2 ~2,400 SA2 areas x 8 measures) would otherwise return thousands of rows with no cap. Pass filters to narrow to one region/measure, or… |
top_n
Return the N rows with the largest (or smallest) value of a measure. Ranks across the most-recent available period only (uses lastNObservations=1 under the hood) so the result is a clean "top N entities at the latest period" view — not noisy historical highs. This is the most common agent workflow: "show me the top 10 X by Y". Without this tool, an agent would call get_data, receive the full time series, and then sort/slice locally — wasting tokens and turns. top_n does the rank server-side and returns only the requested rows. Examples: # 5 states with the highest current unemployme…
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | ABS dataflow ID. Must be a curated dataflow with a 'measure' dimension. Use the list-curated endpoint or list tool to enumerate. |
measure * | string | Plain-English measure key to rank by — one of the curated measure values for this dataflow. Use the describe endpoint or describe tool to see available measures. |
direction | string | 'top' returns the N rows with the LARGEST measure values (highest unemployment_rate, biggest population, etc.). 'bottom' returns the SMALLEST. |
filters | Optional additional dimension filters, same shape as get_data. Do NOT include the 'measure' key here — that is supplied via the `measure` parameter. A JSON-encoded string (e.g. '{"sex": "persons"}')… | |
n | integer | How many top (or bottom) rows to return. |
list_curated
List the 10 ABS dataflow IDs with hand-curated plain-English support. These are the dataflows where get_data accepts plain-English filter keys (`{"region": "nsw"}`) and describe_dataset returns rich human-readable metadata. All other ABS dataflows (~1,200) are still accessible via get_data with raw SDMX dimension IDs and codes. The 10 curated dataflows: - LF — Labour Force (unemployment, employment, participation) - CPI — Consumer Price Index (inflation) - WPI — Wage Price Index (wage growth) - AWE — Average Weekly Earnings - JV — Job Vacancies - BA_GCCSA  
release_calendar
Upcoming ABS publication schedule (data releases). Scrapes the official ABS release calendar (https://www.abs.gov.au/release-calendar/future-releases-calendar) and returns each scheduled publication with its release timestamp, title, reference period, and — when the title maps to a curated abs-mcp dataset — the `dataset_id` an agent can plug into `get_data` or `latest`. Curated mappings cover the 10 datasets in `list_curated()` plus a handful of commonly-watched non-curated catalogues (Retail Trade, International Trade in Goods, etc., where `dataset_id` stays null but `publication_id` car…
| Parameter | Type | Description |
|---|---|---|
days_ahead | integer | Horizon in days. Returns ABS publications scheduled to release between now and `now + days_ahead`. Default 30 covers the typical monthly + quarterly cadence. |