Skip to main content
Glama
tw-stock-mcp

tw-stock-mcp

by jiawei-hong

Get ownership structure

get_ownership
Read-onlyIdempotent

Retrieve ownership structure for up to 20 Taiwan-listed stocks or ETFs, including TDCC shareholder distribution tiers and latest foreign ownership percentages and limits.

Instructions

Ownership structure of Taiwan-listed stocks and ETFs (TWSE and TPEx), up to 20 per call. shareholder_distribution is the TDCC 集保戶股權分散表: holders, shares and percent of TDCC custody shares in each of 15 holding tiers (1-999 shares up to over 1,000,000 shares), plus over_1000_lots (千張大戶), over_400_lots (400張大戶) and up_to_50_lots (50 lots or fewer, usually read as retail); 1 lot = 1,000 shares. TDCC publishes only the latest weekly snapshot (see coverage), so week-over-week changes are not available here. foreign_ownership (外資及陸資持股) is the latest trading day's shares held by foreign and mainland investors, as a percent of issued shares, with the legal ceiling and the room left under it. TPEx publishes it for stocks only, not ETFs. For daily foreign buying and selling use get_institutional_trading. All quantities are shares. If one source is unavailable the other part is still returned and warnings says why. Sources: TDCC open data (weekly), TWSE / TPEx foreign ownership reports (daily).

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": {
      "symbols": "<symbols>"
    },
    "name": "get_ownership"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNoOmit to detect automatically.
symbolsYesCodes or exact names, e.g. ["2330", "鴻海"]. Up to 20.

Output Schema

NameRequiredDescriptionDefault
stocksYes
coverageYesPer dataset: the date it is for and what it keeps (scope). TDCC holds the latest week only.
warningsYes
unresolvedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and open-world, so the safety profile is covered. The description adds real behavioral context beyond them: the 20-per-call cap, per-source freshness (weekly TDCC vs daily foreign reports), the TPEx ETF gap, and the partial-success contract where one source can be missing while the other is still returned with a reason in warnings. It stops short of describing pagination or how to page past 20 symbols.

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?

Purpose and limits are front-loaded in the first clause, and the two data blocks are separated by name. It is dense and long, with a fairly granular enumeration of the 15 holding tiers and named lot aggregates, but nearly every clause carries information an agent would otherwise have to guess at.

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 two-source, mixed-freshness data tool this is complete: sources are named with their cadence, the failure mode is described, unit conventions are stated, and the sibling that handles the adjacent daily-flow question is identified. An output schema exists, so the description rightly does not enumerate return fields.

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

Parameters3/5

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

Schema coverage is 100%, including the market enum's 'Omit to detect automatically' and the symbols format example, so the schema carries parameter meaning. The description only reinforces the 20-symbol cap and adds unit semantics ('All quantities are shares', '1 lot = 1,000 shares'), which mostly explains returned values rather than the parameters themselves. Baseline 3 is appropriate.

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?

The description names the specific resource (ownership structure) and its scope (Taiwan-listed stocks and ETFs on TWSE/TPEx), then decomposes it into two clearly named parts, shareholder_distribution and foreign_ownership, with their native terms. It also explicitly distinguishes itself from the sibling get_institutional_trading, so an agent can route without opening any schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance: daily foreign buying/selling belongs to get_institutional_trading, not here. It also states hard usage constraints up front — TDCC only publishes the latest weekly snapshot, so week-over-week change is unavailable, and TPEx foreign ownership exists for stocks but not ETFs — which tells the agent when this tool cannot answer a question.

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