Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать приходный кассовый ордер (ПКО)

write.money.create_cash_receipt

Creates an unposted cash receipt order (ПКО) for cash inflows. Requires operation kind and amount; supports dry-run preview and confirmation before writing to 1C.

Instructions

Создаёт «Приходный кассовый ордер» (приём наличных в кассу). НЕПРОВЕДЁННЫЙ; провести — post_document. Вид операции ОБЯЗАТЕЛЕН (напр. «ОплатаПокупателя», «ПрочийПриход», «ПолучениеНаличныхВБанке», «ВозвратОтПодотчетногоЛица»). Для оплаты по договору заполняется расшифровка: счёт расчётов — по настройке договора, источник виден в предпросмотре, сумма взаиморасчётов — для рублёвого договора. 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": {
      "operationKind": "<operationKind>",
      "amount": "<amount>"
    },
    "name": "write.money.create_cash_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
cashNoУправление торговлей: касса — название, код или Ref_Key (одна у организации — сама)
dateNoДата YYYY-MM-DD (по умолчанию — момент предпросмотра)
basisNoОснование (текст)
amountYesСумма
budgetNoУправление торговлей, перечисление в бюджет: реквизиты платежа
personNoУправление торговлей, выдача подотчётнику: физическое лицо — название или Ref_Key
cashRefNoRef_Key кассы организации (СчетКасса)
commentNoКомментарий
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
fromCashNoУправление торговлей: касса-отправитель (из другой кассы, из кассы на счёт)
partyTextNoУправление торговлей: «Принято от» / «Выдать» в ордере (по умолчанию — контрагент или лицо)
departmentNoУправление торговлей: подразделение — название, код или Ref_Key
incomeItemNoУправление торговлей, прочее поступление: статья доходов или активов/пассивов (НЕ угадывайте)
contractRefNoRef_Key договора
corrAccountNoБухгалтерия: корреспондирующий счёт — код, напр. «91.02», «76.09», «68.90», «57.01» (не угадывать). ОБЯЗАТЕЛЕН для ПрочийПриход, ПрочийРасход, ПрочееСписание, ПеречислениеНалога; для КомиссияБанка и Депозит — по желанию. Субконто счёта — из counterpartyRef, contractRef, cashflowItemRef, otherItemRef
expenseItemNoУправление торговлей, прочая выдача: статья расходов или активов/пассивов (НЕ угадывайте)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
cashflowItemNoУправление торговлей: статья движения денежных средств — название, код или Ref_Key (НЕ угадывайте)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
otherItemRefNoБухгалтерия: Ref_Key статьи прочих доходов и расходов — субконто счёта 91
operationKindYesВид операции (ОБЯЗАТЕЛЬНО, не угадывать)
toBankAccountNoУправление торговлей, инкассация: счёт организации, куда сдаются деньги
responsibleRefNoОтветственный документа — Ref_Key пользователя 1С (read.catalog.list_users): ставится в «Ответственный» или, где его нет (продажи и закупки УТ), в «Менеджер». Помеченный, недействительный и служебный — отказ; у документов без обоих полей (ПКО, РКО и заявка на расходование УТ) — отказ. Заменяет ответственного из fields
cashflowItemRefNoRef_Key статьи ДДС
counterpartyRefNoRef_Key контрагента (для расчётов)
fromBankAccountNoУправление торговлей: счёт-отправитель организации (с другого счёта)

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
Behavior4/5

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

Annotations only declare non-readonly, non-destructive, open-world; the description adds the key behavior that the document is created unposted and that a dry-run/confirm cycle is required. The contract-settlement note (расшифровка, сумма взаиморасчётов, source visible in preview) is useful domain behavior beyond annotations, though the detailed confirm/operationId mechanics are already carried by the schema.

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?

Dense but front-loaded: the created object and its unposted state come first, then the mandatory operation kind, then the contract nuance. Some abbreviations (dry-run/confirm) are terse enough to require reading the schema, but no sentence is wasted.

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 27-parameter ERP write tool with a full schema and an output schema, the description covers the essentials: what is created, its draft state, the mandatory discriminator, the confirm loop, and the one non-obvious accounting nuance. The many УТ-specific parameters are documented in the schema, so the description need not repeat them.

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 100%, so the baseline is 3, but the description adds genuine domain meaning: example operationKind values and the rule that for contract-based payment the settlement account comes from the contract setting and the offset amount applies to ruble contracts. That is interpretation the flat schema strings do not convey.

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 gives a specific verb plus resource («Создаёт «Приходный кассовый ордер»») and immediately disambiguates direction by stating it is a receipt of cash into the cash desk (приём наличных в кассу), which distinguishes it from the outgoing create_cash_payment. It also states the resulting state (НЕПРОВЕДЁННЫЙ), so an agent knows exactly what artifact it gets.

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?

It explicitly routes posting to post_document and prescribes the dry-run/confirm workflow, plus flags that operationKind is mandatory and must not be guessed. It does not spell out when to prefer this over the sibling create_cash_payment or bank-based tools, but the cash-in scope makes the boundary largely self-evident.

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