Skip to main content
Glama
sacahan

CasualMarket

by sacahan

get_company_dividend

Retrieve historical dividend data for Taiwan-listed companies and ETFs, covering cash dividends, stock dividends, ex-dividend dates, payment dates, and dividend yields.

Instructions

取得公司股利分配資訊。

提供公司歷年股利分配記錄,包括現金股利、股票股利、 除息日期、發放日期等完整股利資訊。

使用範例: get_company_dividend("2330") # 查詢台積電股利資訊 get_company_dividend("0050") # 查詢0050 ETF配息資訊

Args: symbol: 公司股票代碼 (例如: "2330")

Returns: MCPToolResponse[DividendData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (DividendData): 股利分配資訊,包含: * symbol: 股票代碼 * dividend_history: 歷年股利列表,每項包含: - year: 配息年度 - cash_dividend: 現金股利 - stock_dividend: 股票股利 - total_dividend: 總股利 - dividend_yield: 殖利率 - ex_dividend_date: 除息日 - payment_date: 發放日 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱

Raises: 查詢失敗時返回錯誤回應,可能的原因: - 公司代碼不存在 - 尚無股利分配記錄 - 資料來源暫時無法存取

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description takes on the full burden of behavioral disclosure. It documents the return envelope, nested dividend fields, and common failure modes such as invalid symbols, missing dividend records, and temporary source unavailability. It stops short of specifying currency units, date formats, or explicitly confirming read-only behavior.

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 docstring-style organization with Args, Returns, and Raises sections makes the definition easy to parse. Every major section adds value, especially given the absence of annotations and output schema. The opening sentence is slightly redundant with the following explanation, but overall the length is justified.

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?

For a single-parameter lookup, the description is fairly complete: it covers purpose, expected inputs, return structure, field meanings, and error conditions. The main gaps are explicit sibling differentiation and some formatting/unit details, but an agent can still invoke the tool correctly and interpret its result.

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 description coverage is 0%, but the single parameter 'symbol' is clearly defined as a stock code and illustrated with '2330' and '0050'. This is adequate for a one-parameter tool, though it does not specify constraints like numeric-only formats or whether ETF codes are supported beyond the example.

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 clearly states the tool's action and resource: retrieving a company's dividend distribution history, including cash dividends, stock dividends, ex-dividend dates, and payment dates. It is easily distinguishable from most price/income/financial-statement siblings, though it does not explicitly contrast itself with get_dividend_rights_schedule.

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 through the description and concrete examples, such as get_company_dividend("2330"). However, the description does not explicitly state when to use this tool versus alternatives, nor does it mention exclusions or edge cases like unsupported symbol formats.

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