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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||