Geography tool

PublicView as Markdown

geo_contains

Walk containment and return descendants at one requested level.

Description

Walk containment and return descendants at one requested level.

Children are ordered by stable geography_id; each carries level, official code/name, country/state, row as_of, source, and attribution. The default page is 50 and maximum is 200. Pass next_cursor back until has_more is false. An unknown ID returns unknown_entity; an incompatible country/level returns bad_parameter.

Example: geo_contains(geography_id="state_48", child_level="county", limit=50).

Parameters

Input schema advertised to MCP clients and mirrored by the REST query string.

NameTypeRequiredDefaultConstraintsDescription
geography_idstringYesExact stable geography_id returned by geo_resolve.
child_level"nation" | "state" | "county" | "cbsa" | "zip3" | "zcta" | "au_state" | "au_gccsa" | "au_sa4" | "au_sa3" | "au_lga"YesDescendant level to return, such as county for a US state or au_sa4 for an Australian GCCSA.
limitintegerNo50min 1, max 200Descendants per page (1–200).
cursorstring | nullNonullOpaque cursor from pagination.next_cursor. Keep geography_id and child_level constant while paging; omit for the first page.

Provenance

Sources behind every value this tool returns.

Dataset registry: geo_au_asgs, geo_us_reference