Skip to main content
Glama
FinamWeb

Finam MCP Server

by FinamWeb

order_place

Submit buy or sell orders for financial instruments on Russian markets using market, limit, stop, or multi-leg order types.

Instructions

Выставление биржевой заявки

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderYesЗаявка
statusYes
exec_idNoИдентификатор исполнения
order_idYesИдентификатор заявки
accept_atNoДата и время принятия заявки
transact_atNoДата и время выставления заявки
withdraw_atNoДата и время отмены заявки

Implementation Reference

  • MCP tool handler for placing orders. Function 'place' is prefixed to 'order_place' via server mount.
    @order_mcp.tool(tags={"order"}, meta={"sensitive": True})
    async def place(order: Order) -> OrderState:
        """Выставление биржевой заявки"""
        return await get_finam_client().place_order(order)
  • Pydantic schema/model for the input 'order' parameter used in the order_place tool.
    class Order(BaseModel):
        """Информация о заявке"""
        symbol: Symbol
        quantity: Decimal = Field(description="Количество в шт.")
        side: Side = Field(description="Сторона (long или short)")
        type: OrderType = Field(description="Тип заявки")
        time_in_force: TimeInForce = Field(TimeInForce.UNSPECIFIED, description="Срок действия заявки")
        limit_price: Decimal | None = Field(None, description="Необходимо для лимитной и стоп лимитной заявки")
        stop_price: Decimal | None = Field(None, description="Необходимо для стоп рыночной и стоп лимитной заявки")
        stop_condition: StopCondition = Field(StopCondition.UNSPECIFIED, description="Необходимо для стоп рыночной и стоп лимитной заявки")
        legs: list[Leg] | None = Field(None, description="Необходимо для мульти лег заявки")
        client_order_id: str | None = Field(None, max_length=20, description="Уникальный идентификатор заявки")
        valid_before: ValidBefore | None = Field(None, description="Срок действия условной заявки")
        comment: str | None = Field(None, max_length=128, description="Метка заявки")
  • src/main.py:15-15 (registration)
    Mounts the order_mcp server with 'order' prefix, transforming tool name 'place' to 'order_place'.
    finam_mcp.mount(order_mcp, prefix="order")
  • Creation of the FastMCP instance where order tools are registered.
    order_mcp = FastMCP(name="FinamOrderServer")
  • Core API client method that performs the actual order placement via Finam Trade API.
    async def place_order(self, order: Order, account_id: str) -> OrderState:
        """Выставление биржевой заявки"""
        order_body = {key: ({"value": str(value)} if isinstance(value, Decimal) else value) for key, value in
                      order.model_dump(exclude_unset=True).items()}
        response, ok = await self._exec_request(
            self.RequestMethod.POST,
            self._url.format(account_id=account_id),
            payload=order_body,
        )
    
        if not ok:
            err = ErrorModel(**response)
            raise FinamTradeApiError(f"code={err.code} | message={err.message} | details={err.details}")
    
        return OrderState(**response)
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure but provides none. It doesn't mention that this is a potentially destructive/mutative operation (placing orders typically involves financial transactions), what permissions are required, rate limits, error conditions, or what happens on success. The description is completely inadequate for a financial transaction tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is maximally concise - a single phrase that directly states the tool's purpose. There's no wasted language or unnecessary elaboration. While this conciseness comes at the cost of completeness, the description itself is efficiently structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex financial order placement tool with a rich input schema (Order object with 11 properties, multiple enums) and no annotations, the description is completely inadequate. It doesn't explain what the tool does beyond the name, provides no parameter guidance, no behavioral context, and no usage guidelines. The existence of an output schema doesn't compensate for these fundamental gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, meaning the schema provides no parameter descriptions. The tool description adds no parameter information whatsoever - it doesn't mention the 'order' parameter, what it contains, or how to structure it. For a complex tool with a nested Order object containing 11 properties, this is a critical deficiency.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Выставление биржевой заявки' (Placing a stock exchange order) is a tautology that essentially restates the tool name 'order_place'. It doesn't specify what type of order (market, limit, stop, etc.) or provide any distinguishing details from sibling tools like 'order_cancel' or 'order_get'. While it indicates the general domain, it lacks specificity about the actual operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There are multiple sibling tools related to orders (order_cancel, order_get, order_get_list), but the description doesn't indicate this is for creating new orders versus managing existing ones. No prerequisites, context, or exclusion criteria are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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

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