Skip to main content
Glama

Оплата ЖД-брони

train_pay
Destructive

Pay for a booked train reservation using a linked card. If no card_id is supplied, returns eligible cards for selection; call again with card_id to complete. Use force only after confirming funds were not deducted.

Instructions

ОПЛАТИТЬ бронь поезда. РЕАЛЬНЫЕ ДЕНЬГИ. Подтверждение — кнопка: тул сам покажет «Оплатить/Отмена» с суммой заказа. НЕ спрашивай «да/нет» текстом — покажи места и сумму из train_book(), согласие даёт кнопка. Клиент без элиситации получает отказ, деньги при этом не двигаются.

БЕЗ card_id ничего не оплачивает: возвращает список КАРТ, которыми можно заплатить (счета показаны для справки — оплата со счёта только в приложении, этот тул принимает card_id). Выбери карту вместе с пользователем и вызови ещё раз с её card_id.

Сумму тул берёт из самого заказа, а не из аргумента, — её нельзя разойтись с тем, что держит банк.

force=True — повторить оплату, чей исход не подтверждён, и только после проверки в приложении, что деньги не ушли.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
card_idNo
order_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses the real-money confirmation dialog, the card_id-dependent failure behavior, the requirement for user elicitation, that the amount comes from the order and not an argument, and the exact meaning of force=True. This is substantially more transparent than the annotations alone.

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 front-loaded and comma-separated hard with concrete, security-sensitive details. It is longer than minimal, but every paragraph earns its place: confirmation UI, card selection flow, amount source, and force semantics. Minor redundancy appears in sometimes repeated warnings about card_id and imperatives, which keeps it just shy of 5.

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

Completeness5/5

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

The description covers confirmation, absence of card_id, refusal behavior, buttoned elicitation, source of the amount, and the force parameter. The output schema exists, so the description does not need to detail return fields. The tool is fully safe in operational decisions despite 0% schema coverage for parameters.

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 schema has 0% description coverage, but the description compensates well: it explains card_id (without it the tool returns a payment card list; only card_id is accepted), order_id as the existing booking/order, and force=True as a conditional explicit retry. It could be stronger by explicitly stating that order_id must come from train_book(), but it nonetheless carries the param meanings.

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

Purpose5/5

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

The description opens with 'ОПЛАТИТЬ бронь поезда', naming a specific verb, resource, and operation. The 'РЕАЛЬНЫЕ ДЕНЬГИ' warning and the explicit link to train_book() make the tool's purpose unmistakable and distinguishable from siblings like train_book, train_refund, pay_bill, and transfer.

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

Usage Guidelines4/5

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

The description gives direct instructions: the tool itself shows a confirmation button, so the agent should not ask a textual yes/no; a card_id is required and the flow for obtain cards is described; force=True is restricted to uncertain outcomes after an in-app check. It does not explicitly route away from sibling payment tools, but its coupling to train_book and the condition context make the intended usage clear.

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/icyberdeveloper/tbank-mcp'

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