Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать заявку на расходование денежных средств

write.money.create_payment_request

Creates a payment request in 1C Trade Management for future payment approval—covering supplier payments, refunds, and budget transfers—without moving funds; dry-run first, then confirm to post.

Instructions

Управление торговлей: создаёт «Заявку на расходование денежных средств» — согласование будущей оплаты (поставщику, прочей выдачи, возврата клиенту, перечисления в бюджет). По умолчанию «Не согласована»: согласует ответственный в 1С. Деньги не двигает; оплата — create_bank_writeoff или create_cash_payment. Хозяйственные операции: ОплатаПоставщику, ПрочаяВыдачаДенежныхСредств, ВозвратОплатыКлиенту, ПеречислениеВБюджет. dry-run/confirm. В Бухгалтерии заявок нет — платёжное поручение (create_payout_order).

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>",
      "payForm": "<payForm>"
    },
    "name": "write.money.create_payment_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
cashNoУправление торговлей: касса — название, код или Ref_Key (одна у организации — сама)
dateNoДата YYYY-MM-DD (по умолчанию — момент предпросмотра)
amountYesСумма
budgetNoУправление торговлей, перечисление в бюджет: реквизиты платежа
personNoУправление торговлей, выдача подотчётнику: физическое лицо — название или Ref_Key
statusNoСтатус заявки (по умолчанию НеСогласована)
commentNoКомментарий
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
payFormYescash — из кассы, bank — со счёта
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
fromCashNoУправление торговлей: касса-отправитель (из другой кассы, из кассы на счёт)
partyTextNoУправление торговлей: «Принято от» / «Выдать» в ордере (по умолчанию — контрагент или лицо)
departmentNoУправление торговлей: подразделение — название, код или Ref_Key
incomeItemNoУправление торговлей, прочее поступление: статья доходов или активов/пассивов (НЕ угадывайте)
contractRefNoRef_Key договора
expenseItemNoУправление торговлей, прочая выдача: статья расходов или активов/пассивов (НЕ угадывайте)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
paymentDateNoЖелательная дата платежа YYYY-MM-DD (по умолчанию — дата заявки)
purposeTextNoНазначение платежа
cashflowItemNoУправление торговлей: статья движения денежных средств — название, код или Ref_Key (НЕ угадывайте)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
operationKindYesХозяйственная операция (ОБЯЗАТЕЛЬНО, не угадывать)
toBankAccountNoУправление торговлей, инкассация: счёт организации, куда сдаются деньги
orgBankAccountNoБанковский счёт организации — печатается в документе как реквизиты для оплаты. Название/номер счёта (напр. «Сбербанк» или «40802…») либо Ref_Key. Без указания берётся ОСНОВНОЙ счёт организации.
responsibleRefNoОтветственный документа — Ref_Key пользователя 1С (read.catalog.list_users): ставится в «Ответственный» или, где его нет (продажи и закупки УТ), в «Менеджер». Помеченный, недействительный и служебный — отказ; у документов без обоих полей (ПКО, РКО и заявка на расходование УТ) — отказ. Заменяет ответственного из fields
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.6/5.0
Behavior4/5

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

Annotations only say this is a non-read-only, non-destructive, open-world write; the description adds genuinely new behavior: the document lands in state «Не согласована» and must be approved by a responsible person in 1С, and no money is moved. It also explains the preview/confirm protocol and the operationId reuse on timeout. It does not discuss required permissions or failure modes beyond the status default, which keeps it just below the top.

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 action, then scope, then alternatives, then operation kinds, then the dry-run protocol — a sensible ordering with no filler. It is dense and slightly telegraphic (sentence fragments, unexplained 'fields' administrator references), and the confirm/dry-run note partly repeats the confirm parameter description.

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 27-parameter, nested-schema, output-schema-bearing write tool, the description covers everything an agent must decide before calling: purpose, default status, absence of money movement, alternatives for actual payment, the four operation kinds, and the preview/confirm safety protocol. Return values need not be described because an output schema exists.

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; the description earns an extra point because the required operationKind has no enum in the schema, and the description supplies the concrete values (ОплатаПоставщику, ПрочаяВыдачаДенежныхСредств, ВозвратОплатыКлиенту, ПеречислениеВБюджет). The remaining 26 parameters are left entirely to the schema, whose own 'НЕ угадывайте' warnings already cover them.

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?

Names a specific verb and resource (создаёт «Заявку на расходование денежных средств») and immediately scopes it as approval of a future payment rather than a payment action. It explicitly contrasts itself with the money-moving siblings (create_bank_writeoff, create_cash_payment) and with create_payout_order for Бухгалтерия, so an agent can distinguish it from neighbours without opening schemas.

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 both when-to-use (согласование будущей оплаты) and when-not (actual payment → create_bank_writeoff / create_cash_payment; в Бухгалтерии заявок нет → create_payout_order). It also prescribes the operating procedure: dry-run first, show preview, obtain consent, then confirm.

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