A Share MCP

get_dividend_data

Retrieve dividend data for specific A-share stocks by entering the stock code and year. Choose between 'report' or 'operate' year types to fetch announcement or ex-dividend details, formatted in a Markdown table.

Instructions

Fetches dividend information for a given stock code and year. Args: code: The stock code in Baostock format (e.g., 'sh.600000', 'sz.000001'). year: The year to query (e.g., '2023'). year_type: Type of year. Valid options (from Baostock): 'report': Announcement year (预案公告年份) 'operate': Ex-dividend year (除权除息年份) Defaults to 'report'. Returns: A Markdown formatted string containing the dividend data table, or an error message.

Input Schema

NameRequiredDescriptionDefault
codeYes
yearYes
year_typeNoreport

Input Schema (JSON Schema)

{ "properties": { "code": { "title": "Code", "type": "string" }, "year": { "title": "Year", "type": "string" }, "year_type": { "default": "report", "title": "Year Type", "type": "string" } }, "required": [ "code", "year" ], "title": "get_dividend_dataArguments", "type": "object" }
ID: gnd6bi7pjh