Skip to main content
Glama

Statsnz Smoking By Region

statsnz_smoking_by_region
Read-onlyIdempotent

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.

Input Schema

NameRequiredDescriptionDefault
yearNoOptional census year: "2023", "2018", "2013" or "2006". Omit for all.
regionNoOptional regional council name or fragment, case-insensitive, e.g. "Waikato" or "Canterbury". Omit for all 16 regions.
_apiKeyNoOptional. Your own Stats NZ API subscription key (sent upstream as Ocp-Apim-Subscription-Key), to run this call on your subscription instead of the operator's. Free subscription at https://portal.apis.stats.govt.nz/. Leave it unset unless you have a reason to use your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description usefully adds that no caller key is needed, that percentages are a share of people whose status was stated, and that this is census self-report rather than the Health Survey. That is genuine context beyond the structured fields; it stops short of describing filters/response shape in detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense paragraph that front-loads the subject, scope, and measures before the source caveats. Every sentence carries information, though the embedded example-questions clause makes the middle slightly heavy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a no-required-param filtering tool with no output schema, the description conveys the returned dimensions (counts and percentages per region and census year) and the source/semantics caveat. An agent has enough to invoke and interpret it, with only minor gaps around exact response granularity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, and the schema already spells out the year options and region fragment matching, so the baseline is 3. The description adds no syntax, format, or edge-case detail beyond what the schema states.

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

Purpose5/5

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

Names a specific subject (cigarette smoking status), a precise geography (NZ regional council), a population (people aged 15+), the measures (counts and percentages by smoker status), and the years available. An agent can immediately tell this apart from the generic statsnz_observations/codelist siblings, which serve any dataset.

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

Usage Guidelines4/5

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

Gives concrete example questions it answers ("smoking prevalence by region", "ex-smoker share by regional council, 2018 vs 2023") and explicitly disambiguates the source against the NZ Health Survey. It does not, however, point to an alternative sibling tool for other Stats NZ queries, so routing against statsnz_observations is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.