Skip to main content
Glama

Taiwan Futures

Get contract specs and settlement prices

get_contract_specs
Read-onlyIdempotent

TAIFEX futures contract multipliers and initial and maintenance margins, and final settlement prices of expired futures and options contracts. 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:

  • contractSpecs (Futures contract specs and margins): TAIFEX futures contract multiplier, quote currency and initial and maintenance margin per contract; for stock and ETF futures the margin amount is converted using the futures settlement price. Args: product: Product code (TXF, CDF), continuous code (TXF1, CDF2, MXFW1) or contract code (TXFJ6, MX1J6); omit for all.

  • futures_final_settlement (Futures final settlement prices): Final settlement price of every expired TAIFEX futures contract (monthly and weekly), with category, underlying stock and notional value for stock futures. Updated after 18:30 on each settlement day; symbols filters by product code (TX); up to 3660 days per request. Args: market: TAIFEX; symbols: comma-separated codes; from (required), to (required): YYYYMMDD, at most 3660 days per request; fields: comma-separated field names; limit: rows per page; cursor: nextCursor from the previous page. Fields: settlementDate: Final settlement date, YYYYMMDD; product: Product code; products sharing one settlement price are joined with / (TX/MTX/TMF); contractMonth: Contract month YYYYMM, weekly YYYYMMWn (Wednesday) or YYYYMMFn (Friday); category: index, interest_rate, commodity, currency or stock; settlementPrice: Final settlement price (index points or TWD); underlying: Underlying stock code (stock futures only).

  • options_final_settlement (Options final settlement prices): Final settlement price of every expired TAIFEX options contract (monthly and weekly), with category and underlying stock for stock options. Updated after 18:30 on each settlement day; symbols filters by product code (TXO); up to 3660 days per request. Args: market: TAIFEX; symbols: comma-separated codes; from (required), to (required): YYYYMMDD, at most 3660 days per request; fields: comma-separated field names; limit: rows per page; cursor: nextCursor from the previous page. Fields: settlementDate: Final settlement date, YYYYMMDD; product: Product code; products sharing one settlement price are joined with /; contractMonth: Contract month YYYYMM, weekly YYYYMMWn or YYYYMMFn; category: index, interest_rate, commodity, currency or stock; settlementPrice: Final settlement price.

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

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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the description is not burdened with safety disclosure, and it still adds real behavior: the upstream source (CubeLV Market Data API), the 18:30 post-settlement refresh timing, page limits of at most 3660 days, and cursor/nextCursor pagination. It stops short of describing rate limits or error behavior.

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 and API source are front-loaded and the per-method breakdown is scannable, but the entry is bloated: the settlement sections for futures and options are near-verbatim duplicates, repeating the same arg and field lists, and the dense run-on sentences bury the 3660-day limit inside both method blocks.

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 must describe returns, and it does so field-by-field for both settlement methods (settlementDate, product, contractMonth, category, settlementPrice, underlying). The contractSpecs method, however, gets no field listing beyond multipliers, currency and margins, leaving its return shape under-specified.

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

Parameters5/5

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

Schema coverage is already 100%, but the description goes well beyond it by documenting the nested `args` payload per method: product code formats (TXF, TXF1, TXFJ6), YYYYMMDD date formats, the YYYYMMWn/YYYYMMFn weekly contract convention, comma-separated symbols/fields, and cursor semantics. The nested args object's schema text explicitly defers to this listing, so the description carries necessary meaning.

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 the concrete resources: TAIFEX futures contract multipliers, initial and maintenance margins, and final settlement prices for expired futures and options. The three enumerated methods make the scope unambiguous and clearly distinct from siblings such as get_option_chain or get_quotes, though no sibling is named explicitly to route the agent.

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?

Each method carries its own selection context (contract specs and margins vs. futures settlement vs. options settlement), plus the caveat that data is updated after 18:30 on settlement days, which tells the agent when results will be stale. It lacks explicit 'when not to use this' guidance or pointers to alternative tools for live prices.

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