{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "twse-mcp.taux.io",
    "site": "taux.io",
    "addresses": [
      {
        "address": "104.21.85.247",
        "endpoints": 3,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.21.64.0/19",
          "country": "US"
        }
      },
      {
        "address": "172.67.212.251",
        "endpoints": 3,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.208.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3033::6815:55f7",
        "endpoints": 3,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3033::/48",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:3032::ac43:d4fb",
        "endpoints": 3,
        "shared_infrastructure": false,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:3032::/48",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.21.85.247",
          "172.67.212.251",
          "2606:4700:3033::6815:55f7",
          "2606:4700:3032::ac43:d4fb"
        ],
        "first_seen": "2026-11-22T21:16:02.071Z",
        "last_seen": "2026-11-22T21:16:02.071Z",
        "checks": 1
      },
      {
        "addresses": [
          "172.67.212.251",
          "104.21.85.247",
          "2606:4700:3032::ac43:d4fb",
          "2606:4700:3033::6815:55f7"
        ],
        "first_seen": "2026-11-21T17:17:01.376Z",
        "last_seen": "2026-11-21T17:17:01.376Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "taiwan-market-open-data",
      "version": "0.15.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=31536000",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 2,
      "sample": [
        {
          "id": "29702",
          "url": "https://roadsafety.taux.io/mcp",
          "server_name": "io.github.foxhsiao/roadsafety-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:51:02.987Z"
        },
        {
          "id": "39757",
          "url": "https://carbon.taux.io/mcp",
          "server_name": "io.github.taux-io/carbon-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T21:15:02.997Z"
        }
      ]
    },
    "same_site": {
      "total": 2,
      "sample": [
        {
          "id": "29702",
          "url": "https://roadsafety.taux.io/mcp",
          "server_name": "io.github.foxhsiao/roadsafety-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T19:51:02.987Z"
        },
        {
          "id": "39757",
          "url": "https://carbon.taux.io/mcp",
          "server_name": "io.github.taux-io/carbon-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T21:15:02.997Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.taux-io",
      "total": 1,
      "sample": [
        {
          "name": "io.github.taux-io/carbon-mcp",
          "title": "Taiwan Carbon Open Data (Unofficial)"
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/taux-io/twse-mcp",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "39758",
    "server_name": "io.github.taux-io/twse-mcp",
    "url": "https://twse-mcp.taux.io/mcp",
    "host": "twse-mcp.taux.io",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T21:16:02.071Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "2de4329fdbe03ab814e07069c5eeea449ce0449bf5e6931efae117fe20b5ad95",
    "first_listed_at": "2026-11-21T17:17:01.376Z",
    "created_at": "2026-11-21T12:05:01.496Z",
    "resolved_addresses": [
      "104.21.85.247",
      "172.67.212.251",
      "2606:4700:3033::6815:55f7",
      "2606:4700:3032::ac43:d4fb"
    ]
  },
  "server": {
    "name": "io.github.taux-io/twse-mcp",
    "title": "Taiwan Market Open Data (Unofficial)",
    "description": "Unofficial. TWSE & TAIFEX open data for AI: stock, ETF & futures snapshots, quotes, 270+ datasets.",
    "version": "0.15.0",
    "registry_status": "active",
    "repository_url": "https://github.com/taux-io/twse-mcp",
    "website_url": "https://github.com/taux-io/twse-mcp",
    "published_at": "2026-09-30T14:29:46.039Z",
    "updated_at": "2026-09-30T14:29:46.039Z",
    "first_seen": "2026-11-21T12:05:00.918Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:51:13.133Z"
  },
  "operator": {
    "key": "taux.io",
    "name": "taux.io",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 295,
    "first_check_in_window": "2026-11-21T17:17:01.376Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "2de4329fdbe03ab814e07069c5eeea449ce0449bf5e6931efae117fe20b5ad95",
    "tools": 10,
    "resources": 0,
    "prompts": 3,
    "first_seen": "2026-11-21T17:17:01.797Z",
    "tool_names": [
      "dataset.search",
      "dataset.describe",
      "dataset.get",
      "snapshot.etf",
      "quote.lookup",
      "snapshot.stock",
      "snapshot.market",
      "snapshot.movers",
      "snapshot.futures",
      "quote.realtime"
    ],
    "declared": {
      "tools": [
        {
          "name": "dataset.search",
          "title": "Search datasets",
          "description": "Search the catalog of Taiwan Stock Exchange (TWSE) OpenAPI and Taiwan Futures Exchange (TAIFEX) OAS datasets and get the dataset_id to fetch. Reads a local catalog (no upstream call). Keywords may be Chinese or English, separated by spaces; every keyword must match. 搜尋臺灣證交所與期交所 OpenAPI 有哪些資料集可用。取資料前先用這個找 dataset_id。範圍比股票廣：還有公司治理、ESG、財報、權證、券商、期貨與選擇權，以及期交所的每日外幣參考匯率——覺得「交易所大概沒有這種資料」時，先搜再下結論。會比對資料集代號、中文說明與欄位名稱；多個關鍵字用空白分隔（每個都要命中），結果依相關度排序。期交所的資料集代號一律以 taifex/ 開頭，搜期貨與選擇權可用 tag=\"期貨與選擇權\"。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "tag": {
                "type": "string",
                "default": "",
                "description": "依分類過濾，例如 \"證券交易\"、\"公司治理\"、\"財務報表\"。"
              },
              "limit": {
                "type": "integer",
                "default": 25,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "最多回傳幾筆（預設 25）。"
              },
              "query": {
                "type": "string",
                "default": "",
                "description": "關鍵字，例如 \"ETF\"、\"融資\"、\"三大法人 期貨\"。留空列出全部。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "source",
              "total_matched",
              "results"
            ],
            "properties": {
              "source": {
                "type": "string"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "dataset_id",
                    "summary",
                    "tags"
                  ],
                  "properties": {
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "summary": {
                      "type": "string"
                    },
                    "dataset_id": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                }
              },
              "total_matched": {
                "type": "number"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Search datasets",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "dataset.describe",
          "title": "Describe dataset",
          "description": "Show one dataset's definition: id, source (TWSE or TAIFEX), summary, tags, and every field key with its Chinese description. The where, sort_by, fields and match parameters of dataset.get take these field keys. Reads the local catalog only, so it has no row counts or dates. 查看某個資料集的定義：代號、來源（證交所或期交所）、中文說明、分類標籤，以及每個欄位的鍵名與中文說明。dataset.get 的 where、sort_by、fields、match 都要用這裡的鍵名（例如 PEratio），不是中文說明。只讀本機目錄、不抓上游，所以不含資料筆數或最新日期。代號不存在時回 error，請先用 dataset.search 找。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "dataset_id"
            ],
            "properties": {
              "dataset_id": {
                "type": "string",
                "description": "來自 dataset.search 的資料集代號，例如 \"exchangeReport/STOCK_DAY_ALL\"。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "id",
              "source",
              "summary",
              "tags",
              "fields",
              "source_note"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "fields": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "source": {
                "enum": [
                  "twse",
                  "taifex"
                ],
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "source_note": {
                "type": "string"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Describe dataset",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "dataset.get",
          "title": "Get dataset rows",
          "description": "Fetch rows from a TWSE OpenAPI or TAIFEX OAS dataset. Find the dataset_id with dataset.search first; do not guess it, since each metric lives in its own table. Supports server-side filtering (code is an exact match; match and where), sorting, field selection and paging: 30 rows by default, 200 at most. For rankings and screens (top 10 by dividend yield, P/E below 10) use where and sort_by instead of paging through rows. Most daily tables hold the previous trading day's after-close data, not live prices; the response note states the period. Data is republished under Taiwan's Open Government Data License. 取得證交所或期交所資料集內容，支援伺服器端過濾、欄位投影與分頁。上游每個資料集都是整份回傳（可能上萬筆），這支工具預設只回前 30 筆（上限 200）；用 code/match/where/fields 縮小到需要的範圍。排名與篩選（殖利率最高的前 20 檔、本益比低於 10 的股票）用 where + sort_by，不要自己翻頁比大小。漲幅榜、跌幅榜與漲停家數用 snapshot.movers：日成交資訊沒有漲跌幅%，依漲跌額排會讓高價股永遠排前面。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "dataset_id"
            ],
            "properties": {
              "code": {
                "type": "string",
                "default": "",
                "maxLength": 64,
                "description": "證券／基金／契約代號，例如 \"0050\"、\"TX\"。一律精確比對（不分大小寫），實際用了哪個欄位會回在 code_field_used。找不到完全相符的代號時回 0 筆，並在 code_candidates 給出拼法相近的代號——**那些是候選不是答案**，可能是不同商品（MXF 與 MXFFX 是不同契約），請確認後改用該代號重查，不要直接引用它們的數字。"
              },
              "limit": {
                "type": "integer",
                "default": 30,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "回傳筆數上限（硬上限 200）。"
              },
              "match": {
                "type": "object",
                "description": "其他欄位的子字串過濾，例如 {\"基金類型\": \"ETF\"}。最多 20 個欄位，值最長 100 字。",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "order": {
                "enum": [
                  "desc",
                  "asc"
                ],
                "type": "string",
                "default": "desc",
                "description": "\"desc\"（大到小，預設）或 \"asc\"。"
              },
              "where": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "op",
                    "value"
                  ],
                  "properties": {
                    "op": {
                      "enum": [
                        "gt",
                        "gte",
                        "lt",
                        "lte",
                        "eq",
                        "ne"
                      ],
                      "type": "string",
                      "description": "比較方式：gt 大於、gte 大於等於、lt 小於、lte 小於等於、eq 等於、ne 不等於。"
                    },
                    "field": {
                      "type": "string",
                      "maxLength": 200,
                      "description": "欄位鍵名（dataset.describe 列出的鍵名），例如 \"PEratio\"。"
                    },
                    "value": {
                      "type": "number",
                      "description": "要比較的數值。"
                    }
                  }
                },
                "maxItems": 10,
                "description": "數值條件，全部都要成立。例如本益比低於 10、殖利率至少 5%：[{\"field\":\"PEratio\",\"op\":\"lt\",\"value\":10},{\"field\":\"DividendYield\",\"op\":\"gte\",\"value\":5}]。欄位值會去逗號轉數字；空值或非數字（例如虧損公司的本益比）無法比較，會被排除並回報筆數。"
              },
              "fields": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 200
                },
                "maxItems": 100,
                "description": "只回傳這些欄位。"
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "分頁位移。"
              },
              "sort_by": {
                "type": "string",
                "default": "",
                "maxLength": 200,
                "description": "依這個欄位排序，在分頁之前做——要「前 N 名」就用它配 limit。多數值是數字就依數值排，否則依字串排；空值與非數字一律排最後。"
              },
              "dataset_id": {
                "type": "string",
                "description": "資料集代號，例如 \"exchangeReport/STOCK_DAY_ALL\"。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "dataset_id",
              "summary",
              "rows_in_source",
              "rows_matched",
              "returned",
              "offset",
              "note",
              "source",
              "data"
            ],
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "note": {
                "type": "string"
              },
              "offset": {
                "type": "number"
              },
              "source": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "returned": {
                "type": "number"
              },
              "dataset_id": {
                "type": "string"
              },
              "rows_matched": {
                "type": "number"
              },
              "rows_in_source": {
                "type": "number"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Get dataset rows",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "snapshot.etf",
          "title": "ETF snapshot",
          "description": "One TWSE-listed ETF in a single call: fund profile, the previous trading day's price and volume, and regular-savings (定期定額) popularity. Source: TWSE OpenAPI, updated after each trading day; not live. A section that cannot be fetched comes back null with a caveat. 一次取得單一上市 ETF 的完整概況：基本資料 + 前一交易日價量 + 定期定額熱度。價量為前一交易日，不是盤中即時；要當下價格請用 quote.realtime。合併三個證交所資料集並行查詢。任何一段查不到都會標成 null 並記在 caveats，不會整個失敗。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{1,10}$",
                "description": "ETF 代號，例如 \"0056\"、\"0050\"、\"00878\"。"
              },
              "include_realtime": {
                "type": "boolean",
                "default": false,
                "description": "是否附上盤中即時報價。預設 false，需要當下價格時才帶 true（多一次外呼）。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "code",
              "name",
              "is_etf",
              "profile",
              "quote",
              "realtime",
              "regular_savings",
              "derived",
              "caveats",
              "source"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "quote": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_etf": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "source": {
                "type": "string"
              },
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "derived": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "profile": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "realtime": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "const": "未查詢"
                  }
                ]
              },
              "regular_savings": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "ETF snapshot",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "quote.lookup",
          "title": "Look up stock code",
          "description": "Find the code of a TWSE-listed company or fund (including ETFs) from its name or code, e.g. 台積電 → 2330. Use it first when the user gives only a name. English matching covers the exchange's English short names (TSMC, UMC, MediaTek) and fund English names, not full company names; if an English name finds nothing, try its short form or the Chinese name. Listed (TWSE) securities only. Source: TWSE OpenAPI. 用名稱或代號找上市公司與上市基金（含 ETF）的代號。使用者只講名稱（「台積電」「元大高股息」）時先用這個取得代號，不要憑印象猜代號。比對公司簡稱、全名、英文簡稱與代號，不分全半形與台／臺。只收上市標的；上櫃公司的名稱對照取不到。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 10,
                "maximum": 50,
                "minimum": 1,
                "description": "最多回傳幾筆（預設 10，上限 50）。"
              },
              "query": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "名稱或代號，例如 \"台積電\"、\"TSMC\"、\"高股息\"、\"2330\"。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query",
              "total_matched",
              "results",
              "caveats",
              "source"
            ],
            "properties": {
              "query": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "total_matched": {
                "type": "number"
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Look up stock code",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "snapshot.stock",
          "title": "Stock snapshot",
          "description": "One TWSE-listed company in a single call: profile, the previous trading day's price and volume, P/E, dividend yield, P/B, latest monthly revenue, dividends and upcoming ex-dividend dates, attention/disposition status, and market cap. Optional sections: financial statements (include_financials; year-to-date cumulative figures), corporate governance (include_governance), margin trading and securities lending (include_margin), ESG disclosures (esg_topics). To compare 2–5 companies side by side (price, P/E, dividend yield, P/B, market cap), pass codes instead of code. For recent history (daily closes and volume, the period change, plus daily P/E, dividend yield, P/B and margin/short balances; this service archives prices since 2026-09-29 and P/E and margin figures since 2026-10-20, null before that), pass history_days. Source: TWSE OpenAPI; daily tables are previous-trading-day, revenue monthly, financials quarterly; not live. 一次取得單一上市公司的完整概況：基本資料、前一交易日價量、本益比／殖利率／股價淨值比、最新月營收（含月增率與年增率）、近一年各期股利與近期除權除息預告、是否為注意股或處置股，以及市值。合併八個證交所資料集。價量為前一交易日，不是盤中即時；要當下價格請用 quote.realtime。要財報（損益、資產負債、毛利率等，會自動找對業別的表）帶 include_financials；要公司治理（董事長兼任總經理、董監質押、裁罰、董監持股不足）帶 include_governance。要融資融券餘額、券資比與可借券賣出股數帶 include_margin。要 ESG 帶 esg_topics（主題名稱陣列，最多 6 個）；只說「ESG」時用溫室氣體排放、能源管理、董事會、人力發展。要並排比較 2–5 家（價量、本益比、殖利率、股價淨值比、市值）時，改帶 codes 而不是 code。要最近幾個交易日的走勢（每日收盤價量、每日本益比／殖利率／股價淨值比與融資融券餘額、期間漲跌幅；本服務自 2026-09-29 起存檔價量，本益比與融資融券自 2026-10-20 起）帶 history_days。ETF 請用 snapshot.etf。任何一段查不到都會標成 null 並記在 caveats，不會整個失敗。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "code": {
                "type": "string",
                "pattern": "^[0-9A-Za-z]{1,10}$",
                "description": "上市公司股票代號，例如 \"2330\"、\"2317\"。只知道名稱時先用 quote.lookup。與 codes 擇一。"
              },
              "codes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9A-Za-z]{1,10}$"
                },
                "maxItems": 5,
                "minItems": 2,
                "description": "要並排比較的 2–5 檔代號，例如 [\"2330\", \"2303\", \"2454\"]。回傳 compared：每檔的價量、本益比、殖利率、股價淨值比與市值。與 code 擇一；比較模式不支援 include_financials、include_governance、include_margin、esg_topics。"
              },
              "esg_topics": {
                "type": "array",
                "items": {
                  "enum": [
                    "溫室氣體排放",
                    "能源管理",
                    "水資源管理",
                    "廢棄物管理",
                    "人力發展",
                    "董事會",
                    "投資人溝通",
                    "氣候相關議題管理",
                    "功能性委員會",
                    "燃料管理",
                    "產品生命週期",
                    "食品安全",
                    "供應鏈管理",
                    "產品品質與安全",
                    "社區關係",
                    "資訊安全",
                    "普惠金融",
                    "持股及控制力",
                    "風險管理政策",
                    "反競爭行為法律訴訟",
                    "職業安全衛生"
                  ],
                  "type": "string"
                },
                "maxItems": 6,
                "description": "附上這些 ESG 主題的最新年度申報資料（每個主題多一次外呼）。不帶就不查。例如資訊安全含資訊外洩事件數與受影響顧客數，職業安全衛生含職災人數，董事會含女性董事比率。約一半的主題只有特定產業須揭露；公司不在某主題的表中會標明，不代表數值為 0。氣候相關議題管理是長篇文字，只在問到氣候風險時才帶。"
              },
              "history_days": {
                "type": "integer",
                "maximum": 250,
                "minimum": 2,
                "description": "附上最近 N 個交易日的收盤價量與整段期間的漲跌幅（本服務自己存的日成交資訊，存檔自 2026-09-29 開始；不足 N 日會說明）。每列另附當天的本益比（pe_ratio，虧損公司是 null）、殖利率（dividend_yield）、股價淨值比（pb_ratio）、融資餘額（margin_balance）與融券餘額（short_balance），這幾項自 2026-10-20 才開始存，更早的日子是 null。問「最近走勢」「這個月漲多少」「本益比變化」「融資水位」時才帶。不支援比較模式（codes）。"
              },
              "include_margin": {
                "type": "boolean",
                "default": false,
                "description": "附上融資融券（買賣、餘額、增減、使用率、券資比、停止或分配註記）與當日可借券賣出股數（多兩次外呼）。預設 false。"
              },
              "include_financials": {
                "type": "boolean",
                "default": false,
                "description": "附上最新一季財報摘要：營收、毛利率、營業利益率、淨利率、每股盈餘、每股參考淨值、資產負債與負債比率（多一到兩次外呼）。預設 false。"
              },
              "include_governance": {
                "type": "boolean",
                "default": false,
                "description": "附上公司治理摘要（多五次外呼）。預設 false。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "note",
              "caveats",
              "source"
            ],
            "properties": {
              "esg": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "string",
                    "const": "未查詢"
                  }
                ]
              },
              "code": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "note": {
                "type": "string"
              },
              "quote": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "alerts": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "margin": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "string",
                    "const": "未查詢"
                  }
                ]
              },
              "source": {
                "type": "string"
              },
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "derived": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "history": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "profile": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "compared": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "dividends": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "valuation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "financials": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  },
                  {
                    "type": "string",
                    "const": "未查詢"
                  }
                ]
              },
              "governance": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "string",
                    "const": "未查詢"
                  }
                ]
              },
              "monthly_revenue": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "is_listed_company": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "upcoming_ex_rights": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Stock snapshot",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "snapshot.market",
          "title": "Market overview",
          "description": "Whole-market overview for the previous trading day: TAIEX and its change, turnover, advancers and decliners, top 10 by volume, plus futures positioning (institutional net open interest, TAIEX futures positions, put/call ratio, large traders). scope=\"events\" lists ex-dividend dates and shareholder meetings in the next two weeks and attention/disposition stocks. Every scope also includes a trading calendar: whether the market is open today and the next trading day (TWSE holiday schedule). Sources: TWSE OpenAPI and TAIFEX OAS; not live. 一次看完整體市場（前一交易日）：加權指數與漲跌、成交金額、上市股票漲跌家數、成交量前十名；以及期貨籌碼：三大法人期貨未平倉淨部位、台指期各法人部位、Put/Call 比、台指期大額交易人淨部位。只要其中一邊時用 scope=\"stock\" 或 \"futures\"。scope=\"events\" 另外列出全市場的近期事件：兩週內的除權除息與股東會、今天公布的注意股、處置中與即將處置的股票（皆為上市）；每個 scope 都附交易日曆：今天有沒有開盤、下一個交易日（證交所休市日表）。只問某一檔股票的除息、注意或處置狀態時，用 snapshot.stock。不含個別契約的行情價格；要查台指期、小台、個股期貨等單一期貨契約的收盤價與部位，用 snapshot.futures。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "scope": {
                "enum": [
                  "all",
                  "stock",
                  "futures",
                  "events"
                ],
                "type": "string",
                "default": "all",
                "description": "\"all\"（預設，證券市場加期貨籌碼）、\"stock\"、\"futures\"，或 \"events\"（近期事件行事曆）。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "note",
              "caveats",
              "source"
            ],
            "properties": {
              "note": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "交易日曆": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "期貨籌碼": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "證券市場": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "事件行事曆": {
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Market overview",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "snapshot.movers",
          "title": "Top gainers and losers",
          "description": "Top gainers and losers by percentage change among TWSE-listed stocks for the previous trading day, plus how many closed limit-up and limit-down. Each row has the code, name, close, change, percentage change and volume. Use it for \"top gainers / top losers / which stocks hit the daily limit\" instead of sorting dataset.get by price change, which ranks by absolute points and puts high-priced stocks first. Limit-up and limit-down are derived from the previous close and the tick size (the data carries no flag). Listed stocks only (4-digit codes, no ETFs or warrants); OTC (TPEx) is not covered. Source: TWSE OpenAPI; not live. 上市股票前一交易日的漲幅與跌幅排行（依漲跌幅%，不是依漲跌額），以及漲停、跌停家數。問「漲幅榜」「跌幅榜」「今天漲停幾檔」時用這個，不要用 dataset.get 依漲跌排序——那會依點數排，股價高的永遠排前面。漲停與跌停是依前收盤與升降單位推算（資料本身沒有標記）。範圍是上市股票（四碼代號，不含 ETF 與權證），不含上櫃。資料為前一交易日，不是盤中即時；要當下價格請用 quote.realtime。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "limit": {
                "type": "integer",
                "default": 10,
                "maximum": 30,
                "minimum": 1,
                "description": "漲幅與跌幅各取前幾名，預設 10，最多 30。漲停與跌停家數不受這個數字影響，數的是全部個股。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "日期",
              "範圍",
              "漲幅排行",
              "跌幅排行",
              "漲停家數",
              "跌停家數",
              "note",
              "caveats",
              "source"
            ],
            "properties": {
              "note": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "日期": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "範圍": {
                "type": "string"
              },
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "漲停家數": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "漲幅排行": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "跌停家數": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "跌幅排行": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Top gainers and losers",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "snapshot.futures",
          "title": "Futures contract snapshot",
          "description": "One TAIFEX futures contract for the latest trading day: open, high, low, close, change, volume, settlement and open interest for each contract month (regular and after-hours sessions), a near-month summary, institutional and large-trader positions, and final settlement prices. Accepts codes (\"TX\", \"MTX\") or Chinese names; an ambiguous name returns candidates only. Source: TAIFEX OAS; futures only; not live. 一個期貨契約（最新一個交易日）的完整概況：各月份的開高低收、漲跌、成交量、結算價、未平倉（一般與盤後時段）、近月摘要、三大法人部位（指數類期貨）、大額交易人部位與最後結算價。可用代號（\"TX\"、\"MTX\"、\"TMF\"、\"CDF\"）或名稱（\"台指期\"、\"小台\"、\"台積電期貨\"）；名稱對到多個契約時只回 candidates，請向使用者確認再用代號重查。只含期貨；選擇權與整體期貨籌碼請用 dataset.search 或 snapshot.market。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "contract"
            ],
            "properties": {
              "contract": {
                "type": "string",
                "maxLength": 40,
                "minLength": 1,
                "description": "期貨契約代號或名稱，例如 \"TX\"、\"小台\"、\"台積電期貨\"。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query",
              "contract",
              "name",
              "caveats",
              "source"
            ],
            "properties": {
              "date": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "query": {
                "type": "string"
              },
              "quotes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "source": {
                "type": "string"
              },
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "contract": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "candidates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "near_month": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "institutional": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "large_traders": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "final_settlement": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Futures contract snapshot",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "quote.realtime",
          "title": "Real-time quote",
          "description": "Intraday quotes, refreshed about every 5 seconds, for up to 50 TWSE-listed (market=\"tse\") or OTC (market=\"otc\") codes; each quote carries the trading date it belongs to. Source: the TWSE Market Information System (mis.twse.com.tw), which is not covered by the Open Government Data License. 取得盤中即時報價（約 5 秒更新一次），每筆帶 date（報價所屬交易日）。OpenAPI 只有前一交易日資料，要當下的價格得走基本市況報導站。ETF 與上市股票用 market=\"tse\"，上櫃用 \"otc\"。",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "codes"
            ],
            "properties": {
              "codes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9A-Za-z]{1,10}$"
                },
                "maxItems": 50,
                "description": "代號清單，例如 [\"0050\", \"0056\", \"2330\"]。"
              },
              "market": {
                "enum": [
                  "tse",
                  "otc"
                ],
                "type": "string",
                "default": "tse",
                "description": "\"tse\"（上市）或 \"otc\"（上櫃）。"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "count",
              "quotes",
              "units",
              "caveats",
              "source"
            ],
            "properties": {
              "count": {
                "type": "number"
              },
              "units": {
                "type": "string"
              },
              "quotes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": {}
                }
              },
              "source": {
                "type": "string"
              },
              "caveats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": {}
          },
          "annotations": {
            "title": "Real-time quote",
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": [
        {
          "name": "find_dataset",
          "description": "不知道該用哪個資料集時，用關鍵字找出對的那一個",
          "arguments": [
            {
              "name": "query",
              "required": true,
              "description": "關鍵字，例如 \"三大法人\"、\"融資\"、\"ESG\"。"
            }
          ]
        },
        {
          "name": "etf_overview",
          "description": "一次看完一檔上市 ETF 的基本資料、前一交易日價量與定期定額熱度",
          "arguments": [
            {
              "name": "code",
              "required": true,
              "description": "ETF 代號，例如 \"0050\"、\"0056\"、\"00878\"。"
            }
          ]
        },
        {
          "name": "futures_quote",
          "description": "查期貨或選擇權的每日行情（臺灣期貨交易所）",
          "arguments": [
            {
              "name": "contract",
              "required": true,
              "description": "契約代號或商品名，例如 \"TX\"、\"TXO\"、\"臺股期貨\"。"
            }
          ]
        }
      ]
    },
    "instructions": "使用要點：\n1. 先搜尋再取用。資料集有 275 個，名稱不直覺——ETF 的主檔叫「基金基本資料彙總表」，搜「ETF」找不到它。不確定該用哪一個時，先呼叫 dataset.search，不要憑印象猜 dataset_id。\n2. code 是精確比對。找不到完全相符的代號時會回 0 筆並附上 code_candidates，**那是拼法相近的候選，不是答案**——期交所的 MXF（小型臺指期貨）與 MXFFX（客製化小型臺指）是不同契約，年成交量差兩百萬倍。請向使用者確認要查哪一個，再用該代號重新查詢；絕對不要直接引用候選代號的數字。\n\n資料來源與授權：\n臺灣證券交易所 2026 臺灣證券交易所 OpenAPI\n金融監督管理委員會證券期貨局 2026 臺灣期貨交易所 OAS\n此開放資料依政府資料開放授權條款 (Open Government Data License) 進行公眾釋出，使用者於遵守本條款各項規定之前提下，得利用之。\n政府資料開放授權條款：https://data.gov.tw/license\n\n例外：quote.realtime 的來源是證交所基本市況報導站（mis.twse.com.tw），該站未登錄於政府資料開放平臺，不在上述授權範圍內。"
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}