Skip to main content
Glama
ariesanhthu

VNStock MCP Server

by ariesanhthu

get_company_shareholders

Retrieve shareholder information for Vietnam-listed companies using stock symbols. Returns data in JSON or DataFrame format for analysis.

Instructions

Get company shareholders 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

  • The core handler function for the 'get_company_shareholders' tool. It fetches shareholder data for a given company symbol using the TCBSCompany class from the vnstock library and returns the result as either JSON or a pandas DataFrame. The function is automatically registered as an MCP tool via the @server.tool() decorator.
    @server.tool() def get_company_shareholders( symbol: str, output_format: Literal["json", "dataframe"] = "json" ): """ Get company shareholders from stock market Args: symbol: str output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame """ equity = TCBSCompany(symbol=symbol) df = equity.shareholders() if output_format == "json": return df.to_json(orient="records", force_ascii=False) else: return df

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