Skip to main content
Glama

Taiwan Market Open Data (Unofficial)

Search datasets

dataset.search
Read-onlyIdempotent

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="期貨與選擇權"。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNo依分類過濾,例如 "證券交易"、"公司治理"、"財務報表"。
limitNo最多回傳幾筆(預設 25)。
queryNo關鍵字,例如 "ETF"、"融資"、"三大法人 期貨"。留空列出全部。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsYes
total_matchedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-open-world, non-destructive, so safety is covered. The description adds genuinely useful behavior beyond that: it reads a local catalog with no upstream call, matches against dataset codes, Chinese descriptions and column names, requires every space-separated keyword to match, and sorts by relevance. Only minor gaps (no note on result shape/pagination) remain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the 'no upstream call' fact are front-loaded well, but the description is roughly doubled by a Chinese block that largely restates the English text, and its scope examples bloat it further. Much of the length is translation redundancy rather than additive information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is a search with an output schema present, so return values need not be described. Goal, invocation trigger, matching rules, filtering conventions, and the safe read-only nature are all covered, leaving nothing an agent needs missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics: it explains keyword matching rules (Chinese or English, space-separated, all must match), the taifex/ code-prefix convention, and a concrete tag value ('期貨與選擇權') for futures/options filtering that the schema only gestures at.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search the catalog of TWSE OpenAPI and TAIFEX OAS datasets') and immediately frames the output purpose ('get the dataset_id to fetch'), which cleanly separates it from dataset.get and dataset.describe. An agent can tell exactly what this tool is for.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear workflow trigger ('取資料前先用這個找 dataset_id' / search before fetching) plus a strong heuristic: search before concluding the exchange lacks a dataset, listing the surprisingly broad categories covered. It stops short of naming the sibling tools (dataset.get / dataset.describe) explicitly as the next/alternative step.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.