Skip to main content
Glama

台股題材與高股息

台股盤後籌碼

get_tw_margin_chips
Read-onlyIdempotent

台股盤後籌碼:融資融券餘額與增減(上市股票,單位張)、全市場融資增減排行、外資持股比率前 20。

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

Input Schema

NameRequiredDescriptionDefault
codeNo股票代號;不填回傳 AI 題材股與排行

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds useful operating context: units are in lots, coverage is listed stocks only, and a bare call returns default theme stocks and rankings. It does not disclose data freshness/post-market lag or return shape, which matters for a 'post-market' dataset.

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?

One dense sentence that front-loads the data domain and enumerates the three returned dataset groups; no filler. The parenthetical scope qualifiers are compact and earn their place.

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

Completeness3/5

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

With one optional parameter and rich annotations, this is close to complete, but the absence of an output schema means the description carries more weight for return values. It broadly enumerates datasets but gives no field-level detail or freshness/timing caveat for what is inherently delayed post-market data.

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% for the single optional code parameter, and its schema description already states that omission returns AI-theme stocks and rankings. The tool description adds no syntax, format, or example values beyond that, so the baseline of 3 applies.

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 description names a specific resource set: margin financing/short-selling balances and their changes (listed stocks, in lots), market-wide margin change rankings, and top-20 foreign holding ratios. An agent knows exactly what data domain this tool covers. It stops short of differentiating itself from sibling quote or dividend tools, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is only implied through the data scope ('上市股票' excludes OTC) and the note that omitting the code returns AI-theme stocks plus rankings. There is no explicit statement of when to prefer this over get_tw_market_quotes or get_theme_stocks, and no prerequisites or exclusions.

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.