Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать оплату от покупателя

write.money.create_payment

Creates a customer payment receipt to a 1C bank account using amount, counterparty, and contract data, with dry-run preview and confirmation before saving.

Instructions

Создаёт «Поступление на расчётный счёт» (оплата от покупателя) на сумму, по контрагенту и договору. Документ НЕПРОВЕДЁННЫЙ; при проведении проводка Дт 51 Кт 62 (счёт расчётов — по настройке договора, источник виден в предпросмотре). Сумма взаиморасчётов для рублёвого договора заполняется сама; для договора в валюте или у.е. курс укажите в 1С, иначе 1С проведёт оплату без проводок. Бухгалтерия, operationKind=«ПрочееПоступление» — прочее поступление без договора: корреспондирующий счёт corrAccount (напр. «91.01») обязателен, субконто — otherItemRef, counterpartyRef, contractRef, cashflowItemRef. Бухгалтерия, эквайринг — operationKind=«ПоступленияОтПродажПоПлатежнымКартамИБанковскимКредитам»: банк-эквайрер (counterpartyRef), договор с ним (contractRef), amount — поступило на счёт, commission — комиссия банка (с corrAccount «91.02» и otherItemRef); проводки Дт 51 Кт 57.03 и Дт 91.02 Кт 57.03. Банковский счёт организации берётся по названию или первый. dry-run/confirm.

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": {
      "amount": "<amount>"
    },
    "name": "write.money.create_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
cashNoУправление торговлей: касса — название, код или Ref_Key (одна у организации — сама)
dateNoДата YYYY-MM-DD (по умолчанию — момент предпросмотра)
amountYesСумма оплаты
budgetNoУправление торговлей, перечисление в бюджет: реквизиты платежа
personNoУправление торговлей, выдача подотчётнику: физическое лицо — название или Ref_Key
commentNoКомментарий (в Бухгалтерии — только для «ПрочееПоступление»)
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
fromCashNoУправление торговлей: касса-отправитель (из другой кассы, из кассы на счёт)
partyTextNoУправление торговлей: «Принято от» / «Выдать» в ордере (по умолчанию — контрагент или лицо)
commissionNoБухгалтерия, эквайринг («ПоступленияОтПродажПоПлатежнымКартамИБанковскимКредитам»): комиссия банка; amount — сумма, поступившая на счёт. При комиссии — corrAccount (счёт расходов, напр. «91.02») и otherItemRef
departmentNoУправление торговлей: подразделение — название, код или Ref_Key
incomeItemNoУправление торговлей, прочее поступление: статья доходов или активов/пассивов (НЕ угадывайте)
contractRefNoRef_Key договора (в Бухгалтерии обязателен)
corrAccountNoБухгалтерия, «ПрочееПоступление»: корреспондирующий счёт — код, напр. «91.01» (ОБЯЗАТЕЛЕН, не угадывать)
expenseItemNoУправление торговлей, прочая выдача: статья расходов или активов/пассивов (НЕ угадывайте)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
purposeTextNoУправление торговлей: назначение платежа (текст)
cashflowItemNoУправление торговлей: статья движения денежных средств — название, код или Ref_Key (НЕ угадывайте)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
otherItemRefNoБухгалтерия: Ref_Key статьи прочих доходов и расходов — субконто счёта 91
operationKindNoВид операции (ВидОперации). Обычно НЕ задавайте: по умолчанию «ОплатаПокупателя» или значение из настройки базы (ODATA_ACCOUNTING_CONFIG, operationKinds.customerPayment). Нужен, только если в конфигурации другое значение — не угадывайте.
toBankAccountNoУправление торговлей, инкассация: счёт организации, куда сдаются деньги
orgBankAccountNoБанковский счёт организации — печатается в документе как реквизиты для оплаты. Название/номер счёта (напр. «Сбербанк» или «40802…») либо Ref_Key. Без указания берётся ОСНОВНОЙ счёт организации.
responsibleRefNoОтветственный документа — Ref_Key пользователя 1С (read.catalog.list_users): ставится в «Ответственный» или, где его нет (продажи и закупки УТ), в «Менеджер». Помеченный, недействительный и служебный — отказ; у документов без обоих полей (ПКО, РКО и заявка на расходование УТ) — отказ. Заменяет ответственного из fields
cashflowItemRefNoБухгалтерия, «ПрочееПоступление» и эквайринг: Ref_Key статьи ДДС
counterpartyRefNoRef_Key покупателя (в Бухгалтерии обязателен)
fromBankAccountNoУправление торговлей: счёт-отправитель организации (с другого счёта)
settlementLinesNoОплата одного контрагента несколькими строками расшифровки, сумма строк = amount. Бухгалтерия — по договорам {contractRef, amount}, счета расчётов по настройке договора каждой строки; Управление торговлей — по документам {basisRef, amount} (оплата поставщику, поступление от клиента). Как разнести сумму, решает пользователь — не угадывать

Output Schema

NameRequiredDescriptionDefault
refNo
codeNo
noteNo
notesNo
dryRunNo
createdNo
payloadNo
retriedNo
warningNo
databaseNo
replayedNo
entitySetNo
reconciledNo
willCreateNo
descriptionNo
operationIdNo
deletionMarkNo
writableBaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the document is created unposted, what postings occur on execution, how settlement amounts are auto-filled, currency-contract caveats, acquiring entries, bank-account selection defaults, and the dry-run/confirm flow with operationId reuse. This is substantial behavioral context for a complex mutation tool.

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 core purpose is front-loaded, and the dry-run/confirm instruction is included. The description is dense and mixes several accounting and trade-management modes in one paragraph, but most sentences carry operational meaning for a complex 29-parameter tool.

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?

The description covers the main creation behavior, posting implications, operationKind variants, currency caveat, bank-account defaults, and confirmation workflow. Because an output schema exists and the input schema has full parameter coverage, remaining gaps such as explicit sibling routing are relatively minor.

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 100% schema description coverage, the schema already documents individual parameters, but the description adds important cross-parameter rules: contractRef and counterpartyRef are mandatory in Accounting, corrAccount is mandatory for «ПрочееПоступление», commission requires corrAccount/otherItemRef, settlementLines must sum to amount, and operationKind usually should not be guessed. Not every one of the 29 parameters is explained, so this is strong but not exhaustive.

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 a specific verb and document type: it creates «Поступление на расчётный счёт» (customer payment) tied to amount, counterparty and contract. This clearly identifies a bank receipt operation and separates it from cash-payment or write-off tools, even though no sibling is named explicitly.

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

Usage Guidelines3/5

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

The description implies the tool is for customer payments to a bank account and explains operationKind variants and dry-run/confirm behavior. However, it does not explicitly state when to choose this tool over siblings such as create_cash_payment, create_payment_request, or create_bank_writeoff.

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