Skip to main content
Glama

get_villages_in_district

Retrieve a list of villages within a specific district to obtain location codes for weather forecasting. This tool helps users identify precise areas for meteorological data access.

Instructions

Mendapatkan daftar semua kelurahan/desa dalam kecamatan tertentu dari database lokal.

Args:
    district_code: Kode kecamatan (contoh: "33.02.07" untuk Sumpiuh)

Returns:
    Daftar kelurahan/desa dengan kode lengkap yang siap digunakan untuk prakiraan cuaca.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
district_codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses this is a read operation from a local database and mentions the output format ('daftar kelurahan/desa dengan kode lengkap'), but doesn't cover important behavioral aspects like error handling, data freshness, rate limits, or authentication requirements. It adds some context about the data's purpose but leaves significant gaps in behavioral understanding.

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?

The description is appropriately sized with three focused sentences: purpose statement, parameter explanation with example, and return value clarification. It's front-loaded with the core functionality. The bilingual presentation (Indonesian/English) is slightly redundant but still efficient. Every sentence adds value, though the structure could be slightly more streamlined.

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?

Given the tool's simple nature (single parameter, read-only operation, has output schema), the description provides adequate context. It covers the purpose, parameter meaning with example, and output purpose. The existence of an output schema means the description doesn't need to detail return structure. However, for a database query tool, additional context about data source reliability or update frequency would be beneficial.

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

Parameters5/5

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

With 0% schema description coverage (schema has no parameter descriptions), the description fully compensates by providing essential semantic information: it explains what 'district_code' represents ('Kode kecamatan'), provides a concrete example ('33.02.07 untuk Sumpiuh'), and clarifies this is a required input. The description adds substantial value beyond the bare 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?

The description clearly states the specific action ('Mendapatkan daftar semua kelurahan/desa' - Getting a list of all villages/subdistricts) and resource ('dalam kecamatan tertentu dari database lokal' - within a specific district from the local database). It distinguishes from siblings by focusing on village-level data retrieval rather than earthquake or weather data, which are handled by other tools.

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?

The description implies usage context by specifying it retrieves village data for weather forecasting purposes ('siap digunakan untuk prakiraan cuaca'), but doesn't explicitly state when to use this tool versus alternatives like 'search_location_code' or 'search_weather_alerts_by_kecamatan'. It provides some directional guidance but lacks explicit comparison or exclusion criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/revomkg/mcp-bmkg'

If you have feedback or need assistance with the MCP directory API, please join our Discord server