Skip to main content
Glama

Taiwan Stocks

Get Taiwan market overview

get_market_overview
Read-onlyIdempotent

TAIEX and sector indices, advancers and decliners, rankings, exchange rates, macro series and global benchmarks relevant to Taiwan. Data comes from the CubeLV Market Data API (https://cubelv.com/en/mcp/taiwan-stocks/): pick a method and pass its arguments in args. US markets are available only for the ADRs of Taiwan companies.

Methods:

  • rankings (Stock rankings and screener): Rank and filter stocks by percent change, change, volume, turnover or price. Taiwan (TWSE, TPEX) covers stocks and ETFs: live quotes from 09:00, the exchange's closing data once it arrives after the close (after 17:30 for TWSE), and the latest trading day's close before the open and on holidays (pre-open indicative prices are not trades and are excluded); the quotes field says which source was ranked, and sector restricts to one sector index's constituents. US combines NASDAQ, NYSE and AMEX and can also filter by sector, industry (see usSectors) and market cap, or sort by market cap. Up to 500 rows. Args: market (required): Market: TWSE, TPEX, NASDAQ, NYSE, AMEX, or US (all three US exchanges); sort: Sort field: changePercent, change, volume, turnover, price, or marketCap (US only; stocks without market cap are excluded); order: desc = largest first, asc = smallest first; limit: Number of rows (1-500, default 50); minPrice: Minimum price; maxPrice: Maximum price; minVolume: Minimum volume (Taiwan in lots of 1,000 shares, US in shares); minTurnover: Minimum turnover (trading value); minChangePercent: Minimum percent change; maxChangePercent: Maximum percent change; sector: Taiwan: sector index code from indices (e.g. IX0028) to rank only its constituents (TAIEX, other indices and composite sector indices return 400). US: sector name from usSectors (e.g. Technology), case-insensitive; industry: US: industry name from usSectors (e.g. Semiconductors), case-insensitive; minMarketCap: US: minimum market cap in USD; excludes stocks without market cap; maxMarketCap: US: maximum market cap in USD; excludes stocks without market cap.

  • breadth (Market breadth): Number of advancing, declining, unchanged, limit-up, limit-down and untraded common stocks on TWSE or TPEx. During trading it is computed from live quotes (session=intraday); otherwise it reads the closing statistics (session=close). Between the close and the evening import of the exchange's closing data, today's figures are computed from live quotes and may be slightly revised afterwards. Args: market (required): Market: TWSE or TPEX; date: Trading day (YYYYMMDD) to read closing statistics for; a 404 message gives the reason and the latest available trading day.

  • indices (Market and sector indices): Latest value, change and trading day for every TWSE or TPEx index, ordered as market index, sector indices, others; sector indices also carry the latest day's sector turnover. TWSE sector indices have two code families: A-series (A0011-A0099, A1000) have daily candles via history; IX-series (IX0020, IX0021, IX0028-IX0035, IX0041) have daily candles via history and daily rows via the quotes dataset (max 93 days per request). IX0013-IX0015 and IX0185-IX0188 have quotes only. Each row's dailyHistory tells whether history has daily candles for it. Args: market (required): Market: TWSE or TPEX.

  • popularity (Stock popularity (Wikipedia page views)): The Wikipedia article matched to a stock, its daily page views, and 7/30/90/365-day average, maximum, spike (maximum / average) and growth, usable as a proxy for search interest. US covers the top 3,000 common stocks by market cap (English Wikipedia); Taiwan covers TWSE- and TPEx-listed companies (Chinese Wikipedia). Data from 2015-07-01, updated daily with a 1-2 day lag; returns 404 if no article is matched. Args: market (required): Market: US (any US exchange), NASDAQ, NYSE, AMEX, TW (TWSE or TPEx), TWSE, TPEX; symbol (required): Symbol, e.g. NVDA, BRK.B, 2330; days: Number of most recent days in points (1-4000, default 365); metrics always use the last 730 days.

  • popularityRankings (Popularity rankings (Wikipedia page views)): Rank stocks by Wikipedia page views: spike (maximum / average over the last 7, 30, 90 or 365 days, i.e. a sudden surge), growth versus the previous period, or average views; a proxy for search-interest rankings. US covers the top 3,000 common stocks by market cap; Taiwan covers TWSE- and TPEx-listed companies. When one article maps to several symbols (e.g. GOOGL, GOOG) only the largest by market cap is listed; articles averaging fewer than minAverage daily views are excluded. Up to 500 rows. Args: market (required): Market: US (all three US exchanges), NASDAQ, NYSE, AMEX, TW (TWSE + TPEx), TWSE, TPEX; sort: Sort field: spikeN = N-day maximum / average, growthN = N-day average growth vs the previous N days (%), averageN = N-day average views, views = latest day's views; order: desc = largest first, asc = smallest first; limit: Number of rows (1-500, default 50); minAverage: Minimum average daily views over the sort period (views uses the last 7 days) to be listed (default 20).

  • fxCurrencies (Reference FX currencies): Currency codes (with their Chinese names) available for the daily reference exchange rates in fxRate and fxHistory.

  • fxRate (Daily reference exchange rate): Daily reference rate: how many units of quote one unit of base buys on a given date. Pairs published directly by TAIFEX use the published value; other pairs are cross rates through USD. Args: base (required): Base currency code (case-insensitive), as listed by fxCurrencies; quote (required): Quote currency code (case-insensitive); the rate is quote units per 1 base; date: Date, YYYYMMDD (Taipei); default today. Uses the latest published rate within 7 days on or before it; the response date is the rate date actually used.

  • fxHistory (Reference exchange rate history): Daily reference rates (quote units per 1 base) over a date range, oldest first. Args: base (required): Base currency code (case-insensitive), as listed by fxCurrencies; quote (required): Quote currency code (case-insensitive); from: Start date (inclusive), YYYYMMDD; default one year before to; to: End date (inclusive), YYYYMMDD; default today (Taipei); limit: Return only the most recent N rate dates in the range; omit for all.

  • macroSeries (Macro series list): Definitions and latest observation of every macroeconomic series: US and Taiwan macro data, central bank policy rates, US Treasury yields, crude oil spot prices, US dollar indices and Taiwan total return indices.

  • macroObservations (Macro series history): Observations of one macroeconomic series over a date range, oldest first. Up to 2000 rows. Args: id (required): Series id (case-insensitive), 64 in total; see macroSeries for the full list with latest values. US: US.CPI, US.CPI.YOY, US.CORE_CPI, US.CORE_CPI.YOY, US.UNEMPLOYMENT, US.NONFARM, US.NONFARM.CHANGE, US.GDP.QOQ, US.PCE_PRICE, US.PCE_PRICE.YOY, US.CORE_PCE_PRICE, US.CORE_PCE_PRICE.YOY, US.PERSONAL_INCOME, US.PERSONAL_INCOME.MOM, US.PERSONAL_SPENDING, US.PERSONAL_SPENDING.MOM, US.EFFR, US.FED_TARGET.LOWER, US.FED_TARGET.UPPER, US.TREASURY. (1M, 6W, 2M, 3M, 4M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y), US.OIL.WTI, US.OIL.BRENT, US.DOLLAR.BROAD, US.DOLLAR.AFE. Policy rates: US.FED, GB.BOE, AU.RBA, CN.PBOC, CA.BOC, EU.ECB, NZ.RBNZ, IN.RBI, RU.CBR, BR.BCB, JP.BOJ, CH.SNB followed by .POLICY_RATE. Taiwan: TW.TWSE.TOTAL_RETURN, TW.TPEX.TOTAL_RETURN, TW.CPI, TW.CPI.YOY, TW.UNEMPLOYMENT, TW.BUSINESS_SIGNAL, TW.LEADING, TW.LEADING.DETREND, TW.COINCIDENT, TW.COINCIDENT.DETREND, TW.LAGGING, TW.LAGGING.DETREND, TW.CBC.DISCOUNT, TW.CBC.SECURED, TW.CBC.UNSECURED. Unknown ids return 404; from: Start date (inclusive), YYYYMMDD, compared with the observation period (first day of the month for monthly data, first day of the quarter for quarterly data, effective date for policy rates); to: End date (inclusive), YYYYMMDD, compared the same way as from; limit: Most recent N observations in the range, returned oldest first (1-2000, default 60).

  • macroEvents (Macro release calendar): Release schedule of US and Taiwan government statistics ordered by release time; releases matching a collected series include the actual and previous values. Up to 500 rows. Args: from: Release date start (Taipei date, inclusive), YYYYMMDD; default seven days ago; to: Release date end (Taipei date, inclusive), YYYYMMDD; omit for no upper bound; limit: Maximum releases (1-500, default 50).

  • benchmarks (Global benchmark proxies): Live proxies for global gold, crude oil, the US dollar and US stock indices: front-contract quotes of TAIFEX gold, Brent crude, USD/CNY and US index futures, plus the corresponding US ETF symbols. For the published daily OHLC of the US indices use usIndexDaily.

  • fearGreed (Fear and Greed Index): Daily Fear and Greed Index, crypto version (alternative.me) or US stock version (CNN), with source attribution, newest first. Up to 5000 days. Args: kind (required): crypto = crypto version (alternative.me, UTC days); stock = US stock version (CNN, US trading days, latest is the previous trading day); limit: Most recent N days (1-5000, default 60).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "method": "<method>"
    },
    "name": "get_market_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoArguments of the method, as listed in the tool description
langNoLanguage for data labels (industries, statement items, categories) and links: en, ja, ko or vi; default en
methodYesMethod from the list in the tool description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds substantial behavioral context: live versus closing data timing, after-17:30 TWSE close availability, revision during the evening import, cross-rate methodology, Wikipedia page-view lag, and 400/404 error conditions. This is exactly the kind of operational detail an agent needs beyond 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 method-by-method bullet structure makes a very large description navigable, and the opening sentence front-loads the overall scope. It is still verbose: market enum values and shared constraints are repeated across methods, and the macroObservations series list is extremely long, though much of that is driven by the tool’s 13-method complexity.

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?

For a 13-method multiplexed tool with no output schema, the description does well by covering method purposes, arguments, defaults, limits and several return-value characteristics. It could be stronger on response envelope and per-method output fields, but it is substantially complete relative to the tool’s complexity.

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?

Although top-level schema coverage is 100%, the schema exposes only a generic args object; the description compensates by documenting every method-specific argument, including required fields, enum values, date formats, defaults, row limits and filters. This is comprehensive and adds meaning far beyond what the input schema provides.

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 names specific resources and operations: TAIEX and sector indices, breadth, rankings, FX, macro series, benchmarks and fear/greed, with each method enumerated. It does not explicitly distinguish this tool from siblings such as get_quotes or screen_stocks, so the agent must infer boundaries from scope alone.

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?

Each method is given a clear purpose and its required arguments, which provides strong within-tool guidance. However, there is no explicit routing versus sibling tools: for example, rankings is a screener-like method that overlaps with screen_stocks, and the description never says when to use one over the other.

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.

Resources