get_region_code
Converts a free-form region name into a 5-digit legal district code required by the MOLIT API. Use before any trade or rent tool to ensure correct region identification.
Instructions
Convert a user-supplied region name to a 5-digit legal district code for the MOLIT API.
Must be called before any trade or rent tool.
Accepts free-form text such as "마포구", "서울 마포구", or "마포구 공덕동".
If multiple matches are returned, show the matches array to the user
and confirm which region they mean before selecting a region_code.
Args:
query: Free-form region name text supplied by the user.
Returns:
region_code: 5-digit code for the API parameter (e.g. "11440")
full_name: Representative legal district name (e.g. "서울특별시 마포구")
matches: List of all matching results (10-digit original code + name)
error/message: Present when no match is found
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": "get_region_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||