Search Indonesian administrative regions
nusa_region_searchResolve Indonesian place names like "Jogja" or "Kab. Purbalingga" into official Kemendagri region codes with hierarchy path and confidence score. Search by province, regency, district, or village to get the code first.
Instructions
Fuzzy, alias-aware search for Indonesian wilayah (provinsi, kabupaten/kota, kecamatan, desa/kelurahan) by name, e.g. "Jogja", "Kab. Purbalingga", "Purwokerto". Returns official Kemendagri codes, the hierarchy path and a confidence score. Use it first to turn a place name into a code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "nusa_region_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the human-readable text block: id (Indonesian) or en (English). | id |
| level | No | Restrict to one administrative level. | |
| limit | No | ||
| query | Yes | Place name, abbreviations allowed (Kab., Kec., Kota). | |
| parent_code | No | Only search below this region code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| cache | Yes | none = not cached (local data). | |
| source | Yes | Source id, e.g. bmkg, bps, region. | |
| derived | No | True when computed locally from source data. | |
| dataAsOf | No | ISO 8601 time the source says the data is current as of. | |
| warnings | Yes | ||
| sourceUrl | Yes | Canonical URL of the data source. | |
| termsNote | Yes | Short terms caveat for this source. | |
| attribution | Yes | Attribution wording the provider requires. Show it to users. | |
| retrievedAt | Yes | ISO 8601 time with offset when data was fetched by this server. | |
| cacheAgeSeconds | No |