Skip to main content
Glama

TWSE Open Data (Taiwan Stock Exchange)

twse_search_datasets

搜尋臺灣證交所與期交所 OpenAPI 有哪些資料集可用。取資料前先用這個找 dataset_id。會比對資料集代號、中文說明與欄位名稱。期交所的資料集代號一律以 taifex/ 開頭,搜期貨與選擇權可用 tag="期貨與選擇權"。

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explains the search matching behavior (against dataset codes, Chinese descriptions, and field names) and the taifex/ prefix convention for futures exchange datasets. This adds meaningful context beyond just 'search', though it doesn't mention return format or rate limits.

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

Conciseness5/5

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

The description is three concise sentences in Chinese, front-loaded with the core purpose, followed by a usage instruction and a useful domain hint. Every sentence adds value and there is no redundant or filler wording.

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

Completeness4/5

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

The tool has 3 optional params, no annotations, and no output schema. The description establishes the tool's role in the workflow (finding dataset_id before fetching), its search scope, and a naming convention. It could mention the return structure, but the purpose implicitly promises dataset IDs in the results, making it sufficiently complete for an AI agent.

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. The description enriches the parameter semantics by explaining that query matches dataset codes, Chinese descriptions, and field names, and by providing a specific tag example for futures/options. This goes beyond the schema's brief parameter descriptions.

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?

The description clearly states the tool's purpose: searching available datasets from Taiwan Stock Exchange and Futures Exchange OpenAPI, specifically to find dataset_id before retrieving data. It distinguishes itself from siblings like twse_get_dataset (which fetches data) and twse_describe_dataset (which describes a dataset).

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?

Provides explicit usage context: '取資料前先用這個找 dataset_id' (use this before fetching data to find dataset_id), and gives a concrete search hint for futures/options using tag='期貨與選擇權'. It does not explicitly name alternative tools or state when not to use it, but the workflow guidance is clear and actionable.

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.