Skip to main content
Glama
sacahan

CasualMarket

by sacahan

get_dividend_rights_schedule

Retrieve dividend rights schedules for Taiwan stocks. Find ex-dividend dates, record dates, and payment dates for cash or stock dividends, either for a specific symbol or the full market.

Instructions

取得除權息行事曆。

提供上市公司的除權息相關日期資訊,包括除權息交易日、 停止過戶日、股東會日期等重要時程。

使用範例: get_dividend_rights_schedule() # 查詢所有公司除權息行事曆 get_dividend_rights_schedule("2330") # 查詢台積電除權息行事曆 get_dividend_rights_schedule("0050") # 查詢0050除權息行事曆

Args: symbol: 股票代碼 (可選,空字串或不提供則查詢全部)

Returns: MCPToolResponse[DividendScheduleData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data: 除權息行事曆資訊列表,每項包含: * symbol: 股票代碼 * company_name: 公司名稱 * ex_dividend_date: 除權息交易日 * cash_dividend: 現金股利 * stock_dividend: 股票股利 * record_date: 停止過戶日 * payment_date: 發放日 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱

Raises: 查詢失敗時返回錯誤回應,可能的原因: - 指定的股票代碼不存在 - 尚無除權息資料 - 資料來源暫時無法存取

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

The description discloses error conditions such as nonexistent symbol, no data available, and data source unavailability, plus explains the return envelope structure (success, data, error, tool). With no annotations provided, this meaningful behavioral context helps the agent anticipate failure modes.

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?

The description is well-organized with sections for overview, examples, args, returns, and errors. It is somewhat long but every section provides necessary context for an agent to use the tool correctly. The primary functionality is front-loaded in the first sentence.

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?

Given a single optional parameter, no annotations, and no output schema, the description covers the call pattern, the return data fields, and failure scenarios. It does not specify the exact date format or whether the returned data is sorted by date, but these are minor gaps for a schedule-listing tool.

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?

The input schema only states symbol is a string with default empty. The description adds meaning by explaining its optionality: leaving it empty or omitting it queries all companies, while providing a ticker queries that specific company. Examples with 2330 and 0050 reinforce the expected format. With 0% schema coverage, the description carries the full burden and largely succeeds.

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 clearly states the tool retrieves a dividend rights schedule (除權息行事曆) and lists the specific information included: ex-dividend dates, record dates, cash/stock dividends, and payment dates. This is distinct from sibling tools like get_company_dividend and get_taiwan_stock_price, making its purpose unambiguous.

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?

Usage examples show calling with no arguments for all companies or with a symbol for a specific company. It does not explicitly say when to use this instead of get_company_dividend, which appears to be the closest sibling, so it lacks an explicit alternative comparison.

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