Skip to main content
Glama
ariesanhthu

VNStock MCP Server

by ariesanhthu

get_company_officers

Retrieve company officer information from Vietnam's stock market. Filter by current, resigned, or all officers and choose JSON or dataframe output format.

Instructions

Get company officers from stock market
Args:
    symbol: str
    filter_by: Literal['working', "all", 'resigned'] = 'working'
    output_format: Literal['json', 'dataframe'] = 'json'
Returns:
    pd.DataFrame

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
filter_byNoworking
output_formatNojson

Implementation Reference

  • The handler function implementing the 'get_company_officers' tool. It uses TCBSCompany from vnstock to fetch officers data filtered by status and returns as JSON or DataFrame. Registered via @server.tool() decorator with FastMCP.
    @server.tool()
    def get_company_officers(
        symbol: str,
        filter_by: Literal["working", "all", "resigned"] = "working",
        output_format: Literal["json", "dataframe"] = "json",
    ):  # pyright: ignore[reportUndefinedVariable]  # noqa: E501
        """
        Get company officers from stock market
        Args:
            symbol: str
            filter_by: Literal['working', "all", 'resigned'] = 'working'
            output_format: Literal['json', 'dataframe'] = 'json'
        Returns:
            pd.DataFrame
        """
        equity = TCBSCompany(symbol=symbol)
        df = equity.officers(filter_by=filter_by)
        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