Skip to main content
Glama
tw-stock-mcp

tw-stock-mcp

by jiawei-hong

Get day trading (當沖)

get_day_trading
Read-onlyIdempotent

Retrieve TWSE and TPEx day-trading activity for a date, including per-symbol shares, buy/sell amounts, volume share, and market totals or rankings.

Instructions

Day trading (現股當沖) for TWSE and TPEx stocks and ETFs on one trading day: shares day-traded, day-trade buy and sell amounts, and day trading's share of the stock's total volume (當沖比例). With symbols: per-stock figures. Without symbols: each exchange's totals with their published share of market volume and turnover, plus the most day-traded stocks and ETFs ranked by rank_by. Share counts are in shares and amounts in TWD. volume_percent = volume / total_volume x 100, where total_volume is each exchange's end-of-day total (odd-lot trades included), the same figure get_market_movers and screen_stocks report. Ranking by "percent" only considers stocks that traded at least 1,000,000 shares. sell_first_suspended marks stocks where sell-first day trading is suspended (e.g. the 5 trading days before a book closure). Securities not eligible for day trading (e.g. 全額交割 stocks) are listed in unresolved. Brokers can correct a day's figures until two trading days later (T+2), when the exchanges publish the final numbers. Without date, uses the most recent trading day with published data; the exchanges publish it in the evening, Taipei time. One day per call: for a trend, call once per date.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
dateNoTrading date, YYYY-MM-DD. Default: latest available.
limitNoRows in the ranking. Default 10.
marketNoRestrict totals, rankings or symbol lookup to one market.
rank_byNoRanking when symbols are omitted: "volume" (day-traded shares, default), "amount" (buy_amount + sell_amount, TWD) or "percent" (volume_percent, stocks with at least 1,000,000 shares traded).
symbolsNoCodes or exact names, e.g. ["2330", "6488", "鴻海"]. Omit for the market totals and rankings.

Output Schema

NameRequiredDescriptionDefault
dateYesTrading date of the data, YYYY-MM-DD
unitYesUnit of every share count; amounts are TWD
notesYes
stocksNo
rank_byNo
unresolvedNo
market_summaryNoDay-trading totals per requested market
most_day_tradedNoStocks and ETFs with the highest rank_by value, both markets together

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: T+2 broker correction window, evening Taipei publication time, default to latest published trading day, the 1,000,000-share floor for percent ranking, `sell_first_suspended` and `unresolved` edge-case semantics, and the definition of `total_volume` shared with get_market_movers and screen_stocks. This is exactly the data-latency and scope context an agent needs to interpret results correctly.

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?

Front-loaded with the resource and the two modes before the formula and edge cases, and nearly every sentence carries operational value. It is a single dense block, however, and some of the output-field explanation overlaps with the existing output schema.

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

Completeness5/5

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

For a 5-parameter, zero-required tool with an output schema and rich annotations, the definition covers freshness/latency, default behavior, formula definitions, ranking thresholds, and ineligible-securities handling. Nothing material an agent needs to call or interpret this tool is missing.

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?

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning: omitting `symbols` switches the whole output shape to exchange totals plus rankings, `rank_by` determines what the ranking list contains, and `market` narrows totals/rankings/lookup. These are effects the enum descriptions alone do not convey.

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?

States a specific verb and resource (day trading figures for TWSE/TPEx stocks and ETFs on one trading day) and precisely distinguishes the two modes: with `symbols` gives per-stock figures, without it gives per-exchange totals plus a ranked list. An agent can tell exactly what it gets without opening the schema.

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?

Clear conditional guidance on the two call modes and an explicit operational note that 'one day per call: for a trend, call once per date,' which prevents a common misuse. It does not, however, name a sibling alternative (e.g. get_market_movers or screen_stocks) with a when-to-prefer-that condition, so it falls short of full routing guidance.

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