Skip to main content
Glama

台股題材與高股息

查詢台灣上市股票與 ETF 未來除權息日曆

get_tw_ex_dividend_yield
Read-onlyIdempotent

查詢台灣上市股票與 ETF 未來除權息日曆,附現金股利、最近收盤價與估算殖利率,可篩最低殖利率。

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

Input Schema

NameRequiredDescriptionDefault
codeNo股票代號,例如 0056
daysNo往後幾天,預設 30,最多 120
min_yieldNo最低殖利率 %,例如 3

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so safety is covered. The description adds genuinely new behavioral context: what the payload contains (cash dividend, last close price, estimated yield) and that results can be filtered by a yield floor — details annotations cannot express.

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?

A single compact sentence with the resource stated first and the value-add fields trailing, so nothing is wasted. It is slightly comma-dense and crammed into one clause chain, but remains front-loaded and readable.

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 no output schema, the description must convey return content, which it partly does by listing dividend, close price and estimated yield. It is silent on result ordering, behavior when code is omitted (all stocks?), and handling of symbols with no upcoming ex-dividend date — gaps for a screening tool that returns an open-world list.

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%, with each of code/days/min_yield described (including the 30-day default and 120-day cap), so the schema carries parameter meaning. The description only echoes the min_yield filter ('可篩最低殖利率') and adds no syntax, units, or edge-case semantics beyond that, making the baseline 3 appropriate.

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?

States a specific verb+resource: queries the upcoming ex-dividend/ex-rights calendar for TW-listed stocks and ETFs, and names the fields returned (cash dividend, latest close, estimated yield). The word 未來 (future) implicitly distinguishes it from historical dividend siblings like get_tw_ex_dividend or get_tw_dividend, but that contrast is never made explicit.

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 implied by 'future ex-dividend calendar' and 'filter by minimum yield', so an agent can infer this is the forward-looking screening tool. There is no explicit when-to-use vs. when-not guidance and no named alternative among the many dividend/ETF siblings.

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.