Skip to main content
Glama

Оплата брони

ticket_pay
Destructive

Pays a confirmed cinema or event ticket booking with the order ID, amount, and payment token from the booking response; use only after the user approves the specific order and total.

Instructions

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

Все три первых аргумента бери из ответа cinema_book(): order_id, итоговую сумму и nfs_payment_token. Токен живёт только в ответе на создание заказа — order_details() его не отдаёт, поэтому переспросить потом будет негде. account_id — счёт списания (по умолчанию первый рублёвый Current). force=True — повторить оплату, чей исход не подтверждён, только после проверки в приложении, что деньги не ушли.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "order_id": "<order_id>",
      "amount": "<amount>",
      "nfs_payment_token": "<nfs_payment_token>"
    },
    "name": "ticket_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
amountYes
order_idYes
account_idNo
nfs_payment_tokenYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, idempotentHint=false, and the description reinforces that this spends real money. Beyond annotations it discloses two things the schema cannot: the payment token exists only in the order-creation response and cannot be re-fetched, and force=True is a retry for payments whose outcome is unconfirmed, only after verifying in the app that the money did not move. It does not describe what a successful or failed payment looks like, but an output schema exists to carry that.

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?

Front-loaded with the highest-stakes constraint (real money, confirmation required), and every sentence adds operational detail. It is dense and mixes the confirmation protocol with argument-sourcing guidance in the same block, which makes it slightly harder to scan than a cleanly separated structure would be.

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?

For a destructive, open-world payment tool with five parameters and zero schema descriptions, the description supplies the confirmation gate, the provenance of every required argument, the token's single-use lifetime, and the force-retry safeguard. Return values are covered by the existing output schema, so nothing an agent needs is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry the load, and it does: order_id, amount, and nfs_payment_token are attributed to specific fields of the cinema_book() response, account_id is defined as the debiting account with its default, and force's retry semantics are spelled out with a precondition.

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?

Starts with a specific verb and resource in caps — "ОПЛАТИТЬ бронь билета" — and immediately marks it as a real-money operation. The mention of cinema_book() as the source of the arguments and order_details() as a tool that does NOT provide the token clearly separates it from those siblings.

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

Usage Guidelines5/5

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

Gives explicit when-to-call conditions (only after the user confirms a specific amount and order), an explicit when-not case (a bare "купи билет" request is not confirmation), and an exception (elicitation clients show the amount buttons, so no extra confirmation is needed). It also names the upstream dependency cinema_book() and rules out order_details() as a token source.

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