Skip to main content
Glama

Taiwan ETFs

Get ETF quotes

get_quotes
Read-onlyIdempotent

Latest quotes for TWSE- and TPEx-listed ETFs. Data comes from the CubeLV Market Data API (https://cubelv.com/en/mcp/taiwan-etfs/): pick a method and pass its arguments in args. Quotes, price history and holdings accept only ETF codes (search_etfs lists them).

Methods:

  • quote (Real-time quote): Latest quote for one instrument: last price, 5-level order book and limit-up/limit-down prices. TAIFEX futures accept continuous codes (TXF1 = front month, TXF2 = next month, TXF3 and up by listed expiry order, e.g. CDF1-CDF5; MXFW1/MXFW2 = nearest/next mini-TAIEX weekly), a specific month (TXF202611 or TX202611, weekly MXF202610W4) or a native contract code (TXFK6); the response field contract is the actual contract. TAIFEX options (TXO incl. weeklies, TEO, TFO) are written as TXO202611C46900 (contract + expiry + C/P + strike; weeklies TXO202610W4P41600) or TXO46900K6 and return best bid/ask, last price, session volume and prior-day open interest (no 5-level book). TWSE/TPEx stocks also carry sides: cumulative outside/inside (buy/sell-initiated) volume and amount for the session. ESB (emerging stocks) quotes refresh about every 5 seconds, have no price limits, referencePrice is the previous day's average price, totalVolume is in shares, and bids/asks hold only the best quote from recommending brokers. Warrants only show the pre-open price limits here; use warrants or warrant for their live bid/ask. Args: market (required): Market: TWSE = TWSE-listed, TPEX = TPEx-listed (OTC), ESB = emerging stock market, TAIFEX = futures/options, NASDAQ, NYSE, AMEX = US stocks; symbol (required): Symbol (uppercase letters/digits and . _ -, up to 32 chars). TAIFEX futures: continuous code (TXF1, CDF3, MXFW1), specific month (TXF202611, MXF202610W4) or native code (TXFK6); TAIFEX options: TXO202611C46900, weekly TXO202610W4P41600, or TXO46900K6.

  • quotes (Batch quotes): Latest quotes for multiple symbols in one market. Futures and options codes work as in quote (TXF1, MXFW1, TXF202611, native codes, TXO202611C46900); symbols that cannot be resolved are omitted (query quote for the reason). TWSE/TPEx stocks each carry sides (cumulative outside/inside volume and amount for the session), so use this instead of calling trades per symbol for buy/sell pressure across many stocks. US stocks return the symbols whose snapshot was obtained within 2.5 seconds. ESB quotes: about every 5 seconds, no price limits, totalVolume in shares, best bid/ask from recommending brokers only. Args: market (required): Market: TWSE, TPEX, ESB, TAIFEX, NASDAQ, NYSE or AMEX; symbols (required): Comma-separated symbols (duplicates counted once).

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_quotes"
  }
}

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

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: ESB quotes refresh roughly every 5 seconds with no price limits, referencePrice is the prior day's average, totalVolume is in shares, bids/asks hold only the best recommending-broker quote, US batch returns only snapshots obtained within 2.5 seconds, and warrants show only pre-open limits here. These are useful data-quality traits, but they are buried in dense prose rather than stated as caveats.

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 purpose is front-loaded and the two method bullets are a sensible structure, but each bullet is a wall of text with argument docs appended at the end of long prose. Content is duplicated across methods (ESB refresh behavior, futures/options code formats, TAIFEX code conventions) and would be tighter as shared notes plus per-method deltas.

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?

With no output schema, describing returns matters, and it does: last price, 5-level order book, limit-up/limit-down, options best bid/ask plus volume and open interest, stock sides, and the contract field for futures. Coverage is strong for a complex multi-market tool, though a few edge behaviors (what quote returns for an invalid code, unit conventions beyond totalVolume) are left implicit.

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?

The schema only says args is 'Arguments of the method, as listed in the tool description' with additionalProperties=true, so the description carries the full burden and does so: market and symbol are required for quote, market and symbols for quotes, symbols are comma-separated with duplicates counted once, and the encoding rules for futures/options codes (TXF1, TXF202611, TXO202611C46900, native codes) are spelled out. Without this text the nested args object would be largely unusable.

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 opening sentence states a specific resource (latest quotes) and the two methods (quote, quotes) are named with their scope. It also distinguishes itself from siblings by pointing to search_etfs for codes and warrants/warrant for live warrant bid/ask. The only flaw is the framing: 'TWSE- and TPEx-listed ETFs' undersells what the body actually covers (TAIFEX futures/options, US stocks, ESB, warrants, stocks), so an agent skimming the first line may misjudge the tool's reach.

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

Usage Guidelines4/5

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

It names explicit alternatives with conditions: 'search_etfs lists them' for codes, 'use warrants or warrant for their live bid/ask', and 'use this instead of calling trades per symbol for buy/sell pressure across many stocks'. It also explains that unresolved batch symbols are omitted and that you should query quote for the reason. What it lacks is guidance against nearby siblings like get_price_history or get_etf_holdings, though the quote-vs-batch distinction is genuinely clear.

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