List Philippine administrative units
list_admin_unitsRetrieve Philippine administrative units by parent code or level, from top-level regions to barangays, with pagination support.
Instructions
Browse children of a PSGC node, or top-level regions when parent_code is None.
An unrecognized parent_code or level filter matches no children and returns an empty list. This tool never returns validation_error. A malformed argument degrades to an empty result instead of a failure. Examples:
list_admin_units() top-level regions list_admin_units(parent_code="072200000") children of Cebu province list_admin_units(level="city-municipality", limit=10) first 10 cities and municipalities
On failure, only a PSGC API outage returns a failure envelope: data_status "unavailable", upstream_error: true, results: [], and the real error in caveats. A malformed parent_code or level returns an empty list instead of this failure shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Filter children by level (region|province|city|municipality|district|barangay). | |
| limit | No | Max units to return (default 50, capped at 500). | |
| offset | No | Skip this many matching units before returning results. Page past 500 children (for example, Manila has 897 barangays) by calling again with offset=500. | |
| parent_code | No | Parent PSGC code. None returns the regions list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |