Skip to main content
Glama

Taiwan Futures

Find TAIFEX contracts and trading days

search_contracts
Read-onlyIdempotent

Finds TAIFEX futures by product code or name with the continuous codes of the listed months and the contract each maps to, lists the futures and options products that have institutional data, and answers trading calendar questions. Data comes from the CubeLV Market Data API (https://cubelv.com/en/mcp/taiwan-futures/): pick a method and pass its arguments in args. The market is TAIFEX (filled in when market is omitted).

Methods:

  • symbols (Symbol search): Search Taiwan stocks, US stocks and TAIFEX futures by symbol prefix or name fragment (e.g. 2330 or TSMC's Chinese name). For TAIFEX, each futures product lists the continuous codes of its currently listed months (CDF1-CDF5, TXF1-TXF6, mini-TAIEX weeklies MXFW1, MXFW2) with the contract they currently map to (contract) and its expiry month (expiry); stock and ETF futures also carry the underlying symbol and name. TAIFEX options are not listed here: use optionChainLive for live strike codes and quotes, optionChain or optionIV for end-of-day data. Returns up to 50 results. Args: query (required): Symbol prefix or name fragment (up to 64 characters); market: Restrict to one market: TWSE, TPEX, ESB, TAIFEX, NASDAQ, NYSE or AMEX; omit for all markets; limit: Maximum results (1-50, default 50).

  • calendar (Trading calendar): Whether each day in a date range is a trading day. TWSE, TPEX, ESB and TAIFEX share the Taiwan exchange calendar; NASDAQ, NYSE and AMEX share the NYSE calendar. The range is at most 400 days. Args: market (required): Market: TWSE, TPEX, ESB, TAIFEX, NASDAQ, NYSE or AMEX; from: Start date, YYYYMMDD; defaults to today in the exchange's local time; to: End date, YYYYMMDD; defaults to from + 30 days; range at most 400 days.

  • tradingDay (Trading day check): Whether a given date (or today in the exchange's local time) is a trading day, plus the previous and next trading days. Args: market (required): Market: TWSE, TPEX, ESB, TAIFEX, NASDAQ, NYSE or AMEX; date (required): Date as YYYYMMDD, or today (today in the exchange's local time).

  • derivativeProducts (Futures and options products with institutional data): TAIFEX futures and options product codes and names that have institutional investor data, with the latest data date. Use it to find the product code before calling derivativesInstitutional.

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": "search_contracts"
  }
}

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
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive and open-world behavior, so the description need not restate safety. It adds genuinely useful operational detail beyond the annotations: the upstream API and its URL, a 50-result cap on symbols, a 400-day maximum range on calendar, and defaults such as 'market is filled in when omitted' and 'today in the exchange's local time'. Return-shape disclosure is partial per method, which keeps it short of a 5.

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 one-line summary is front-loaded, and the Methods bullet list with per-method Args keeps a long definition scannable. A few clauses are dense and repeated (the exchange-calendar grouping appears in both calendar and implicitly elsewhere), but for a four-method dispatcher the length is largely earned.

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, the description carries the burden of describing returns, and it does so for symbols (continuous codes CDF1-CDF5, TXF1-TXF6, MXFW1/MXFW2 with contract and expiry), calendar (per-day trading-day flag), tradingDay (previous and next trading days) and derivativeProducts (codes, names, latest data date). Only the exact response envelope for derivativeProducts and pagination behavior beyond the 50-result cap 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?

Although the schema reports 100% description coverage, the args property is a free-form object whose real contents are only specified in the description; the description fully compensates by documenting query (prefix or name fragment, up to 64 chars), market enum values, limit bounds and default, from/to YYYYMMDD formats with defaults and the 400-day cap, and date accepting 'today'. That is meaning well beyond what the schema alone conveys.

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 names concrete verbs and resources (finds TAIFEX futures by code/name, lists products with institutional data, answers trading calendar questions) and the Methods list enumerates exactly what each of the four modes does. It is specific enough to act on, though the tool is really four capabilities in one, which slightly blurs a single 'purpose' compared to a single-verb sibling.

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?

Gives real routing guidance: 'TAIFEX options are not listed here: use optionChainLive for live strike codes and quotes, optionChain or optionIV for end-of-day data', and for derivativeProducts, 'Use it to find the product code before calling derivativesInstitutional.' It lacks explicit guidance on when to prefer symbols over the sibling quote/history tools, so it is clear context without full exclusion coverage.

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