Skip to main content
Glama
FinamWeb

Finam MCP Server

by FinamWeb

order_get

Retrieve detailed information about a specific trading order from the Finam platform using its unique order ID.

Instructions

Получение информации о конкретном ордере

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes

Output Schema

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

Implementation Reference

  • MCP tool handler for 'order_get': retrieves specific order details by ID via Finam client.
    @order_mcp.tool(tags={"order"})
    async def get(order_id: str) -> OrderState:
        """Получение информации о конкретном ордере"""
        return await get_finam_client().get_order(order_id)
  • Pydantic model for OrderState, defining the output structure of the order_get tool.
    class OrderState(BaseModel):
        """Состояние заявки"""
        order_id: str = Field(..., description="Идентификатор заявки")
        exec_id: str | None = Field(None, description="Идентификатор исполнения")
        status: OrderStatus = Field(..., description="Статус заявки")
        order: Order = Field(..., description="Заявка")
        transact_at: datetime | None = Field(None, description="Дата и время выставления заявки")
        accept_at: datetime | None = Field(None, description="Дата и время принятия заявки")
        withdraw_at: datetime | None = Field(None, description="Дата и время отмены заявки")
  • src/main.py:15-15 (registration)
    Registers the order_mcp tools under 'order_' prefix, naming the 'get' tool as 'order_get'.
    finam_mcp.mount(order_mcp, prefix="order")
  • Utility function to retrieve the FinamClient instance from MCP context, used by the handler.
    def get_finam_client() -> FinamClient:
        return get_context().get_state("finam_client")
  • No, wrong. Wait, actually for get_order it's line 20.
        return await get_finam_client().get_orders()
    
    
    @order_mcp.tool(tags={"order"})
    async def get(order_id: str) -> OrderState:
        """Получение информации о конкретном ордере"""
        return await get_finam_client().get_order(order_id)
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states this is for 'Получение информации' (Getting information), which suggests a read-only operation, but doesn't disclose behavioral traits like authentication needs, rate limits, error handling, or what happens if the order ID is invalid. For a tool with zero annotation coverage, this is a significant gap.

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

Conciseness4/5

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

The description is a single, efficient sentence in Russian, front-loaded with the core purpose. There's no wasted text, making it appropriately sized for a simple tool. However, it could be more structured if it included additional details.

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 1 parameter, no annotations, but an output schema exists, the description is minimally complete. The output schema likely covers return values, so the description doesn't need to explain those. However, for a read operation with no annotations, it should provide more context on behavior and parameters to be fully helpful.

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

Parameters2/5

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

Schema description coverage is 0%, and the description doesn't add any meaning beyond what the input schema provides. It mentions 'конкретном ордере' (specific order), which hints at the 'order_id' parameter, but doesn't explain its format, constraints, or examples. With 1 parameter and low coverage, the description fails to compensate adequately.

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

Purpose3/5

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

The description 'Получение информации о конкретном ордере' (Getting information about a specific order) states the basic purpose with a verb ('Получение' - Getting) and resource ('ордере' - order). However, it's vague about what specific information is retrieved and doesn't distinguish from sibling tools like 'order_get_list' or 'order_cancel' beyond mentioning 'конкретном' (specific).

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 on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an order ID), exclusions, or comparisons to siblings like 'order_get_list' for multiple orders or 'order_cancel' for modifications. The description implies usage for a single order but lacks explicit context.

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