Skip to main content
Glama
ariesanhthu

VNStock MCP Server

by ariesanhthu

get_company_ratio_summary

Retrieve financial ratio summaries for Vietnam-listed companies to analyze performance metrics and make informed investment decisions.

Instructions

Get company ratio summary 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 implementing the 'get_company_ratio_summary' tool. It is registered via the @server.tool() decorator with the FastMCP server. Uses VCICompany from vnstock to fetch and return the ratio summary as JSON or DataFrame.
    @server.tool() def get_company_ratio_summary( symbol: str, output_format: Literal["json", "dataframe"] = "json" ): """ Get company ratio summary from stock market Args: symbol: str output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame """ equity = VCICompany(symbol=symbol) df = equity.ratio_summary() 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