Skip to main content
Glama
1C OData MCP

1C OData MCP

Создать платёжное поручение (исходящее) контрагенту

write.money.create_payout_order

Creates an unposted outgoing payment order for a counterparty with explicit number; defaults to dry-run preview. Use it to mirror a bank payment already sent, then post separately if needed.

Instructions

Создаёт документ «Платёжное поручение» — исходящую выплату контрагенту (напр. оплата по агентскому договору / услугам, зеркало платёжки, уже ушедшей в банк). Документ ВСЕГДА создаётся НЕПРОВЕДЁННЫМ (Posted=false) — эта операция намеренно не проводит документ, проведение делайте отдельно через post_document, если вообще нужно. Номер (number) — задаётся явно вызывающим (обычно чтобы совпасть с номером уже отправленной банковской платёжки), не генерируется автоматически. По умолчанию dry-run (confirm=false); создание — при confirm=true. Счёт организации и валюта — резолвятся автоматически, если не заданы.

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": {
      "counterpartyRef": "<counterpartyRef>",
      "amount": "<amount>",
      "number": "<number>",
      "purposeText": "<purposeText>",
      "recipientText": "<recipientText>"
    },
    "name": "write.money.create_payout_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoДата документа YYYY-MM-DD (по умолчанию — момент предпросмотра)
amountYesСумма документа
numberYesНомер документа — задайте явно (напр. чтобы совпасть с номером банковской платёжки). 1С автонумерует новые документы только если Number не передан вовсе — но здесь он обязателен.
commentNoКомментарий к документу
confirmNofalse (по умолчанию) — только предпросмотр (dry-run), запись НЕ выполняется. true — выполнить создание. Сначала всегда показывайте dry-run и получайте согласие пользователя; при подтверждении передавайте operationId из результата предпросмотра и те же аргументы. После таймаута повторяйте подтверждение с тем же id, не создавая новый предпросмотр.
vatRateNoСтавка НДСБезНДС
databaseNoИмя базы 1С из list_databases. Без указания — база по умолчанию; если баз несколько и неясно какая, спросите пользователя.
payerInnNoИНН плательщика (по умолчанию — ИНН организации)
priorityNoОчередность платежа (ОчередностьПлатежа)
payerTextNoТекст плательщика (по умолчанию — имя организации)
contractRefNoRef_Key договора с контрагентом (ДоговорКонтрагента_Key)
currencyRefNoRef_Key валюты документа; без указания — рубль (643)
operationIdNoUUID из предпросмотра. Передайте его при confirm=true, чтобы повтор не создал дубликат.
purposeTextYesНазначение платежа (НазначениеПлатежа)
organizationNoОрганизация (юрлицо) для фильтра: часть названия, ИНН или Ref_Key из list_organizations. Без указания — все организации базы.
recipientInnNoИНН получателя
recipientKppNoКПП получателя
operationKindNoВид операции (ВидОперации), напр. ОплатаПоставщикуОплатаПоставщику
recipientTextYesТекст получателя — как печатается в платёжке (ТекстПолучателя)
orgBankAccountNoБанковский счёт организации — печатается в документе как реквизиты для оплаты. Название/номер счёта (напр. «Сбербанк» или «40802…») либо Ref_Key. Без указания берётся ОСНОВНОЙ счёт организации.
responsibleRefNoRef_Key ответственного — пользователя 1С (read.catalog.list_users); помеченный, недействительный и служебный — отказ
cashflowItemRefNoRef_Key статьи движения денежных средств (СтатьяДвиженияДенежныхСредств_Key)
counterpartyRefYesRef_Key контрагента-получателя (из find_counterparty)
counterpartyAccountRefNoRef_Key банковского счёта контрагента (СчетКонтрагента_Key)

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.1/5.0
Behavior5/5

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

With annotations only saying it is a mutating, non-destructive, open-world write, the description adds the critical behavioral facts: the document is ALWAYS created unposted (Posted=false), the number is not auto-generated despite 1C's normal autonumbering, the default is a non-writing dry-run, and the operationId must be reused to avoid duplicates. Organization account and currency are auto-resolved when omitted. This is exactly the extra context annotations cannot carry.

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 what the tool creates and the crucial 'never posted' constraint, followed by numbering, dry-run, and default resolution. Sentences are dense but each addresses a distinct decision. Some overlap with the parameter descriptions is unavoidable but keeps it slightly longer than needed.

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 24-parameter financial write with an output schema and annotations, the description covers the non-obvious essentials: posting behavior, numbering, confirmation/dry-run protocol, and ID-based idempotency. Return values need not be explained because an output schema exists. The only incomplete area is sibling selection among the other money-creation tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all 24 parameters are already documented, including the number, orgBankAccount and currency defaults that the description restates. The description reinforces the numa-sensitive points (number required, account/currency resolution, dry-run confirm pairing) but adds little syntax or format meaning beyond the schema text. Baseline 3 for a fully-documented schema.

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?

States a concrete verb and resource: creates a «Платёжное поручение» — an outgoing payout to a counterparty — and gives use-case examples (agency contract payment, mirror of a payment order already sent to the bank). It also separates itself from posting via post_document. It does not explicitly distinguish itself from near-siblings such as write.money.create_payment or write.money.create_bank_writeoff, which is the only gap.

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?

Clear operating context: it never posts the document (use post_document for that), the number must be supplied by the caller, and the flow is dry-run first, then confirm=true with the operationId from the preview. It also prescribes retry behavior after a timeout. What is missing is explicit guidance on when to pick this tool over the other money-creation siblings.

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