Skip to main content
Glama
ariesanhthu

VNStock MCP Server

by ariesanhthu

get_company_reports

Retrieve company financial reports from Vietnam's stock market. Specify a stock symbol to access structured financial data in JSON or DataFrame format.

Instructions

Get company reports 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 handler function for the 'get_company_reports' tool, decorated with @server.tool() which registers it in the MCP server. It retrieves company reports using VCICompany.reports() and returns the data as JSON or DataFrame based on the output_format parameter.
    @server.tool() def get_company_reports( symbol: str, output_format: Literal["json", "dataframe"] = "json" ): """ Get company reports from stock market Args: symbol: str output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame """ equity = VCICompany(symbol=symbol) df = equity.reports() 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