Skip to main content
Glama
1C OData MCP

1C OData MCP

Применить счета расчётов к существующему банковскому документу

write.document.apply_bank_settlement_settings
Destructive

Applies a selected contract and inherited settlement or advance accounts to an existing unposted bank document, validating the expected data version and explicit supplier/customer side.

Instructions

Применяет унаследованные счета расчётов/авансов и выбранный договор к существующему НЕПРОВЕДЁННОМУ банковскому документу с точной expectedDataVersion/If-Match. Явная сторона supplier/customer обязательна, включая договор Прочее. Необязательный counterpartyRef заполняет только нулевую ссылку контрагента документа; требует существующий неудалённый элемент и точного владельца договора. Замена заполненного контрагента и подбор по названию/договору запрещены. Поддерживает опубликованные GUID и составной тип контрагента. Контрольное чтение проверяет договор, оба счёта, суммы платежа, налог и аналитику; пересчитанные курс, кратность и сумма взаиморасчётов не сравниваются с прежними. Условные единицы с иной валютой документа пока не поддержаны, курс не угадывается; несколько строк отклоняются. Предпросмотр связан с payload, документом, явно выбранным контрагентом, договором и результатом подбора. Отмена проведения и проведение выполняются отдельными вызовами; unknown удерживается без повторной записи.

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>",
      "contractRef": "<contractRef>",
      "side": "<side>",
      "expectedDataVersion": "<expectedDataVersion>"
    },
    "name": "write.document.apply_bank_settlement_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
sideYes
confirmNo
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
entitySetYes
contractRefYes
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
counterpartyRefNoЯвно выбранный контрагент: заполняет только нулевую ссылку документа. Заполненный контрагент должен совпадать; замена запрещена. Без выбора пустой контрагент блокирует действие.
expectedDataVersionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the destructive/openWorld annotations, the description discloses that counterpartyRef only fills a null reference and never replaces an existing one, that name/contract matching is forbidden, what the verification read compares and what it deliberately does not re-compare (rate, multiplicity, settlement sum), and that unknown outcomes are held without a re-write. This is exactly the operational context annotations cannot convey for a destructive mutation.

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?

Eight sentences, all substantive — no filler, and the core action plus the hard precondition come first. It is dense but appropriately sized for a destructive mutation; a couple of clauses (composite counterparty type, published GUIDs) are useful but sit mid-paragraph rather than being grouped with related constraints.

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?

Given an output schema and annotations that already cover the safety profile, the description supplies the missing pieces an agent needs: unposted precondition, explicit side, preview-to-confirm binding, verification-read semantics, and documented exclusions. The main residual gap is that the meaning of entitySet and the role of confirm=true/false relative to operationId is not spelled out in the description itself.

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?

With only 33% schema description coverage across 9 parameters, the description carries real weight: it explains side (supplier/customer mandatory, includes the 'Прочее' contract), counterpartyRef (fills only a zero reference, requires an existing non-deleted item with the exact contract owner), and expectedDataVersion (must be exact). entitySet and ref are left to the schema with no added meaning, and confirm's preview-gating is only implied by the operationId description rather than the tool description.

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

Purpose4/5

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

The first sentence states a concrete verb+resource: applies inherited settlement/advance accounts and a chosen contract to an existing UNPOSTED bank document. Scope and preconditions (unposted, exact expectedDataVersion) are front-loaded, so an agent knows precisely what changes. It does not name which sibling to use for the accounting-level or standalone settlement-settings tools, leaving that differentiation to inference.

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?

Usage boundaries are strong: the document must be unposted, multi-line documents are rejected, currency-of-record mismatches are unsupported, and posting/unposting are explicitly separate calls. The mandatory explicit supplier/customer side and the preview-then-confirm flow are stated. What is missing is an explicit routing statement to a named alternative for the excluded cases (e.g., which tool to use when the document is already posted).

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