Twinkle HubTwinkle Hub
로그인

📌 2026-06-30 추가: 🎓 Teacher exam dual corpus — 12,731 qualification questions + 2,421 recruitment questions (519개 데이터셋)

전체 changelog 보기 →

行政區代碼查詢

twtools-lookup_admin_code

TW 전용MIT

縣市 [+ 鄉鎮市區] → 內政部 8 碼法定行政區代碼 (sub-ms in-process).

Args:
    county: 縣市名 e.g. '臺北市' / '新北市' / '宜蘭縣'
            (台/臺 兩種寫法都接受, auto normalise)
    town: 鄉鎮市區名 e.g. '信義區' / '羅東鎮' (空字串=只查 county)

Returns:
    {found, county, town, county_code (5-digit e.g. '63000'),
     town_code (8-digit e.g. '63000020')}

Use case: 把含 (city, 鄉鎮市區) 的 dataset row 補上 admin code
          → cross-dataset JOIN with stats / 健保 / 房價 datasets.

Mapping coverage: 全國 22 縣市 368 (county, town) pairs, OGDL v1.

입력 스키마

{
  "properties": {
    "county": {
      "title": "County",
      "type": "string"
    },
    "town": {
      "default": "",
      "title": "Town",
      "type": "string"
    }
  },
  "required": [
    "county"
  ],
  "title": "lookup_admin_codeArguments",
  "type": "object"
}

호출 방법

Twinkle Hub MCP 클라이언트가 설정되면 에이전트는 twtools-lookup_admin_code을 봅니다. 호출을 요청하기만 하면 — 예시:

# Ask Claude / any MCP client:
請用 twtools-lookup_admin_code 處理 "…"。

# It will call:
twtools-lookup_admin_code(input="…")

아직 클라이언트를 설정하지 않으셨나요?

Claude Desktop은 3 분이면 연결 — .mcpb 다운로드 후 더블 클릭, 다른 클라이언트는 docs 참조.

사용자 문서 보기