Skip to main content
Glama
pyang2045

TWSE MCP Server

by pyang2045

TWSE MCP Server

npm version License: MIT Node.js Version

A Model Context Protocol (MCP) server that provides real-time access to Taiwan Stock Exchange (TWSE) market data, financial reports, and trading analytics through Claude Desktop.

๐Ÿš€ Quick Start

npx twse-mcp

No installation required! The server connects directly to TWSE's official API to provide comprehensive market data.

Related MCP server: Taiwan Stock Real-Time Analysis MCP Server

๐Ÿ“‹ Features

Market Data & Analytics

  • ๐Ÿ“Š Real-time Trading Data - Daily stock prices, volumes, and OHLC data

  • ๐Ÿ“ˆ Market Indices - TAIEX and sector indices with real-time updates

  • ๐Ÿ’น Technical Indicators - P/E ratios, dividend yields, price-to-book values

  • ๐Ÿ“‰ Trading Analytics - Top volume stocks, margin trading, 5-second bid/ask stats

Financial Intelligence

  • ๐Ÿ’ฐ Financial Statements - Quarterly income statements and balance sheets

  • ๐Ÿ“Š Revenue Reports - Monthly revenue with YoY/MoM comparisons

  • ๐ŸŽฏ Profitability Metrics - ROE, ROA, profit margins by company

  • ๐Ÿญ Industry Analysis - EPS statistics and comparisons by sector

Investment Insights

  • ๐ŸŒ Foreign Investment - Top foreign holdings and sector preferences

  • ๐Ÿ“ˆ ETF Rankings - Most popular ETFs by investor accounts

  • ๐Ÿข Corporate Actions - New IPOs and delisted companies

  • ๐Ÿ“… Market Calendar - Trading holidays and market schedules

๐Ÿ› ๏ธ Installation

# Run directly without installation
npx twse-mcp

Option 2: Global Installation

# Install globally
npm install -g twse-mcp

# Run the server
twse-mcp

Option 3: Local Development

# Clone repository
git clone https://github.com/pyang2045/twsemcp.git
cd twse-mcp

# Install dependencies
npm install

# Build and run
npm run build
npm start

๐Ÿ”ง Claude Desktop Configuration

macOS

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "twse": {
      "command": "npx",
      "args": ["twse-mcp"],
      "env": {}
    }
  }
}

Windows

Add to %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "twse": {
      "command": "npx",
      "args": ["twse-mcp"],
      "env": {}
    }
  }
}

๐Ÿ“š Available Tools

Market Data (6 tools)

Tool

Description

Example Query

getStockDaily

Daily trading data for all stocks

"Show today's stock prices"

getStockPERatios

Valuation metrics

"Find undervalued stocks"

getMarketIndex

Market indices (TAIEX, etc.)

"How's the market today?"

getStockDayAvg

Daily close vs monthly average

"Show price averages"

getMonthlyStats

Monthly trading statistics

"Get monthly highs and lows"

searchStock

Search specific stock

"Find TSMC stock data"

Financial Reports (6 tools)

Tool

Description

Example Query

getMonthlyRevenue

Monthly revenue reports

"Show revenue growth"

getIncomeStatement

Quarterly P&L statements

"Get earnings data"

getBalanceSheet

Quarterly balance sheets

"Check debt levels"

getIndustryEPS

EPS by industry

"Compare sector earnings"

getProfitAnalysis

ROE, ROA, margins

"Find profitable companies"

searchFinancials

Company-specific financials

"Get TSMC financial reports"

Trading Analysis (3 tools)

Tool

Description

Example Query

getTop20Volume

Most traded stocks

"What's hot today?"

getMarginTrading

Margin/short data

"Show leverage levels"

getFiveSecondStats

Real-time bid/ask

"Get order flow"

Investment Research (7 tools)

Tool

Description

Example Query

getTopForeignHoldings

Top foreign holdings

"What are foreigners buying?"

getForeignCategoryHoldings

Foreign investment by sector

"Foreign sector preferences"

getNewListings

Recent IPOs

"Show new stocks"

getSuspendedListings

Delisted companies

"Which stocks were delisted?"

getETFRanking

Popular ETFs

"Top ETF choices"

getIndexHistory

Historical index data

"TAIEX history"

getHolidaySchedule

Market calendar

"When is market closed?"

๐Ÿ’ก Example Usage

Basic Market Check

You: "How's the Taiwan stock market doing today?"
Claude: [Uses getMarketIndex to show TAIEX and major indices]

You: "What are the most active stocks?"
Claude: [Uses getTop20Volume to display top traded stocks]

Company Research

You: "Analyze TSMC's financial performance"
Claude: [Uses searchFinancials("2330", "income") for earnings]
        [Uses searchFinancials("2330", "balance") for financial position]
        [Uses searchFinancials("2330", "profit") for profitability metrics]

Investment Screening

You: "Find high dividend yield stocks"
Claude: [Uses getStockPERatios to filter for high dividend yields]

You: "Show me what foreign investors are buying"
Claude: [Uses getTopForeignHoldings for top 20 foreign picks]

๐Ÿ” Search Functions

searchStock

Search for specific stock data:

{
  "query": "2330",        // Stock code or name
  "dataType": "daily"     // "daily" | "peratio" | "monthly"
}

searchFinancials

Search company financial reports:

{
  "stockCode": "2330",    // Company stock code
  "reportType": "income"  // "revenue" | "income" | "balance" | "profit"
}

๐Ÿ“Š Data Sources

  • Official API: Taiwan Stock Exchange OpenAPI

  • Base URL: https://openapi.twse.com.tw/

  • Update Frequency:

    • Real-time: 5-second stats during market hours

    • Daily: After market close (~14:30 TST)

    • Monthly: Financial reports on 10th of each month

    • Quarterly: Financial statements 45 days after quarter end

๐Ÿ”ง Development

Prerequisites

  • Node.js >= 18.0.0

  • TypeScript 5.0+

Build from Source

# Install dependencies
npm install

# Development mode (with hot reload)
npm run dev

# Build for production
npm run build

# Run tests
npm test

Project Structure

twse-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ index.ts           # MCP server implementation
โ”‚   โ””โ”€โ”€ api/
โ”‚       โ””โ”€โ”€ twse-client.ts # TWSE API client
โ”œโ”€โ”€ dist/                  # Compiled JavaScript
โ”œโ”€โ”€ bin/                   # CLI executable
โ””โ”€โ”€ examples/              # Configuration examples

๐Ÿ“ API Response Format

All tools return JSON data with Traditional Chinese field names:

{
  "ๅ…ฌๅธไปฃ่™Ÿ": "2330",
  "ๅ…ฌๅธๅ็จฑ": "ๅฐ็ฉ้›ป",
  "ๆ”ถ็›คๅƒน": "595.00",
  "ๆœฌ็›Šๆฏ”": "25.83",
  "ๆฎ–ๅˆฉ็އ": "2.02"
}

โš ๏ธ Limitations

  • Rate Limits: TWSE API may have rate limiting

  • Data Delay: Some data has 15-20 minute delay

  • Language: Field names in Traditional Chinese

  • Market Hours: Real-time data only during TSE trading hours (09:00-13:30 TST)

  • Data Volume: Large queries return first 100 records

๐Ÿค Contributing

Contributions are welcome! Please see our Contributing Guide for details.

Development Workflow

  1. Fork the repository

  2. Create feature branch (git checkout -b feature/amazing-feature)

  3. Commit changes (git commit -m 'Add amazing feature')

  4. Push to branch (git push origin feature/amazing-feature)

  5. Open Pull Request

๐Ÿ“œ License

MIT License - see LICENSE file for details

๐Ÿ™ Acknowledgments

  • Taiwan Stock Exchange for providing the OpenAPI

  • Anthropic for the MCP SDK

  • Contributors and users of this project


Available Tools

22 tools
getBalanceSheetA

Get quarterly balance sheets for all listed companies (general industry)

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.5/5.0
Behavior2/5

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

No annotations provided, so description carries full burden. It lacks disclosure on data freshness, historical range, or any limits. Only states what is retrieved, not behavioral traits.

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?

Single, front-loaded sentence with no wasted words. Every part contributes to understanding the tool's purpose.

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

Completeness3/5

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

Lacks details on time range, data format, or any limitations. No output schema, so more context would help agent understand response. Adequate but not comprehensive.

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?

Input schema has 0 parameters (100% coverage). Description adds nothing about parameters, but baseline for 0 params is 4. No further elaboration needed.

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?

Description clearly states verb 'Get', resource 'quarterly balance sheets', and scope 'for all listed companies (general industry)'. It effectively distinguishes from sibling tools like getIncomeStatement.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. Missing explicit when/when-not/alternatives, which is needed given many sibling financial data tools.

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

getETFRankingB

Get top ETFs by regular investment accounts

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only restates the name's implication ('Get top ETFs...') without disclosing data freshness, scope, limitations, or any other behavioral traits. This is insufficient for a tool with no output schema or annotations.

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

Conciseness4/5

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

The description is very concise (one sentence) and front-loaded. However, it could be slightly more informative without losing conciseness, e.g., specifying the ranking metric or output type.

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

Completeness3/5

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

Given the tool has no parameters and no output schema, the description is minimal. It describes the input (none) but not the output structure or behavior. For a simple tool, it is barely adequate but lacks completeness regarding return format or data interpretation.

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?

The tool has no parameters, and the schema coverage is trivially 100%. The description adds no parameter information but is not required to do so. Baseline score of 4 is appropriate.

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

Purpose4/5

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

The description states it gets top ETFs by regular investment accounts, providing a specific verb and resource. However, 'top' is vague and could mean different rankings (e.g., by volume, performance), and it does not distinguish from sibling tools that also provide rankings or financial data.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. With sibling tools like getTop20Volume and getTopForeignHoldings, the description does not clarify why getETFRanking is preferable or what differentiates it.

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

getFiveSecondStatsB

Get real-time 5-second bid/ask and transaction statistics

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.3/5.0
Behavior2/5

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

Since no annotations exist, description carries full burden. Only says 'real-time' without detailing data freshness, polling behavior, rate limits, or what happens if data is unavailable.

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?

Single sentence, no unnecessary words. Front-loaded with key information and efficiently communicates the tool's function.

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

Completeness3/5

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

For a parameterless tool, the description adequately states what it does. However, lacking output schema or annotations, it could be more complete by mentioning return format or example usage.

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

Parameters3/5

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

No parameters exist; schema coverage is 100% (vacuously). Description adds no additional parameter semantics beyond the schema, baseline is 3.

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?

Clearly states verb 'Get' and specific resource 'real-time 5-second bid/ask and transaction statistics'. Distinguishes from sibling tools like getStockDaily due to the 5-second time interval.

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

Usage Guidelines2/5

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

Provides no guidance on when to use this tool vs alternatives like getStockDaily or getMonthlyStats. No exclusions or context are mentioned.

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

getForeignCategoryHoldingsC

Get foreign investor holdings by industry category

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, and the description merely states 'Get' without disclosing behavior like return format, data scope (e.g., all categories or filtered), or whether results are aggregated. The burden is on the description, which fails to inform.

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?

The description is a single sentence with no wasted words, but it is too brief and omits critical information, making it inadequate rather than efficiently concise.

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

Completeness2/5

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

Given the tool has no parameters and no output schema, the description should clarify what data is returned (e.g., all industry categories, current holdings). It fails to provide essential context, leaving the agent to guess.

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

Parameters2/5

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

The schema has zero parameters, but the description mentions 'by industry category,' suggesting a missing filtering parameter. This mismatch undermines clarity. Schema coverage is 100% only because there are no parameters to describe, so the description adds negative value.

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

Purpose3/5

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

The description states 'Get foreign investor holdings by industry category,' which is a clear verb and resource, but it implies a parameter (industry category) that does not exist in the input schema, causing confusion. It distinguishes from siblings like 'getTopForeignHoldings' only vaguely.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives such as 'getTopForeignHoldings' or 'getIndustryEPS'. The description provides no context about prerequisites or typical use cases.

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

getHolidayScheduleA

Get TWSE market holiday schedule and trading days

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.7/5.0
Behavior2/5

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

With no annotations provided, the description bears the full burden of behavioral disclosure. It only states 'Get,' implying a read operation, but doesn't mention data freshness, caching, or whether the tool is idempotent. More context would be beneficial.

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 a single sentence with no unnecessary words. It is appropriately front-loaded and efficient.

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

Completeness3/5

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

For a simple no-parameter tool with no output schema, the description is minimally adequate but could be more complete by hinting at the return format (e.g., 'returns a list of dates'). It is not as rich as it could be, but given low complexity, it suffices.

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?

The tool has no parameters, and schema coverage is trivially 100%. The description does not need to add parameter information. Baseline for 0 parameters is 4, and the description meets that.

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 'Get TWSE market holiday schedule and trading days' uses a specific verb ('Get') and clearly identifies the resource ('TWSE market holiday schedule and trading days'). No sibling has a similar name, so differentiation is not needed.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this tool versus alternatives, but its purpose is straightforward and no sibling serves the same function. Usage is implied from the description.

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

getIncomeStatementB

Get quarterly income statements for all listed companies (general industry)

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description must fully disclose behavior. It only states the tool returns quarterly income statements, but lacks details on data freshness, format, pagination, rate limits, or whether it covers all industries comprehensively. This is minimal transparency.

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

Conciseness4/5

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

The description is a single sentence that is concise and front-loaded. It avoids verbosity but could be slightly more structured (e.g., specifying the output format or scope). Still, it efficiently conveys the core purpose.

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

Completeness2/5

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

Given the tool's simplicity (no parameters, no output schema) and many siblings, the description leaves gaps. It does not explain the return structure, period boundaries, or data coverage limitations. The agent may need additional context to use it correctly.

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?

The input schema is empty, so schema coverage is 100%. The description does not add parameter information because none exists. The baseline is high since no parameters need explanation, and the description does not mislead.

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 retrieves quarterly income statements for all listed companies in general industry. It uses a specific verb ('Get') and resource ('quarterly income statements'), and the scope is defined. Among sibling tools like getBalanceSheet, getIndustryEPS, and getProfitAnalysis, this tool is clearly distinguished.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus siblings, nor any context about prerequisites, date ranges, or limitations. The agent has no information about when not to use it or what alternatives exist.

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

getIndexHistoryB

Get historical TAIEX index data (open, high, low, close)

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.1/5.0
Behavior2/5

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

No annotations provided, so description carries full burden. It only lists data fields but does not disclose behavioral traits such as rate limits, data range, or whether the operation is read-only. For a historical data tool, this omission limits transparency.

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?

Single sentence with essential information, no filler. Front-loads purpose and fields. Highly concise.

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

Completeness2/5

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

Lacks critical details like time period, data frequency, and output format. Without output schema, the agent cannot infer structure. Incomplete for a data retrieval tool.

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?

No parameters exist, and schema coverage is complete (100% vacuously). The description does not add meaning beyond the empty schema, but no improvement is needed given zero parameters.

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

Purpose4/5

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

Clearly states it retrieves historical TAIEX index data with specific fields (open, high, low, close). However, it does not explicitly differentiate from sibling tool getMarketIndex, which may serve a similar purpose.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like getMarketIndex or others. The description provides no context for preferred usage scenarios.

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

getIndustryEPSA

Get earnings per share (EPS) statistics by industry

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are provided, and the description fails to disclose behavioral traits such as data source, update frequency, time period, or output format. For a tool with no parameters, the behavior is simple, but the lack of detail about what 'statistics' entails limits transparency.

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 a single sentence with no redundancy. It is appropriately sized for a tool with no parameters, conveying the essential purpose without wasted words.

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

Completeness3/5

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

The description is minimal and lacks details about the output format or the meaning of 'statistics'. While the tool is simple, completeness could be improved by specifying what the returned data includes (e.g., average EPS per industry) or that no input is required.

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?

There are zero parameters, and the input schema coverage is 100% (no parameters). The description does not need to add parameter details, so it is adequate. The baseline of 4 is appropriate given no parameter information is required.

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 action ('Get') and the resource ('earnings per share (EPS) statistics by industry'). It specifies the verb and the resource, distinguishing it from sibling tools that deal with other financial metrics like balance sheets or rankings.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives. The description does not mention any context, prerequisites, or exclusions, leaving the agent without direction on selection among similar financial data tools.

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

getMarginTradingC

Get margin trading and short selling statistics

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations provided, the description should disclose behavioral traits like data freshness, update frequency, or whether statistics are real-time. It only states the function, leaving the agent uninformed about side effects or limitations.

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?

The description is a single short sentence, which is concise, but it lacks structure and front-loading of critical details. Every word is used, but the brevity comes at the cost of informativeness.

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

Completeness2/5

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

Given the tool has no parameters or output schema, the description is minimal. However, among many sibling tools, it does not provide enough context to know what 'statistics' are returned or how the data can be used.

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

Parameters3/5

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

The tool has zero parameters, so schema coverage is complete. The description adds no meaning beyond what the schema already implicitly conveys. Baseline score of 3 is appropriate as the description does not enhance parameter understanding.

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

Purpose4/5

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

The description clearly states the action 'Get' and the resource 'margin trading and short selling statistics', which is specific and distinguishable from siblings that deal with balance sheets, rankings, etc. However, it could be more precise about the scope (e.g., current or historical data).

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives like 'getStockDaily' or 'getMonthlyStats'. The description does not mention prerequisites or context such as market data availability.

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

getMarketIndexA

Get daily market index statistics including TAIEX and other indices

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations, the description must fully disclose behavior. It only states it gets daily statistics but does not clarify if the data is current-day only, what the response structure is, or any access limitations. This is insufficient for full transparency.

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 a single sentence with no wasted words. It efficiently conveys the core purpose without 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 the zero-parameter tool and lack of output schema, the description adequately covers the basic functionality. However, it could specify what 'statistics' includes and whether it returns data for the latest trading day only. Minor gap but sufficient for a simple tool.

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?

The tool has zero parameters, and the schema coverage is 100%. The description is not required to add parameter meaning, and it appropriately omits parameter details. Baseline 4 is justified.

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 it retrieves daily market index statistics, naming TAIEX and other indices. It uses a specific verb-resource pair ('get daily market index statistics') and differentiates from sibling tools that focus on individual stocks or ETFs.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like getIndexHistory. There is no mention of context, prerequisites, or exclusions, leaving the agent to infer usage from the name alone.

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

getMonthlyRevenueB

Get monthly revenue reports for all listed companies

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. It only states the tool retrieves reports, with no mention of side effects, read-only nature, permissions, rate limits, or any operational constraints.

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 a single, efficient sentence of six words conveying the entire purpose. It is front-loaded and contains no unnecessary words, though it could be more informative.

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

Completeness3/5

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

Given zero parameters and no output schema, the description gives a basic idea of the output (monthly revenue reports). However, it does not specify the format, time range, or any limitations, leaving some ambiguity 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?

The tool has zero parameters, and the schema description coverage is 100% (trivially). Per guidelines, baseline is 4 for zero parameters. The description does not need to add parameter info, and it meets the baseline without extra detail.

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

Purpose4/5

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

The description clearly specifies the action 'Get' and the resource 'monthly revenue reports' with scope 'for all listed companies'. It distinguishes the tool from siblings like getMonthlyStats or getIncomeStatement by focusing specifically on revenue, but does not explicitly differentiate or address potential overlap.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives, such as getMonthlyStats or getIncomeStatement. It lacks any context about prerequisites, exclusions, or typical use cases.

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

getMonthlyStatsB

Get monthly stock trading statistics including high/low prices and volumes

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided. The description does not disclose behavioral traits such as whether it is read-only, any rate limits, or what happens with missing data. It carries the full burden of transparency but fails to add value beyond basic purpose.

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 a single concise sentence with no redundant information. It is appropriately front-loaded.

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

Completeness2/5

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

The description does not specify the time period (e.g., which month) or scope (single stock vs. aggregate). Given no output schema, more context is needed for an agent to use it correctly. It is incomplete for a parameterless tool.

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?

No parameters exist, so the baseline is 4. The description adds meaning by listing the data fields returned (high/low prices, volumes), which is useful beyond the empty schema.

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

Purpose4/5

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

The description uses the verb 'Get' and specifies the resource 'monthly stock trading statistics' and included fields (high/low prices, volumes). It distinguishes from siblings like getStockDaily (daily) and getMonthlyRevenue (revenue-specific), though it doesn't clarify scope (single stock vs. aggregate).

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs. alternatives like getStockDaily, getMonthlyRevenue, or other siblings. The description only states what it does without context on preferences or exclusions.

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

getNewListingsA

Get recently listed companies on TWSE

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.7/5.0
Behavior3/5

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

No annotations provided, so the description carries the full burden. It implies a read-only operation but does not specify ordering, pagination, or what constitutes 'recently'. Adequate but limited.

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?

Single sentence, no wasted words. Front-loaded with verb and resource. Perfectly concise.

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

Completeness3/5

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

No output schema, so the description should describe the return format. It only says 'recently listed companies', leaving ambiguity about what fields are included (e.g., ticker, name, date). Adequate but not complete.

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?

No parameters; the schema is empty. The description adds value by explaining the output is recently listed companies, which is sufficient for a parameterless tool.

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 verb 'Get' and the specific resource 'recently listed companies on TWSE'. It distinguishes from siblings that focus on financial statements, rankings, or other data.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'getSuspendedListings' or other listing-related tools. Lacks context about the expected use case.

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

getProfitAnalysisA

Get comprehensive profitability analysis including ROE, ROA, profit margins

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.7/5.0
Behavior2/5

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

With no annotations provided, the description bears full responsibility for behavioral disclosure. However, it only lists output metrics and does not reveal whether the tool is read-only, requires authentication, or incurs any side effects. For a tool that presumably performs a read operation, such details are essential but missing.

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 a single, well-structured sentence with no redundant words. It front-loads the core purpose ('get comprehensive profitability analysis') and then specifies key output components, making it efficient and easy to parse.

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

Completeness3/5

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

Given no parameters and no output schema, the description is fairly complete regarding what the tool does but fails to mention any required context (e.g., company ticker, date range). Since sibling tools likely require similar context, this omission may lead to confusion about how to invoke the tool correctly.

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?

The input schema has zero parameters and schema coverage is 100%, so the description adds value by explaining what the tool returns (ROE, ROA, profit margins). This enriches meaning beyond the empty schema, making the tool's purpose clearer.

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 provides comprehensive profitability analysis, listing specific metrics (ROE, ROA, profit margins). It directly addresses the tool's function and distinguishes it from sibling tools like getBalanceSheet or getIncomeStatement, which focus on raw financial statements rather than derived profitability ratios.

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

Usage Guidelines3/5

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

The description implies the tool is for profitability analysis but provides no explicit guidance on when to use it versus alternatives like getBalanceSheet or getIncomeStatement. For instance, it does not clarify that this tool computes derived metrics while siblings provide raw data. The 'comprehensive' label hints at broader scope but lacks concrete usage conditions.

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

getStockDailyB

Get daily trading information for all listed stocks on TWSE

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.4/5.0
Behavior2/5

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

No annotations exist. The description is vague about what 'daily trading information' includes (e.g., open, close, volume) and whether data is historical or real-time. Critical behavioral traits like update frequency or data range are missing.

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 a single concise sentence with no redundant words. It is front-loaded with the core action and scope, fitting the criterion of every sentence earning its place.

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

Completeness2/5

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

No output schema exists, so the description should explain the return value. 'Daily trading information' is too vague; it doesn't specify fields, date range, or whether it returns a list of all stocks. Richer context is needed for a tool with 0 parameters and no output schema.

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?

The input schema has zero parameters, so schema description coverage is 100% (no parameters to describe). With no parameters, the description need only confirm no filtering; it does this implicitly. Baseline 4 is appropriate.

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 retrieves daily trading information for all listed stocks on TWSE. It uses a specific verb ('Get') and a resource ('daily trading information for all listed stocks'), distinguishing it from siblings like getStockDayAvg.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like getStockDayAvg, getMarketIndex, or other daily stock data tools. The agent must infer usage from the name alone.

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

getStockDayAvgB

Get daily closing prices and monthly average prices for all stocks

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided. The description only states the basic retrieval function without disclosing data format, update frequency, rate limits, or any side effects. For a data retrieval tool, this is insufficient transparency.

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 a single, straightforward sentence with no wasted words. It efficiently conveys the core functionality.

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

Completeness2/5

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

The description lacks critical context such as the time range of data (e.g., how many days), whether it's historical or real-time, and the format of the output. Given the complexity of financial data, this is insufficient for an agent to use correctly.

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?

There are no parameters, and schema description coverage is trivially 100%. The description adds nothing beyond that, which is acceptable for a parameterless tool.

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 retrieves daily closing prices and monthly average prices for all stocks. It distinguishes from siblings like 'getStockDaily' and 'getMonthlyStats' by focusing on both daily and monthly averages across all stocks.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives like 'getStockDaily' or 'getMonthlyStats'. The description does not mention any conditions or exclusions.

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

getStockPERatiosA

Get P/E ratios, dividend yields, and price-to-book ratios for all stocks

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.5/5.0
Behavior2/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 only states what data is retrieved but offers no information on potential rate limits, data freshness, permissions, or impact on the system. The behavior is minimally transparent.

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 a single concise sentence (14 words) that front-loads the purpose. Every word is necessary, and no extraneous information is included.

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

Completeness3/5

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

Given the absence of an output schema and annotations, the description provides the core purpose but lacks context about time frame, data source, or structure of returned data. It is minimally complete for a low-complexity tool but leaves some ambiguity.

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?

The input schema has zero parameters, and schema description coverage is 100%. Per guidelines, baseline is 4. The description does not add parameter semantics but is adequate given the absence of parameters.

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 it gets specific financial ratios (P/E, dividend yield, P/B) for all stocks, distinguishing it from sibling tools that focus on different financial data (e.g., balance sheets, income statements). The verb 'Get' and resource 'ratios for all stocks' are precise.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. There is no mention of when it is appropriate, prerequisites, or exclusions, leaving the agent without context to differentiate it from similar tools like getIndustryEPS.

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

getSuspendedListingsB

Get companies that have been delisted or suspended

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description solely bears the transparency burden. It states a read operation but omits details on data freshness, pagination, or return structure, making it insufficient for a tool with no annotations.

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 a single, front-loaded sentence with no wasted words, effectively conveying the core purpose.

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

Completeness3/5

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

While the tool is simple, the lack of output schema means the description should hint at what fields are returned (e.g., ticker, name). It only says 'companies', which is vague, leaving some contextual gap.

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

Parameters3/5

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

The tool has zero parameters and 100% schema coverage, so the baseline is 3. The description does not need to add parameter semantics, but it also provides no extra context beyond the schema.

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 verb 'Get' and the resource 'companies that have been delisted or suspended', which is specific and distinguishes it from siblings like getNewListings that deal with new listings.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like getNewListings or searchStock, leaving the agent without context for choice.

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

getTop20VolumeA

Get top 20 stocks by daily trading volume

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but only states output content. It omits behavioral traits like sorting order (descending by volume), recency, or any data freshness caveats.

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 a single, front-loaded sentence with no redundant words. Every part is necessary and clear.

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 the tool's simplicity (no params, no output schema), the description is mostly complete. However, it could briefly note that the data is from the most recent trading day.

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?

There are zero parameters, so schema coverage is 100%. The description doesn't need to elaborate, and it appropriately implies no input is required. A score of 4 reflects the baseline for zero-parameter tools.

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 'Get top 20 stocks by daily trading volume' clearly states the verb (Get), resource (stocks), and scope (top 20 by volume), effectively distinguishing it from sibling tools like getETFRanking or getStockDaily.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives. For instance, it doesn't clarify that this provides a quick market snapshot while getStockDaily offers detailed per-stock data.

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

getTopForeignHoldingsC

Get top 20 foreign and mainland investor stock holdings

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries full burden for behavioral disclosure. It only states the action and scope, omitting details like ordering, time period, or that it is a read-only operation.

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?

The description is a single sentence with no unnecessary words, but it could be more informative without losing conciseness.

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

Completeness2/5

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

The description lacks details about the output, such as format or ordering. Given no output schema and a simple tool, more context would help an agent understand what to expect.

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?

Since there are no parameters, schema coverage is 100%. The description adds context about the data scope (foreign and mainland investor stock holdings), which is helpful beyond the empty schema.

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

Purpose4/5

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

The description clearly states it retrieves top 20 holdings from foreign and mainland investors, using a specific verb and resource. However, it does not differentiate from the sibling tool 'getForeignCategoryHoldings', which likely has a different scope.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool over alternatives, such as 'getForeignCategoryHoldings'. No prerequisites or exclusions are mentioned.

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

searchFinancialsC

Search financial reports for specific company

ParametersJSON Schema
NameRequiredDescriptionDefault
stockCodeYesStock code to search (e.g., 2330)
reportTypeNoType of financial reportrevenue

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, and the description only says 'search', implying read-only behavior. It fails to disclose any behavioral traits such as rate limits, error handling, or whether the tool supports partial matches.

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

Conciseness4/5

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

The description is a single sentence with no wasted words. It is appropriately concise, though it could benefit from a bit more detail without becoming verbose.

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

Completeness2/5

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

Given the lack of output schema and the presence of many sibling tools, the description is too sparse. It does not explain the return format, pagination, or how results are structured, leaving the agent with many unknowns.

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

Parameters3/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 adds no extra parameter context beyond what the schema provides, such as the meaning of reportType values or how stockCode is used.

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

Purpose4/5

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

The description states the tool searches financial reports for a specific company, which is a clear verb+resource. However, given sibling tools like getBalanceSheet and getIncomeStatement, it doesn't differentiate that this tool aggregates multiple report types via the reportType parameter.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description does not mention that it is a unified search for multiple report types or that more specific tools exist for individual reports.

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

searchStockC

Search for specific stock information by code or name

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesStock code (e.g., 2330) or partial name to search
dataTypeNoType of data to retrievedaily

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, and the description does not disclose behavioral traits like whether matches are exact or partial, how results are returned, or any limitations. Minimal behavioral insight.

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

Conciseness4/5

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

The description is concise with a single sentence that efficiently conveys the core purpose. It avoids verbosity but omits useful detail.

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

Completeness2/5

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

Given the lack of output schema and annotations, the description is too brief to provide complete context about return values, matching behavior, or how dataType affects results. Significant gaps remain.

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

Parameters3/5

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

Schema coverage is 100% with descriptions for both parameters. The description adds no extra semantic value beyond what the schema already provides, meeting the baseline expectation.

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

Purpose4/5

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

The description clearly states the tool searches for stock information by code or name, but it doesn't differentiate from sibling tools like getStockDaily or getStockPERatios, which also retrieve stock data.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives such as getStockDaily for daily data or searchFinancials for financial data. The description lacks contextual usage advice.

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

TDQS

B3.3/5.0
Disambiguation4/5

Tools target distinct data categories (financial statements, trading stats, indices, etc.) with clear descriptions. Minor overlap between daily, real-time, and monthly stock stats, but each serves a specific purpose.

Naming Consistency4/5

Most tools follow a 'get' + noun phrase pattern. Two search tools (searchFinancials, searchStock) break the pattern, but overall naming is predictable.

Tool Count5/5

22 tools cover a wide range of TWSE data without being excessive. Each tool seems necessary for comprehensive market and financial reporting.

Completeness4/5

Covers fundamental statements, daily/monthly/real-time trading, indices, EPS, PER, margin trading, foreign holdings. Lacks some advanced data like order book or corporate actions, but solid for typical investor needs.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    Provides comprehensive Taiwan stock market data and analysis through MCP tools. Enables querying real-time stock prices, historical data, company information, technical analysis, and market overviews for TWSE and TPEx listed companies.
    8
    15
    MIT
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides real-time stock quotes, technical analysis, and intelligent trading recommendations specifically for the Taiwan stock market. Supports single and multiple stock queries, comparative analysis, and investment decision support through natural language interactions.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides real-time quotes, fund flows, and corporate announcements for Chinese A-share stocks. It enables users to search for stocks, analyze financial indicators, and summarize quarterly reports through natural language.
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables real-time stock price queries and historical data retrieval for US, Taiwan, and other global markets via Yahoo Finance.
    2
    MIT

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/pyang2045/twsemcp'

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