Skip to main content
Glama
1C OData MCP

1C OData MCP

Выровнять сумму расшифровки банковского документа

write.document.align_bank_payment_amounts
Destructive

Aligns line amounts in an unposted bank receipt or expense to the document total, including multi-contract lines and VAT, preventing incorrect settlement entries; previews changes.

Instructions

Выравнивает строки «Расшифровки платежа» существующего НЕПРОВЕДЁННОГО банковского поступления или списания по сумме документа: сумма платежа и сумма взаиморасчётов = сумма документа (одна строка), курс и кратность 1, НДС по ставке строки. Для случая, когда сумма в шапке есть, а в строке пусто или другая — иначе 1С проведёт документ с неверными проводками по расчётам. Несколько строк (оплата по нескольким договорам) — каждая по своей сумме: lineAmounts (суммы по строкам, в сумме — сумма документа) или уже стоящие в строках суммы, если они сходятся с документом; как разнести сумму, не угадывается. Только рубли и договоры в рублях без условных единиц; валюта и неизвестная ставка НДС — отказ. Нужна точная expectedDataVersion; предпросмотр показывает «было → станет», остальные поля сохраняются, контрольное чтение после записи. Проведение — отдельным вызовом post_document.

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": {
      "entitySet": "<entitySet>",
      "ref": "<ref>",
      "expectedDataVersion": "<expectedDataVersion>"
    },
    "name": "write.document.align_bank_payment_amounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
confirmNo
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
entitySetYes
lineAmountsNoНесколько строк расшифровки: суммы платежа по строкам в их порядке (сумма = сумме документа). Без них строки выравниваются, только если их суммы уже сходятся с документом
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
expectedDataVersionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare a destructive write, and the description adds real behavioral context beyond them: preview shows «было → станет», other fields are preserved, a control read follows the write, an exact expectedDataVersion is required, and there are concrete refusal cases (currency, unknown VAT rate). It stops short of describing the full mutated field set or any idempotency/duplicate-protection behavior beyond what the schema documents for operationId.

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 operation and its outcome, and nearly every clause earns its place (VAT rule, refusal cases, preview, posting separation). It is dense and runs several rules together in long sentences, which slightly hurts scanability for an agent.

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

Completeness4/5

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

For a destructive, 7-parameter tool with an output schema, it covers the essential risk surface: preconditions (unposted), preview/confirm flow, post-write verification, refusal conditions, and where posting lives. Minor gaps remain around entitySet/ref semantics and whether confirm is required for the write, but nothing critical is missing.

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 coverage is only 43%, and the description carries the critical parameter: lineAmounts is explained as ordered per-line amounts that must sum to the document sum, with the fallback of existing line sums only when they reconcile. expectedDataVersion's precision requirement is also stated. However, entitySet, ref and confirm receive no explanation in the description, leaving the schema to carry that gap.

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?

States a specific verb (выравнивает строки «Расшифровки платежа») and a sharply bounded resource (existing UNPOSTED bank receipt/writeoff), plus the exact resulting state (payment sum and settlement sum = document sum, rate and multiplicity 1, VAT at line rate). It is unmistakable against siblings such as post_document, which the description explicitly names as the separate next step.

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 an explicit trigger condition (header sum exists but line is empty or differs, otherwise 1C posts wrong settlement entries), multi-line handling rules, explicit exclusions (only rubles and ruble contracts, no currency units; currency or unknown VAT rate → refuse), and routes posting to a separate post_document call. It even warns that allocation across contracts is not guessed.

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

Deploy Server

Other Tools