Skip to main content
Glama

Get one administrative region by code

nusa_region_get
Read-onlyIdempotent

Fetch a single Indonesian region by Kemendagri code to retrieve its hierarchy path, centroid, and time zone for location lookup and regional data validation.

Instructions

Returns one wilayah by its official Kemendagri code, with hierarchy path, centroid (province/regency only) and time zone (WIB/WITA/WIT).

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": {
      "code": "<code>"
    },
    "name": "nusa_region_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesKemendagri region code, e.g. 33.03 (Kabupaten Purbalingga). Dots required.
langNoLanguage of the human-readable text block: id (Indonesian) or en (English).id

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

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds real context beyond that: the response includes a hierarchy path, centroid is only available at province/regency level, and time zone is expressed as WIB/WITA/WIT. However, it says nothing about lookup failure behavior for an unknown or malformed code, which is the main behavioral risk for a code-keyed getter.

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?

A single sentence, front-loaded with the verb and key, with parenthetical qualifiers kept tight ('centroid (province/regency only)', '(WIB/WITA/WIT)'). No filler or restatement of the title. Slightly dense with stacked qualifiers, but nothing wasted.

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?

The tool is simple (one required string key, one optional enum) and an output schema exists, so return values need not be explained in prose. The description covers the lookup key, the notable payload fields, and the centroid availability caveat. The only meaningful gap is not stating what happens when a code matches no region.

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%, with 'code' documented including a pattern example (33.03) and a dots-required note, and 'lang' carrying an enum and default, so the baseline is 3. The description adds no parameter-level meaning — it never mentions the lang option or how it affects the returned text block — so it does not exceed the schema.

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

Purpose4/5

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

The description gives a specific verb and resource ('Returns one wilayah') plus the lookup key ('by its official Kemendagri code'), which separates it from bulk/list siblings like nusa_region_search and nusa_region_children. It also names the payload (hierarchy path, centroid, time zone), so the agent knows exactly what a call yields. It stops short of naming a sibling alternative, which keeps it at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is only implied: the phrase 'by its official Kemendagri code' signals this tool applies when a code is already known, and the schema reinforces that code is required. There is no explicit when-to-use/when-not statement and no named alternative for the case where the agent has a name rather than a code (e.g. a search tool). Adequate but leaves routing to inference.

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