Twinkle HubTwinkle Hub
登入

📌 2026-08-17 新增:⚖️ 台灣法條時光機 — 歷史法條原文 · 修法沿革 · 全文檢索 · 條文關聯圖(935 個 dataset · 35,454+ 筆 row)

查看完整 Changelog →

新加坡 開放資料 資料集搜尋 (data.gov.sg)

sg_search_datasets

台灣​專屬MIT

**關鍵字 / Keywords**: 新加坡 開放資料 資料集 搜尋 政府 GovTech 統計 singapore sg opendata dataset search HDB housing MRT transport population rainfall URA URA MOM MOE

Scope: Singapore data.gov.sg · 4,623 datasets across 57 agencies.

Substring search over dataset name + description (case-insensitive),
with optional format and agency filters. Backed by a locally cached
catalog snapshot (rebuilt daily by `scripts.build_sg_catalog`). We
cache because server-side search on data.gov.sg's v2 REST endpoint
does NOT work — every documented search parameter returns the
unchanged totalRowCount=4623.

Args:
    query: substring against name + description (case-insensitive).
           Empty string matches everything (browse mode).
    format: filter by format ("CSV", "JSON", "GEOJSON", "KML", ...).
    agency: substring match on the publishing agency name
            (case-insensitive · e.g. "URA", "MOH", "Statistics").
    limit: max results (default 20, max 100).

Returns dict with:
    data: [{datasetId, name, format, agency, coverageStart,
            coverageEnd, lastUpdatedAt, url}, ...] sorted by
          lastUpdatedAt desc.
    note: "matched N of 4623 total · returning top K"

License: Singapore Open Data Licence v1.0.

輸入 schema

{
  "properties": {
    "query": {
      "default": "",
      "title": "Query",
      "type": "string"
    },
    "format": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Format"
    },
    "agency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Agency"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    }
  },
  "title": "sg_search_datasetsArguments",
  "type": "object"
}

呼叫​方式

配置​好 Twinkle Hub 的 MCP client 後,​agent 會​看到 sg_search_datasets。直接讓它呼叫​即可,​例如:

# Ask Claude / any MCP client:
請用 sg_search_datasets 處理 "…"。

# It will call:
sg_search_datasets(input="…")

尚未​設定 Client?

Claude Desktop 約 3 分鐘即可完成​設定 — 下載 .mcpb 檔案並雙擊​即可,或參閱​文件中的各 Client 安裝​步驟。

查看使用者設定​文件