statsnz_smoking_by_region
Pack: stats-nz · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/statsnz_smoking_by_region for the schema, then POST the same URL with its arguments for the data.
Census smoking status (regular / ex / never) by NZ regional council and census year.
Tool description as the model sees it
Cigarette smoking status by New Zealand regional council from the Census (people aged 15+): counts and percentages of regular smokers, ex-smokers and people who never smoked regularly, per region and census year (2023, 2018, 2013, 2006). Answers “smoking prevalence by region”, “ex-smoker share by regional council, 2018 vs 2023”. Percentages are of people whose smoking status was stated. Source: Stats NZ, Census of Population and Dwellings (smoking behaviour tables). This is census self-report, not the Ministry of Health NZ Health Survey. No key needed from the caller.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
region | string | no | Optional regional council name or fragment, case-insensitive, e.g. “Waikato” or “Canterbury”. Omit for all 16 regions. |
year | string | no | Optional census year: “2023”, “2018”, “2013” or “2006”. Omit for all. |
_apiKey | string | no |
Example call
Arguments
{
"region": "Waikato"
}
curl
curl -X POST https://gateway.pipeworx.io/stats-nz/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"statsnz_smoking_by_region","arguments":{"region":"Waikato"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('statsnz_smoking_by_region', {
"region": "Waikato"
});
More examples
{
"year": "2023"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the stats-nz pack
{
"mcpServers": {
"stats-nz": {
"url": "https://gateway.pipeworx.io/stats-nz/mcp"
}
}
}
See Getting Started for client-specific install steps.