Convert an old (pre-2025) ward/district/province to the new unit
convert_legacy_addressConverts split legacy Vietnamese address fields (ward, district, province) into the current two-level structure, flagging split or ambiguous wards with confidence and alternatives.
Instructions
Converts a pre-July-2025 administrative address given as separate fields to the new 2-level structure. Prefer this over normalize_address when the parts are already split (e.g. database columns). Đổi xã/phường/huyện/tỉnh cũ sang đơn vị hành chính mới. If the old ward was divided between several new wards, the result has confidence "split_default" and lists every alternative. Omitting the district works when the ward name is unique in the province; otherwise the result is "ambiguous".
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": {
"province": "<province>"
},
"name": "convert_legacy_address"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ward | No | Old ward/commune, e.g. "Phường Bến Nghé". Omit only for the five island districts (e.g. Côn Đảo). | |
| street | No | Street/house number, returned unchanged inside the formatted address. | |
| district | No | Old district, e.g. "Quận 1" or "Huyện Kỳ Anh". Optional but recommended. | |
| province | Yes | Old province, e.g. "Tỉnh Bình Dương" or "Hà Giang". |