Skip to main content
Glama
Alexander-Panov

Finam MCP Server

assets_get

Retrieve detailed instrument data including lot size, price step, and futures expiration dates from the Finam trading platform for Russian financial markets.

Instructions

Получение информации по конкретному инструменту (лот, шаг цены, дата экспирации фьючерса)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYessymbol в формате: SYMBOL@MIC (например, YDEX@MISX)

Implementation Reference

  • The handler function for the 'assets_get' tool, which fetches detailed information for a specific asset (lot size, price step, futures expiration) using the Finam client.
    @assets_mcp.tool(tags={"assets"}) async def get(symbol: Symbol) -> AssetResponse: """Получение информации по конкретному инструменту (лот, шаг цены, дата экспирации фьючерса)""" return await get_finam_client().get_asset(symbol)
  • src/main.py:14-14 (registration)
    Registers the assets MCP server under the 'assets' prefix, resulting in tool names like 'assets_get' for the 'get' function.
    finam_mcp.mount(assets_mcp, prefix="assets")
  • Input schema for the 'symbol' parameter: Annotated string type with regex validation for format SYMBOL@MIC.
    Symbol: type[str] = Annotated[ str, Field( description="symbol в формате: SYMBOL@MIC (например, YDEX@MISX)", pattern=r"^[A-Z0-9]+@[A-Z]+$", # Regex валидация examples=["YDEX@MISX", "SBER@TQBR"] ) ]
  • Helper utility to obtain the shared FinamClient instance from the MCP server context.
    def get_finam_client() -> FinamClient: return get_context().get_state("finam_client")
  • Creates the FastMCP instance for assets tools, where individual tools are registered via decorators.
    assets_mcp = FastMCP(name="FinamAssetsServer")

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/Alexander-Panov/finam-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server