Skip to main content
Glama
taux-io

TWSE OpenAPI MCP Server

by taux-io

twse_search_datasets

Search available datasets from TWSE OpenAPI. Use keywords or tags to find dataset IDs before fetching data.

Instructions

搜尋證交所 OpenAPI 有哪些資料集可用。取資料前先用這個找 dataset_id。

會比對資料集代號、中文說明與欄位名稱。

Args: query: 關鍵字,例如 "ETF"、"基金"、"融資"、"本益比"、"月營收"。留空列出全部。 tag: 依分類過濾,例如 "證券交易"、"公司治理"、"財務報表"、"指數"、"券商資料"。 limit: 最多回傳幾筆(預設 25)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagNo
limitNo
queryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so description must fully disclose behavior. It explains the search behavior, parameter effects, and that it matches codes/descriptions/field names. No destructive or side effects mentioned, but as a read operation this is acceptable. It lacks rate limit or permission info, but not critical.

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?

Description is concise: two sentences plus parameter list. Front-loaded with purpose, each sentence is necessary. No fluff or redundancy.

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?

Given an output schema exists, return values need not be described. The description covers purpose, parameters, and usage context (TWSE OpenAPI). Could mention that results include dataset_id, but output schema handles that.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description adds rich meaning: query with examples (ETF, 基金), tag with examples (證券交易, 公司治理), and limit with default 25. This fully compensates for missing schema descriptions and helps agents understand usage.

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 searches TWSE OpenAPI datasets to find dataset_id before fetching data. It specifies matching against codes, descriptions, and field names. This distinguishes it from sibling tools (describe, get, realtime quote, snapshot) which serve different purposes.

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?

The description advises using this tool before fetching data and provides parameter usage details (e.g., empty query lists all, tag filters by category). It does not explicitly mention when not to use it or alternatives, but the context and sibling names imply search is for discovery.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/taux-io/twse-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server