Skip to main content
Glama
ariesanhthu

VNStock MCP Server

by ariesanhthu

get_fund_nav_report

Retrieve net asset value (NAV) reports for Vietnam mutual funds by symbol to analyze fund performance and track investment metrics.

Instructions

Get nav report of a fund from stock market Args: symbol: str (symbol of the fund to get nav report) output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
output_formatNojson

Implementation Reference

  • The handler function decorated with @server.tool(), which registers it as an MCP tool. It fetches the NAV report for a given fund symbol using FMarketFund and returns it in JSON or DataFrame format.
    @server.tool() def get_fund_nav_report( symbol: str, output_format: Literal["json", "dataframe"] = "json" ): """ Get nav report of a fund from stock market Args: symbol: str (symbol of the fund to get nav report) output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame """ fund = FMarketFund() df = fund.details.nav_report(symbol=symbol) if output_format == "json": return df.to_json(orient="records", force_ascii=False) else: return df
  • The @server.tool() decorator registers the get_fund_nav_report function as an MCP tool.
    @server.tool()
  • The docstring and type hints define the input schema (symbol: str, output_format: Literal["json", "dataframe"]) and output (pd.DataFrame or JSON).
    """ Get nav report of a fund from stock market Args: symbol: str (symbol of the fund to get nav report) output_format: Literal['json', 'dataframe'] = 'json' Returns: pd.DataFrame

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