Skip to main content
Glama
FinamWeb

Finam MCP Server

by FinamWeb

order_get_list

Retrieve a list of orders for your trading account to monitor and manage positions on the Finam platform.

Instructions

Получение списка заявок для аккаунта

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ordersYesЗаявки

Implementation Reference

  • The core handler function `get_list` for retrieving orders list. Tool name becomes `order_get_list` due to mounting with `prefix='order'`.
    @order_mcp.tool(tags={"order"})
    async def get_list() -> OrdersResponse:
        """Получение списка заявок для аккаунта"""
        return await get_finam_client().get_orders()
  • src/main.py:15-15 (registration)
    Registers the order_mcp tools with prefix 'order', transforming `get_list` to `order_get_list`.
    finam_mcp.mount(order_mcp, prefix="order")
  • Pydantic schema for the tool's response: list of OrderState objects.
    class OrdersResponse(BaseModel):
        """Список торговых заявок"""
        orders: list[OrderState] = Field(..., description="Заявки")
  • Client-side implementation of fetching orders, called via get_finam_client().get_orders().
    async def get_orders(self, account_id: str) -> OrdersResponse:
        """Получение списка заявок для аккаунта"""
        response, ok = await self._exec_request(
            self.RequestMethod.GET,
            self._url.format(account_id=account_id),
        )
    
        if not ok:
            err = ErrorModel(**response)
            raise FinamTradeApiError(f"code={err.code} | message={err.message} | details={err.details}")
    
        return OrdersResponse(**response)
  • Utility function to retrieve the shared FinamClient instance from MCP context.
    def get_finam_client() -> FinamClient:
        return get_context().get_state("finam_client")
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it retrieves a list of orders for an account but doesn't describe what the list includes (e.g., all orders, filtered by status), how it's paginated, any rate limits, authentication needs, or the return format. This leaves significant gaps for a tool that likely interacts with financial data.

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 a single, efficient sentence in Russian that directly states the tool's purpose without any fluff or redundancy. It's appropriately sized and front-loaded, making it easy to parse quickly.

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

Completeness3/5

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

Given the tool has 0 parameters, 100% schema coverage, and an output schema exists (which handles return values), the description's minimalism is somewhat acceptable. However, for a tool in a financial context with siblings like 'order_get' and 'order_cancel', more behavioral context (e.g., what orders are included, any filters) would improve completeness, as annotations are absent.

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

Parameters4/5

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

The input schema has 0 parameters with 100% coverage, so no parameter documentation is needed. The description appropriately doesn't discuss parameters, and the baseline for 0 parameters is 4, as it avoids unnecessary detail while matching the schema's simplicity.

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

Purpose4/5

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

The description clearly states the verb ('Получение' - 'Getting') and resource ('списка заявок' - 'list of orders') for a specific account, making the purpose understandable. However, it doesn't differentiate from sibling tools like 'order_get' (which presumably gets a single order) or specify what type of orders are included (open, closed, all).

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives. The description doesn't mention when to use 'order_get_list' versus 'order_get' (for single orders) or 'account_get_trades' (which might overlap with order data), nor does it specify prerequisites or context for use.

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