Skip to main content
Glama

Оплата счёта

pay_bill
Destructive

Pays utility, telecom, internet, fine, and tax bills with real money, validating provider fields first and showing a commission-inclusive total for confirmation before sending.

Instructions

Оплатить счёт: ЖКХ, связь, интернет, штраф, налог. РЕАЛЬНЫЕ ДЕНЬГИ.

provider_id и fields — из payment_providers(provider_id=…), fields — JSON вида {"account": "1234567890"}. Имена полей у каждого провайдера свои, угадывать их нельзя: тул сверяет значения с регуляркой из каталога и откажет до отправки.

Перед оплатой всегда считается комиссия (это же и проверка тела банком), и итоговая сумма показывается. Показывай её пользователю и жди явного «да» ИМЕННО НА ЭТУ СУММУ — «оплати» без суммы подтверждением не считается. Клиент с элиситацией сам покажет кнопки с итоговой суммой — тогда подтверждать не нужно.

После оплаты проверь list_operations() — исход подтверждают операции, а не ответ этого тула.

Неверный номер лицевого счёта оплачивает чужую квитанцию, и вернуть это сложнее, чем перевод. 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": {
      "provider_id": "<provider_id>",
      "fields": "<fields>",
      "amount": "<amount>"
    },
    "name": "pay_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
groupNo
amountYes
fieldsYes
provider_idYes
from_accountNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=false, but the description adds behavior the agent could not otherwise know: a commission is always computed pre-payment and doubles as the bank's body validation, values are regex-checked against the catalog and rejected before sending, and the tool's own response is not authoritative. The risk note about paying someone else's receipt and the force-retry semantics are genuinely beyond structured data.

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?

Purpose and the real-money warning are front-loaded, then prerequisites, confirmation protocol, and verification follow in a sensible order with paragraph breaks. It is dense and slightly long, but nearly every clause carries actionable information; only the elicitation aside feels like it could be tightened.

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, non-idempotent money-movement tool with an output schema present, the definition covers what structured fields cannot: prerequisites, the validation-and-commission step, the mandatory amount-specific confirmation, and the fact that list_operations rather than the response confirms the outcome. The remaining gap is only the two optional 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?

Schema description coverage is 0%, so the description has to carry the load: it explains that provider_id comes from the catalog, that fields is a JSON string shaped like {"account": "..."} with provider-specific keys, and when force=True is legitimate. It says nothing about group or from_account, leaving two of six parameters unexplained in both schema and description.

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 opening line names a specific verb and resource ("Оплатить счёт") and enumerates the accepted bill categories (ЖКХ, связь, интернет, штраф, налог), which scopes it away from ticket/cinema payment siblings. The "РЕАЛЬНЫЕ ДЕНЬГИ" flag immediately tells the agent this is a real-money mutation, not a simulation.

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?

It states the prerequisite explicitly (provider_id and fields must come from payment_providers, field names are provider-specific and must not be guessed) and prescribes the exact confirmation protocol, including the elicitation exception where client-supplied buttons replace an explicit "да". It also names the correct follow-up tool (list_operations) and constrains force=True to a single condition.

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