Skip to main content
Glama
taux-io

TWSE OpenAPI MCP Server

by taux-io

twse_get_dataset

Retrieve TWSE dataset content with filtering by security code, field matching, column projection, and pagination to limit results.

Instructions

取得證交所資料集內容,支援伺服器端過濾、欄位投影與分頁。

證交所每個 endpoint 都是一次回整份資料(可能上千筆),所以務必用 code / match / fields 縮小範圍,不要無條件拉全部。

Args: dataset_id: 資料集代號,例如 "exchangeReport/STOCK_DAY_ALL"。 code: 證券/基金代號,例如 "0050"。會自動偵測該表的代號欄位名稱。 match: 其他欄位的子字串過濾,例如 {"基金類型": "ETF"}。 fields: 只回傳這些欄位,例如 ["Code", "Name", "ClosingPrice"]。 limit: 回傳筆數上限(硬上限 200)。 offset: 分頁位移。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
limitNo
matchNo
fieldsNo
offsetNo
dataset_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries full burden. It discloses server-side filtering, a hard limit of 200 for limit parameter, and auto-detection of code column name. However, it omits error handling, permissions, rate limits, or idempotency, so it's adequate but not comprehensive.

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 concise and well-structured: a one-sentence purpose, a crucial usage warning, then a bullet list of args. Every sentence adds value with no 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?

The description covers core usage, filtering, and pagination. Since an output schema exists, return format is not needed. It lacks error handling or prerequisites, but for a data retrieval tool with good parameter docs, it's nearly complete.

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%, so the description fully compensates. It explains all 6 parameters with concrete examples (e.g., dataset_id like 'exchangeReport/STOCK_DAY_ALL', code like '0050', match as dict, fields as array), adding meaning beyond the schema's type-only definitions.

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 '取得證交所資料集內容' (get TWSE dataset content) with support for server-side filtering, field projection, and pagination. It distinguishes from siblings like twse_search_datasets (search) and twse_describe_dataset (describe structure) by focusing on retrieving actual data rows.

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

Usage Guidelines5/5

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

The second paragraph explicitly advises using code/match/fields to narrow scope and warns against unconditional full pulls ('不要無條件拉全部'). It provides examples for each parameter and implies when to use filtering, fulfilling the when-to-use and when-not-to-use criteria.

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