Skip to main content
Glama
ariesanhthu

VNStock MCP Server

by ariesanhthu

get_company_dividends

Retrieve dividend history for Vietnam-listed companies by stock symbol, returning data in JSON or dataframe format for financial analysis.

Instructions

Get company dividends from stock market Args: symbol: str output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
output_formatNojson

Implementation Reference

  • Handler function for get_company_dividends tool. Uses TCBSCompany to fetch dividends data and returns as JSON or DataFrame.
    @server.tool() def get_company_dividends( symbol: str, output_format: Literal["json", "dataframe"] = "json" ): """ Get company dividends from stock market Args: symbol: str output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame """ equity = TCBSCompany(symbol=symbol) df = equity.dividends() if output_format == "json": return df.to_json(orient="records", force_ascii=False) else: return df
  • Registers the get_company_dividends function as an MCP tool using FastMCP decorator.
    @server.tool()
  • Input schema defined by function parameters: symbol (str), output_format (Literal["json", "dataframe"] = "json"). Output is pd.DataFrame or JSON string.
    def get_company_dividends( symbol: str, output_format: Literal["json", "dataframe"] = "json" ):

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ariesanhthu/mcp-server-vietnam-stock-trading'

If you have feedback or need assistance with the MCP directory API, please join our Discord server