Skip to main content
Glama

Search Indonesian administrative regions

nusa_region_search
Read-onlyIdempotent

Resolve 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

NameRequiredDescriptionDefault
langNoLanguage of the human-readable text block: id (Indonesian) or en (English).id
levelNoRestrict to one administrative level.
limitNo
queryYesPlace name, abbreviations allowed (Kab., Kec., Kota).
parent_codeNoOnly search below this region code.

Output Schema

NameRequiredDescriptionDefault
dataYes
cacheYesnone = not cached (local data).
sourceYesSource id, e.g. bmkg, bps, region.
derivedNoTrue when computed locally from source data.
dataAsOfNoISO 8601 time the source says the data is current as of.
warningsYes
sourceUrlYesCanonical URL of the data source.
termsNoteYesShort terms caveat for this source.
attributionYesAttribution wording the provider requires. Show it to users.
retrievedAtYesISO 8601 time with offset when data was fetched by this server.
cacheAgeSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0-rc.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely new behavioral context: matching is fuzzy and alias-aware, and results carry a confidence score, which tells the agent that hits may be approximate and need disambiguation.

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

Conciseness5/5

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

Three tight sentences: what it does, what it returns, and how to sequence it. The examples are front-loaded and each one demonstrates a different alias/abbreviation case rather than padding.

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?

An output schema exists, so the brief return summary is a bonus rather than a requirement, and annotations carry the safety profile. The only omissions are ordering/pagination semantics for results and any note on how the confidence score should be interpreted, both minor for a read-only search.

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

Parameters4/5

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

Schema coverage is 80%, so the baseline is 3; the description earns a bump by illustrating what the query parameter accepts (informal names, abbreviations like 'Kab.') and tying the output to the code-and-hierarchy it produces. It does not discuss level, parent_code, limit or lang, but those are already documented in the schema.

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?

States a specific verb and resource ('Fuzzy, alias-aware search for Indonesian wilayah') and enumerates the four administrative levels it covers. The concrete query examples ('Jogja', 'Kab. Purbalingga') and the stated return payload (Kemendagri codes, hierarchy path, confidence score) make it unmistakable against siblings like nusa_region_get or nusa_region_children.

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?

'Use it first to turn a place name into a code' gives explicit entry-point guidance and implies a downstream workflow with the code-based siblings. It stops short of naming the alternatives or stating when not to use it (e.g. when a code is already known), so it is clear but not complete routing guidance.

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